Reputation: 5895
I create Text to Speech application which work normally but my problem is that i need
to change voice nation wise.Suppose now speech in U.S. English and i want to convert it in Indian language.And also from women voice to men voice.
I try to find relevant answer but i didn't found anything.Please provide me some link,
Tutorial or code.
Thanks in Advance.
Upvotes: 0
Views: 6059
Reputation: 12169
You cannot change the voice of Android Text to Speech. You can use TextToSpeech.setPitch(), however it only distorts the voice.
You can change the language TextToSpeech uses language by using TextToSpeech.setLanguage(). Just pass in the Locale of the language you want to use.
You can also set the language of the SpeechRecognizer to be any language you want such as English.
In terms of getting things working, here is my example code that uses both TextToSpeech and SpeechRecognition.
Upvotes: 4
Reputation: 2223
Have a look at RecognizerIntent. "String ACTION_RECOGNIZE_SPEECH Starts an activity that will prompt the user for speech and sends it through a speech recognizer."
and you can also see this link
Android Speech Input:
http://developer.android.com/resources/articles/speech-input.html
Android voice recognition API example:
Upvotes: 1