Simatwa / python-tgpt

AI Chat in Terminal + Package + REST-API
https://python-tgpt.onrender.com
MIT License
102 stars 15 forks source link

Available voice strings #52

Closed sinuso closed 3 months ago

sinuso commented 3 months ago

Hi

Is there a way to see the available voice strings used by the API?

Default is en-US-Wavenet-C es-ES-Standard-A works but for example es-ES-Standard-C does not.

Simatwa commented 3 months ago

Yeah there is a list of supported voices. https://github.com/Simatwa/python-tgpt/blob/329ab2720676f22fb405bd419e8bf75eba45a8d9/src/pytgpt/utils.py#L706

from pytgpt.utils import Audio
print(Audio.all_voices)
sinuso commented 3 months ago

Yeah there is a list of supported voices.

https://github.com/Simatwa/python-tgpt/blob/329ab2720676f22fb405bd419e8bf75eba45a8d9/src/pytgpt/utils.py#L706

from pytgpt.utils import Audio
print(Audio.all_voices)

Thank you! Do you know if it is possible to add more voices?

Simatwa commented 3 months ago

I don't think there's a way of doing that because the voice models are setup by the host. So if it's about updating the voices, I will do so in alignment with what the host has provided.

sinuso commented 3 months ago

It would be great, the es-ES-Standard-A voice compared to the other **es-ES-Standard-*** voices is horrible.