From 609ab2b90ac66f788e4265d95b81cccabc506f33 Mon Sep 17 00:00:00 2001 From: Stefan Bauer Date: Mon, 26 Sep 2022 23:00:46 +0200 Subject: [PATCH] fix(android): fix promise resolving for tts init --- src/texttospeech.android.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/texttospeech.android.ts b/src/texttospeech.android.ts index 1b68dd1..64c3211 100644 --- a/src/texttospeech.android.ts +++ b/src/texttospeech.android.ts @@ -55,6 +55,7 @@ export class TNSTextToSpeech { // .setContentType(AudioAttributes.CONTENT_TYPE_SPEECH) // .setFlags(AudioAttributes.FLAG_AUDIBILITY_ENFORCED); this._tts.setAudioAttributes(audioAttributes.build()); + resolve(); } } else { throw new Error('TextToSpeech failed to init with code ' + status);