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

tts.get_voices('lang') #26

Open
2 of 4 tasks
willwade opened this issue May 1, 2024 · 2 comments
Open
2 of 4 tasks

tts.get_voices('lang') #26

willwade opened this issue May 1, 2024 · 2 comments

Comments

@willwade
Copy link

willwade commented May 1, 2024

Prerequisites

  • Can you reproduce the problem?
  • Are you running the latest version?
  • Did you check the documentation?
  • Did you perform a cursory search?

For more information, see the contributing guide.

Description

Right now to select a voice you have to know the obscure name, region etc of the name for that provider. Google, Microsoft all have endpoints to get the voicelist. Polly, and Watson - not so sure.

Expected behavior: [What you expected to happen]

voices = tts.get_voices('lang')
  • a dict of the name, langcode, sex of the voice to be returned

Snags

Because it looks like not all clients have a endpoint this may be a bad idea. But then maybe we just create caches of dicts from available info online in a release?

@willwade
Copy link
Author

willwade commented May 1, 2024

https://github.com/willwade/pyReadAloud/blob/main/tools/getAllVoiceJSONFiles.py

Looks like its possible for all of them :)

@willwade
Copy link
Author

willwade commented May 9, 2024

Done in PR #25

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