Skip to content

bug: text-to-speech Not Working After Switching to Third-Party TTS Engine #148

@HollyDi

Description

@HollyDi

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() and getSupportedVoices() 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions