Closed zhy844694805 closed 1 month ago
That's true for now yes, the openai api doesn't support other languages at the moment - there is no way to pass a language. If you want to hack another language (Coqui supports 16 languages), you can change the hardcoded language here:
https://github.com/matatonic/openedai-speech/blob/main/speech.py#L40
file_path = self.xtts.tts_to_file(
text,
language='en',
speaker_wav=speaker_wav,
speed=speed,
file_path=file_path,
)
If I added support for a language
field in the voice_to_speaker.yaml file - would that be of use? That should be easy for me and not break the API.
Your help has made a significant difference, and I am deeply thankful for your efforts. It is people like you who make a positive impact, and I am fortunate to have your support.
@zhy844694805 I hope the latest update works for you, it enables language changes in the voices config file now.
How can the Coqui backend synthesize Japanese, Korean, and Chinese?