Open MyActivity from the previous example and change this line:
to:builder.setItems(items, new DialogInterface.OnClickListener(){
builder.setSingleChoiceItems(items, -1, new DialogInterface.OnClickListener(){
The '-1' specifies which item to select by default. 0 would have been Red, -1 is none.
By default, the window will not close when they make a selection. Replace this line:
return;with this line:
dialogInterface.dismiss();
Redeploy (mvn clean install) and test.
HI,
ReplyDeleteIs there any way that we change voice of recorded audio and video in android. As there is a soundpool method in android , there we change voice deep voice and chipmunk.. What if I want change recorded voice to male computer voice and female computer voice. Is there any way to implement pitch , key in Android ? .Can we set voice before recording audio ?
Is there any method to set pitch , key etc .
Hi pintu,
ReplyDeleteTake a look at http://developer.android.com/reference/android/speech/tts/TextToSpeech.html#setPitch%28float%29
Thank you for the simple Tutorial
ReplyDeleteHi.. Great tutorial! Thanks so much for making it simple and clear.
ReplyDelete