Google brings speech recognition and text-to-speech that run entirely on the device to AI Edge Gallery, and on Android the models add 0 MB to an app
Google has added offline speech recognition and speech synthesis to its AI Edge Gallery app and published the code. Android apps can use models built into the system, and other platforms get open-weight models packaged as single files.
A voice feature in an app usually sends the recording to a server, which turns it into text, and fetches synthesised speech the same way. That needs a network connection, adds a delay to every turn and moves a person's voice off the device. Small speech models have become good enough to do both steps on a phone, next to a small language model that runs there too.
On 10 November Google introduced on-device automatic speech recognition and text-to-speech in Google AI Edge Gallery, its app for Android and iOS that demonstrates models running locally. There are two routes for developers. On Android, the ML Kit GenAI Speech Recognition and Text-to-Speech APIs use models that are part of the operating system, so they add 0 MB to the app's download. For iOS, macOS, Windows, Linux and the web, MediaPipe Tasks offers the same two functions with open-weight models, including Parakeet-TDT 0.6B for recognition and PocketTTS 100M, Kokoro-82M and Phonon 31M for speech. Each model ships as one .litertlm file that holds all its parts.
Google gives figures for the Android models. Recognition covers more than 100 languages with a word error rate of 8.0% to 9.0% on the FLEURS benchmark and runs ten times faster than real time, about 300 ms for 3 seconds of speech. The speech model starts speaking in about 100 ms and synthesises a 27-second paragraph in about 500 ms, with 8 voices across 21 locales. The demonstration is a language teacher: point the camera at an object, ask aloud what it is, and hear the explanation in one language with the phrase to learn pronounced in another. The language model marks the foreign phrases in a structured output so that the speech step can switch voice in the middle of a sentence.
The open-source code of the app doubles as a reference for reading a chat model's answers aloud. It strips Markdown, skips blocks that should not be spoken such as code and tables, and schedules synthesis one sentence at a time so that speech does not compete with the language model for compute and memory while tokens are still being generated.
