Spaces:
Sleeping
Sleeping
Commit
·
6d03417
1
Parent(s):
b29e7ad
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,7 +89,8 @@ if submit:
|
|
| 89 |
audio_response = openai.audio.speech.create(
|
| 90 |
model="tts-1",
|
| 91 |
voice="nova",
|
| 92 |
-
input=response
|
|
|
|
| 93 |
)
|
| 94 |
|
| 95 |
# Embed audio in the webpage without saving it
|
|
|
|
| 89 |
audio_response = openai.audio.speech.create(
|
| 90 |
model="tts-1",
|
| 91 |
voice="nova",
|
| 92 |
+
input=response,
|
| 93 |
+
response_format="mp3"
|
| 94 |
)
|
| 95 |
|
| 96 |
# Embed audio in the webpage without saving it
|