Search code examples
androidvoicetext-to-speechandroid-4.2-jelly-bean

Android Jelly Bean (Google Now) text to speech engine not availble for developers?


Possible Duplicate:
Jelly Bean Google Voice text-to-speech API?

I am trying to play around with the google tts api and no matter what I try, I can't get it to sound like it does in "Google Now"'s search results. Is this not available for use? does anybody know this? Thanks


Solution

  • 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.

    See

    http://developer.android.com/reference/android/speech/tts/TextToSpeech.Engine.html#KEY_FEATURE_NETWORK_SYNTHESIS

    and

    http://developer.android.com/reference/android/speech/tts/TextToSpeech.html#speak(java.lang.String,int,java.util.HashMap)

    -- Fergus Henderson