有没有一种方法,我可以使用文本到语音的新的谷歌语音?在果冻豆发音是真的顺利,所以我想可能是有某种API的访问该服务?
Is there a way I can use the text-to-speech from the new Google Voice? In Jelly Bean the pronunciation is really smooth so I was thinking may be there is some kind of API for access to that service?
谢谢!
是的,这是可以访问的谷歌语音现在使用Android TTS的API。 你需要使用KEY_FEATURE_NETWORK_SYNTHESIS中的PARAMS参数为TextToSpeech.speak()调用。
Yes, it is possible to access the Google Now voice using the Android TTS APIs. You need to use "KEY_FEATURE_NETWORK_SYNTHESIS" in the "params" parameter for the TextToSpeech.speak() call.
请参阅
http://developer.android.com/reference/android/speech/tts/TextToSpeech.Engine.html#KEY_FEATURE_NETWORK_SYNTHESIS
和
http://developer.android.com/reference/android/speech/tts/TextToSpeech.html#speak(java.lang.String,int,java.util.HashMap)