diff --git a/texttospeech.android.ts b/texttospeech.android.ts index a217a2e..01d6be0 100644 --- a/texttospeech.android.ts +++ b/texttospeech.android.ts @@ -182,6 +182,7 @@ export class TNSTextToSpeech { /// < Android API 21 - https://developer.android.com/reference/android/speech/tts/TextToSpeech.html#speak(java.lang.String, int, java.util.HashMap) let hashMap = new java.util.HashMap(); hashMap.put("volume", options.volume.toString()); + hashMap.put(android.speech.tts.TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, "UniqueID"); this._tts.speak(options.text, queueMode, hashMap); } }