tomo2chin2 commited on
Commit
b615b56
·
verified ·
1 Parent(s): a1563da

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
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": ["AUDIO"],
308
- "speechConfig": {
309
- "audioEncoding": "LINEAR16",
310
- "voiceConfig": {
311
- "languageCode": "ja-JP",
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
  }