capacitor-community/text-to-speech

feat: add support for `getSupportedVoices` on iOS

robingenz opened this issue · 5 comments

Is your feature request related to a problem? Please describe.
getSupportedVoices should also be available on iOS.
Currently an empty array is returned.

Describe the solution you'd like
Add support for getSupportedVoices on iOS.

Describe alternatives you've considered
Mark as unsupported in docs.

I can help with this if this is unplanned at the moment, I've written this for my Cordova plugin cordova-plugin-tts-advanced (https://www.npmjs.com/package/cordova-plugin-tts-advanced)

Hi, thank you. Any support is welcome. Just create a PR.

RouR commented

Any progress?

ecc521 commented

Logically I see two options here:

  1. Just use speechSynthesis on iOS
  2. Implement the iOS voices using native APIs.

The current behavior probably makes the least sense of the three - merely using the webview's speechSynthesis on iOS would implement support for voices on iOS and reduce the size of the codebase to maintain.

ecc521 commented

PR submitted