Questions tagged [onutterancecompleted]
19 questions
34
votes
1 answer
What in TtsService could explain the lack of onUtteranceCompleted() for playEarcon()?
A while ago, I discovered that playEarcon() never produces onUtteranceCompleted().
At the time I just interpreted the documentation that said "Called when an utterance has been synthesized" as onUtteranceCompleted() being not applicable for earcons…

an00b
- 11,338
- 13
- 64
- 101
11
votes
3 answers
AVSpeechUtterance utterance voice in silent mode
I am using AVSpeechUtterance to Speak the given text. I am using the below code and works fine in 'iPhone Ringer Mode' but when I change the iPhone to 'Silent Mode' the utterance voice is getting mute. And when it is 'Silent Mode' I am unable to…

Prashanth Rajagopalan
- 718
- 1
- 10
- 27
10
votes
1 answer
onUtteranceCompleted does not get called?
Even though I am setting it correctly:
HashMap myHashRender = new HashMap();
myHashRender.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, "utid");
mTts.speak("Speak something", TextToSpeech.QUEUE_ADD,…

Priyank Bolia
- 14,077
- 14
- 61
- 82
7
votes
2 answers
onUtteranceCompleted() lost if TTS received is too long
I just observed an "undocumented anomaly" in Android's TTS engine: If the text to be spoken is too long (greater than 4K characters), then onUtteranceCompleted() for that particular utterance will never arrive...
Has anyone else come across this?
Is…

an00b
- 11,338
- 13
- 64
- 101
6
votes
2 answers
How to use TTS (TextToSpeech) while string has more then 4000 characters in Android
i am developing one module to read text file and play as a voice using TTS. i have successfully integrated TTS in my module. and also reading and speaking first 4000 characters.
i have string with more then 4000 characters, it may have more then…

Ajay
- 1,189
- 1
- 12
- 28
3
votes
2 answers
TextToSpeech OnUtteranceCompletedListener causes delay
I need the TextToSpeech engine to speak my words one by one, and I am trying to catch the end of speaking of one word to start speaking the next one. But the OnUtteranceCompletedListener cause some delay of the speech.
So my question is, how can I…

eevan2go
- 31
- 4
2
votes
1 answer
UtteranceProgressListener is not called always in Text to Speech?
My code:
import java.math.BigInteger;
import java.security.SecureRandom;
import java.util.HashMap;
import java.util.Locale;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.Activity;
import…
user4356416
1
vote
0 answers
TTS onUtteranceCompleted not working in Android
I am working on speechRecognizer module in android integrated with dialogflow. I have almost completed the integration and it's working fine but facing one issue. The issue is when TTS is speaking the response, before completing the speech mic gets…

Gautam Bothra
- 565
- 1
- 8
- 23
1
vote
1 answer
AVSpeechUtterance completion handler
How do I set a completion event on the SpeakUtterance(utterance) function in Swift? I need this so that my speech is neither interrupted nor interrupting.

Isaac Wasserman
- 1,461
- 4
- 19
- 39
0
votes
1 answer
onUtteranceCompleted gets fired on emulator, but not on hardware
I can't get my onUtteranceCompleted() get fired on my Galaxy Nexus 4.0.2.
My emulators with api 8, 10 and 15 do fire onUtteranceCompleted().
edit: well.. the statement above is true for most cases, I just got it to work on my Hardware 4.0.2. Then I…

Drimacus
- 3
- 3
0
votes
2 answers
How to get OnUtteranceCompleted to be called?
I have been surfing the web (read google/ android developer document, read stackoverflow's similar questions, read book) and very closely followed the examples. The Text-to-Speech "speak" works great. But I just can't get OnUtteranceCompleted to be…

mmmmm5
- 151
- 1
- 1
- 14
0
votes
1 answer
How to use OnUtteranceProgressListener() with TTS?
I want to Toast a message based on the state of TTS.
For this I used OnUtteranceProgressListener() . But I didn't get the result.
How can I achieve this task ?
Code given below is used to initialize TTS class.
textToSpeech=new TextToSpeech(this, new…

Kartik Thakur
- 11
- 3
0
votes
2 answers
UtteranceProgressListener not called
I'm trying to take some action after a TextToSpeech object in my Android app finishes speaking a sentence, but my UtteranceProgressListener.onDone() method is never called. I tried many things, including the suggestions from this post, but nothing…

Fijoy Vadakkumpadan
- 590
- 3
- 19
0
votes
1 answer
scroll view in relation to tts android
how can i scroll a view (recyclerview) in relation to my tts,
ive looked at onUtterance but it seems to only have a start and stop listener, so i need to think outside the box, i give my tts a string from an Arraylist like this
ArrayList…

Martin Seal
- 616
- 2
- 14
- 32
0
votes
1 answer
onUtteranceCompleted won't allow PhoneCallListener
For some reason I can't call a method that contains PhoneCallListener from onutteranceCompleted. There are no error messages, it just seems to stop executing the script. I've added some Logs and it gets to the "here" log in setUpPhone with…

user3001127
- 383
- 3
- 15