text to speech - Android tts flush -


please don't advise use tts.stop() flush text tts queue.

i want ask suppose if have

hashmap<string, string> params = new hashmap<string, string>(); params.put(texttospeech.engine.key_param_utterance_id,"tag2"); tts.speak("hi",texttospeech.queue_add,params); tts.speak("hello",texttospeech.queue_add,params); 

and there bunch of other sentences added queue.

my question action if

tts.speak("flushing",texttospeech.queue_flush,null); done 

or

tts.speak("flushing",texttospeech.queue_flush,params); done 

where params same earlier one

is action different in both cases, i.e sentences flushed when params parameter or utterance id same them?

thanks!

there no difference, application queue flushed. hashmap param pass info speech engine. in case, if passing null onutterancecompleted not called. see document http://developer.android.com/reference/android/speech/tts/texttospeech.html#queue_flush


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -