diff --git a/src/@awesome-cordova-plugins/plugins/text-to-speech-advanced/index.ts b/src/@awesome-cordova-plugins/plugins/text-to-speech-advanced/index.ts index 4ddaffa61..e27901989 100644 --- a/src/@awesome-cordova-plugins/plugins/text-to-speech-advanced/index.ts +++ b/src/@awesome-cordova-plugins/plugins/text-to-speech-advanced/index.ts @@ -62,8 +62,7 @@ export class TextToSpeechAdvanced extends AwesomeCordovaNativePlugin { * @returns {Promise} Returns a promise that resolves when the speaking finishes */ @Cordova({ - successIndex: 1, - errorIndex: 2, + otherPromise: true }) speak(textOrOptions: string | TTSOptions): Promise { return; @@ -74,7 +73,9 @@ export class TextToSpeechAdvanced extends AwesomeCordovaNativePlugin { * * @returns {Promise} */ - @Cordova() + @Cordova({ + otherPromise: true + }) stop(): Promise { return; } @@ -84,7 +85,9 @@ export class TextToSpeechAdvanced extends AwesomeCordovaNativePlugin { * * @returns {Promise} */ - @Cordova() + @Cordova({ + otherPromise: true + }) getVoices(): Promise { return; }