Update api.py
Browse files
api.py
CHANGED
|
@@ -283,7 +283,7 @@ def voice_chat():
|
|
| 283 |
try:
|
| 284 |
speech_file = tempfile.NamedTemporaryFile(delete=False, suffix=".mp3")
|
| 285 |
with client.audio.speech.with_streaming_response.create(
|
| 286 |
-
model="gpt-4o-tts",
|
| 287 |
voice="alloy",
|
| 288 |
input=answer_text,
|
| 289 |
) as speech:
|
|
|
|
| 283 |
try:
|
| 284 |
speech_file = tempfile.NamedTemporaryFile(delete=False, suffix=".mp3")
|
| 285 |
with client.audio.speech.with_streaming_response.create(
|
| 286 |
+
model="gpt-4o-mini-tts",
|
| 287 |
voice="alloy",
|
| 288 |
input=answer_text,
|
| 289 |
) as speech:
|