在Android上没有网络连接的TTS API工作吗?

时间:2017-04-19 04:36:35

标签: android text-to-speech offline

你好,我是工程学院的学生,我想知道TTS(文本到语音)是否适用于Android的离线环境。

1 个答案:

答案 0 :(得分:4)

您需要为文字转语音API提供互联网连接,但您可以通过应用以下设置在离线模式下使用文字转语音。

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

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.

下载支持离线文字转语音所需的所有离线语音模型(语音)。