generated from capacitor-community/.github
-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
Description
Plugin version:"
@capacitor-community/text-to-speech": "^6.0.0"
Platform(s):
Android 12
Current behavior:
- When using the system default text-to-speech engine, everything works normally
- After switching to a third-party TTS engine:
getSupportedLanguages()andgetSupportedVoices()functions work correctly and return expected information- However, the
speak()function:- Does not play any audio
- Gets stuck and never returns (blocks indefinitely)
Expected behavior:
- The
speak()function should:- Successfully play audio using the third-party TTS engine
- Return after completion or when interrupted
- Not block indefinitely
Steps to reproduce:
Related code:
await TextToSpeech.speak({
text: 'This is a sample text',
lang: this.config.lang, //en-US
rate: this.config.rate, // 1.0
pitch: this.config.pitch, // 1.0
volume: this.config.volume, // 1.0
});
Other information:
Capacitor doctor:
insert the output from `npx cap doctor` here