Update lollms_openai_tts.py

This commit is contained in:
Saifeddine ALOUI 2024-06-03 08:57:18 +02:00 committed by GitHub
parent 6e2e1a22ce
commit 0bc56d24ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,7 @@ class LollmsOpenAITTS(LollmsTTS):
api_key="",
output_path=None
):
super().__init__(app, model, voice, api_key, output_path)
super().__init__("openai_tts",app, model, voice, api_key, output_path)
self.client = OpenAI(api_key=api_key)
self.voices = [
"alloy",
@ -119,4 +119,4 @@ class LollmsOpenAITTS(LollmsTTS):
)
response.write_to_file(speech_file_path)
return file_name_or_path
return file_name_or_path