matatonic / openedai-speech

An OpenAI API compatible text to speech server using Coqui AI's xtts_v2 and/or piper tts as the backend.
GNU Affero General Public License v3.0
192 stars 32 forks source link

detecting and using multiple languages automatically (xtts) #29

Closed RodolfoCastanheira closed 3 weeks ago

RodolfoCastanheira commented 3 weeks ago

This code detect the language of the request and set it automatically, enabling seamless support for non-English languages, as in the openai api. Enabled by default.

matatonic commented 3 weeks ago

I like it, let me do some testing and then we can merge it. Thanks!

matatonic commented 3 weeks ago

Works really well, thanks - also, Hindi support! Yes, nice catch, I'll update the docs.

G4Zz0L1 commented 3 weeks ago

You forgot about requirements-rocm.txt, it misses langdetect

EDIT: and requirements-min.txt too

matatonic commented 3 weeks ago

rocm yes, thanks! -min doesn't use xtts.