TTS API是否可以在没有Android的网络连接的情况下工作?

Joh*_*ato 5 android offline text-to-speech

你好,我是一所工程师学校的学生,我想知道TTS(文本到语音)是否可以在Android的离线环境中工作。

Chi*_*rag 6

您需要 Internet 连接才能使用 Text to Speech API,但您可以通过应用以下设置在离线模式下使用 Text to Speech。

目前并非所有设备都支持离线语音输入。但是,您可以按照此讨论为支持的设备启用离线语音输入。

1. On your device go to Settings -> Language and Input. Click on the Google voice input icon (text-to-speech output on some devices).
2. Under ALL tab select the language you want to download.
3. Once the language package downloaded, you can see it under INSTALLED tab.
Run Code Online (Sandbox Code Playgroud)

下载支持离线 Text to Speech 所需的所有离线语音模型(语音)。