Spaces:
Sleeping
Sleeping
Commit
·
7199219
1
Parent(s):
71041ef
Added Text to speech feature.
Browse filesUsed text-to-speech API to give a speech response.
app.py
CHANGED
|
@@ -88,7 +88,7 @@ if submit:
|
|
| 88 |
# Text-to-speech
|
| 89 |
audio_response = openai.audio.speech.create(
|
| 90 |
model="tts-1",
|
| 91 |
-
voice="
|
| 92 |
input=response
|
| 93 |
)
|
| 94 |
|
|
|
|
| 88 |
# Text-to-speech
|
| 89 |
audio_response = openai.audio.speech.create(
|
| 90 |
model="tts-1",
|
| 91 |
+
voice="nova",
|
| 92 |
input=response
|
| 93 |
)
|
| 94 |
|