Skip to content

Connects to Frame and streams audio from the host microphone, which is sent through a local (on Host device) vosk speech-to-text engine, translates the text into a target language on-device, and displays the translated text on the Frame display.

License

Notifications You must be signed in to change notification settings

CitizenOneX/frame_flutter_translate_host

Repository files navigation

frame_flutter_translate_host (offline speech-to-text, live captioning, offline translation, subtitles)

Connects to Frame, streams audio from the Host (phone) microphone (for now - streaming from Frame mic coming), which is sent through a local (on Host device) Vosk speech-to-text engine (Flutter package is Android only), translates the text into a target language on-device using ML Kit (Android, iOS only), and displays the translated text on the Frame display.

Drop in an alternative Vosk model to perform speech-to-text in a language other than Chinese (vosk-model-small-cn-0.22 included). The model name appears in main.dart and pubspec.yaml.

Specify an alternative targetLanguage in lib/main.dart to translate to an ML Kit supported language other than English. Frame only displays languages in a latin character set, so text might need to be tweaked before sending to Frame.

Frameshots, Screenshots

Frameshot1

framecast1.mp4

Screenshot1

Architecture

Architecture

See Also

About

Connects to Frame and streams audio from the host microphone, which is sent through a local (on Host device) vosk speech-to-text engine, translates the text into a target language on-device, and displays the translated text on the Frame display.

Resources

License

Stars

Watchers

Forks

Packages

No packages published