Dương Nguyễn Văn
Dương Nguyễn Văn

Reputation: 418

How to apply Google Text-to-speech in android

I've developed an Android application. I want to apply Google text-to-speech instead of default text-to-speech feature in the device into my project.

I've searched but didn't find any example or tutorial about google text-to-speech. How to apply Google text-to-speech in an Android project?

Upvotes: 1

Views: 274

Answers (1)

Piyush
Piyush

Reputation: 1784

This can be done by the user only. Earlier the Tts API had a function setEngineByPackageName() which allowed the engine to be set. But it has been deprecated in API 14. But if you do need to use the Google Tts Engine, you can prompt the users to go the Text-to-Speech settings and change the engine manually.

Upvotes: 1

Related Questions