果冻豆谷歌语音文本到语音的API? [英] Jelly Bean Google Voice text-to-speech API?
问题描述
有没有一种方法,我可以使用文本到语音的新的谷歌语音?在果冻豆发音是真的顺利,所以我想可能是有某种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.
请参阅
<一个href="http://developer.android.com/reference/android/speech/tts/TextToSpeech.Engine.html#KEY_FEATURE_NETWORK_SYNTHESIS" rel="nofollow">http://developer.android.com/reference/android/speech/tts/TextToSpeech.Engine.html#KEY_FEATURE_NETWORK_SYNTHESIS
和
<一个href="http://developer.android.com/reference/android/speech/tts/TextToSpeech.html#speak%28java.lang.String,%20int,%20java.util.HashMap%3Cjava.lang.String,%20java.lang.String%3E%29" rel="nofollow">http://developer.android.com/reference/android/speech/tts/TextToSpeech.html#speak(java.lang.String,int,java.util.HashMap)
这篇关于果冻豆谷歌语音文本到语音的API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!