mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-02-08 03:50:22 +00:00
Update lollms_openai_tts.py
This commit is contained in:
parent
6e2e1a22ce
commit
0bc56d24ca
@ -55,7 +55,7 @@ class LollmsOpenAITTS(LollmsTTS):
|
|||||||
api_key="",
|
api_key="",
|
||||||
output_path=None
|
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.client = OpenAI(api_key=api_key)
|
||||||
self.voices = [
|
self.voices = [
|
||||||
"alloy",
|
"alloy",
|
||||||
@ -119,4 +119,4 @@ class LollmsOpenAITTS(LollmsTTS):
|
|||||||
)
|
)
|
||||||
|
|
||||||
response.write_to_file(speech_file_path)
|
response.write_to_file(speech_file_path)
|
||||||
return file_name_or_path
|
return file_name_or_path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user