Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Text to Speech

Text to Speech

All your problems with Audio, Video and Images.

Text to Speech

Postby vinayg18 » Sun Nov 14, 2010 7:27 am

Hello,

I've been trying to work on Android TTS, and I've managed to figure out how to synthesise speech for some text, but now, I want to utilize the OnUtteranceCompleted listener of a TextToSpeech object. Basically, I have a String array
Code: Select all
String[] str = {"Hello","Good morning","Good evening"};


I want "Hello" to be spoken first, and I'd like to be notified after the speech synthesis is done, so I can initiate the speech synthesis of "Good morning". I'd rather not use QUEUE_ADD in the speak() method. Can anyone explain the usage of the OnUtteranceCompleted listener, perhaps with a code example? [developer.android.com does not show the usage of OnUtteranceCompleted.]

Thanks.

Reference:
http://android-developers.blogspot.com/2009/09/introduction-to-text-to-speech-in.html
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/TextToSpeechActivity.html
vinayg18
Freshman
Freshman
 
Posts: 2
Joined: Fri Sep 10, 2010 3:29 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 5 guests