Spaces:
Paused
Paused
Upload app.py
Browse files
app.py
CHANGED
|
@@ -304,13 +304,11 @@ def generate_audio_with_gemini(audio_text: str, gemini_token: str) -> bytes:
|
|
| 304 |
}
|
| 305 |
],
|
| 306 |
"generationConfig": {
|
| 307 |
-
"responseModalities": ["
|
| 308 |
-
"
|
| 309 |
-
"
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
"prebuiltVoiceConfig": {
|
| 313 |
-
"voiceName": "Charon"
|
| 314 |
}
|
| 315 |
}
|
| 316 |
}
|
|
|
|
| 304 |
}
|
| 305 |
],
|
| 306 |
"generationConfig": {
|
| 307 |
+
"responseModalities": ["audio"],
|
| 308 |
+
"speech_config": {
|
| 309 |
+
"voice_config": {
|
| 310 |
+
"prebuilt_voice_config": {
|
| 311 |
+
"voice_name": "Charon"
|
|
|
|
|
|
|
| 312 |
}
|
| 313 |
}
|
| 314 |
}
|