Update ai_config.py
Browse files- ai_config.py +1 -1
ai_config.py
CHANGED
@@ -28,7 +28,7 @@ client = OpenAI(api_key=openai_api_key)
|
|
28 |
def convert_text_to_speech(text, output):
|
29 |
try:
|
30 |
# Convert the final text to speech
|
31 |
-
response = client.audio.speech.create(model="tts-1-hd", voice="alloy", input=text, speed=1
|
32 |
|
33 |
if isinstance(output, BytesIO):
|
34 |
# If output is a BytesIO object, write directly to it
|
|
|
28 |
def convert_text_to_speech(text, output):
|
29 |
try:
|
30 |
# Convert the final text to speech
|
31 |
+
response = client.audio.speech.create(model="tts-1-hd", voice="alloy", input=text, speed=1)
|
32 |
|
33 |
if isinstance(output, BytesIO):
|
34 |
# If output is a BytesIO object, write directly to it
|