Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
 
LinkBack Thread Tools
Old July 10th, 2010, 07:34 AM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2010
Posts: 15
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 1 Time in 1 Post
Default Text to speech service delay

Hi everyone,

I'm making use of TTS on a application. The point is that it takes a few seconds to start up TTS service, and the voice comes with a delay. Is there a way to avoid this delay, or to make the Activity wait until TTS is ready?
Thanks for the info!

Advertisements
cmasmas is offline  
Reply With Quote
sponsored links
Old September 18th, 2010, 06:00 PM   #2 (permalink)
New Member
 
Join Date: Sep 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have you found anything on this? I am having the same problems
gpsTrainer is offline  
Reply With Quote
Old September 19th, 2010, 03:06 AM   #3 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Mar 2010
Posts: 15
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 1 Time in 1 Post
Default

Hi!!

I found a way so the application waits until tts finishes to "speak".
Here is the code:

public void speak(String s)
{
mTts.speak(s, TextToSpeech.QUEUE_ADD, null);
while (mTts.isSpeaking())
{}
}

Hope it helps.
cmasmas is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:14 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.