mediatechlab / tts-wrapper

TTS-Wrapper makes it easier to use text-to-speech APIs by providing a unified and easy-to-use interface.
MIT License
18 stars 9 forks source link

tts.get_voices('lang') #26

Open willwade opened 6 months ago

willwade commented 6 months ago

Prerequisites

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')

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 commented 6 months ago

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

Looks like its possible for all of them :)

willwade commented 6 months ago

Done in PR #25