1

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

Community
  • 1
  • 1
ekatz
  • 963
  • 3
  • 18
  • 38

2 Answers2

3

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

  • Thanks, that worked. I'm going to create a small project and host it on google hosting later and link to it for others to view. – ekatz Sep 19 '12 at 18:02
  • 1
    see project example at http://code.google.com/p/simple-jellybean-tts-example/ – ekatz Sep 19 '12 at 18:15
0

No, nothing in the jelly bean API makes the "voice" of Google Now available to developers. The TTS will use whatever voice engines are available on the device.

LuxuryMode
  • 33,401
  • 34
  • 117
  • 188
  • So the weird thing is that I'm using a text to speech demo I found at http://mobile.tutsplus.com/tutorials/android/android-sdk-using-the-text-to-speech-engine/ which uses the android tts engine and it does not sound like the google now voice... not even close – ekatz Jul 24 '12 at 20:20
  • Why is that weird? My response explained that there's no basis to have any expectation that the sound would be like Google Now... – LuxuryMode Jul 24 '12 at 20:31
  • I see what you mean, I thought you meant that by using the Jelly Bean device TTS engine it will use what I thought is the Jelly Bean voice - i.e. the google now voice. If that is the case, what is google now using as it's TTS engine? – ekatz Jul 25 '12 at 17:03