KarlKarlsom
KarlKarlsom

Reputation: 5868

Which TTS is google translate using? Is there a way to use this TTS in android app too?

I found for certain languages the sound files from google translate sound by far most real (compared to other TTS engines availlable for Android).

Is the google translate app using a TTS engine?

Is there a way to play these TTS from a android app?

Upvotes: 2

Views: 4262

Answers (3)

Kevin Junghans
Kevin Junghans

Reputation: 17540

Here is a link to a TechCrunch article on using the unofficial Google TTS API [http://techcrunch.com/2009/12/14/the-unofficial-google-text-to-speech-api/]. You pass in the text in a RESTful API and it returns you an MP3. So if you can make an HTTP request from your Android application and play the MP3 that is returned you could use the Google TTS engine. The downside is that it is "unofficial" so it could be changed or removed without warning. There are probably other services available like this that are supported. But you will need an Internet connection and have to deal with latency issues with this approach, which may or may not be an issue depending on the application.

Upvotes: 2

gregm
gregm

Reputation: 12169

Android's TTS does NOT require an internet connection. It generates the sounds as needed.

Here is some code that uses Android TTS. It handles some of the gotchas involved:

https://github.com/gmilette/Say-the-Magic-Word-

Upvotes: 0

escape-llc
escape-llc

Reputation: 1331

Android uses TTS engine, but the engine is determined by the firmware provider. The most-commonly seen one is Pico.

Here is the Android documentation on using TTS: android.speech.tts.TextToSpeech

Upvotes: 0

Related Questions