Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voice not selected by language/locale on iOS #9

Open
blukis opened this issue Apr 15, 2021 · 0 comments
Open

Voice not selected by language/locale on iOS #9

blukis opened this issue Apr 15, 2021 · 0 comments

Comments

@blukis
Copy link

blukis commented Apr 15, 2021

On iOS, voice selection works OK when I include a valid "identifier" from getVoices(), e.g.

TTS.speak({
    text:"sample text", cancel:true, pitch:1, locale:"en-IN", identifier:"com.apple.ttsbundle.Rishi-compact"
}).then(...); // en-IN voice heard, as expected.

But when I call speak() with locale only (no identifier), it seems it uses the system language always, regardless of which locale I specify.

TTS.speak({
   text:"sample text", cancel:true, pitch:1, locale:"en-IN"
}).then(...); // System/default voice is heard, not en-IN voice.

Looking over logic in CDVTTS.m, seems this might not be by design.

  • Tested on iPhone 12 mini
  • Android working OK
  • My workaround is to select the first identifier from getVoices() with a matching locale/language. (This works OK.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant