rairo commited on
Commit
3ee3854
·
verified ·
1 Parent(s): bd7ea2f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -166,12 +166,12 @@ def generate_tts_audio_and_upload(text_to_speak, uid, project_id, step_num):
166
  try:
167
  response = client.models.generate_content(
168
  model=TTS_MODEL,
169
- contents=f"Say clearly: {text_to_speak}",
170
  config=types.GenerateContentConfig(
171
  response_modalities=["AUDIO"],
172
  speech_config=types.SpeechConfig(
173
  voice_config=types.VoiceConfig(
174
- prebuilt_voice_config=types.PrebuiltVoiceConfig(voice_name='Kore')
175
  )
176
  ),
177
  )
 
166
  try:
167
  response = client.models.generate_content(
168
  model=TTS_MODEL,
169
+ contents=f"You are a composed, intelligent AI assistant—like Jarvis from Iron Man.Summarize and paraphrase the instruction with calm British articulation.Use a measured, confident tone. Be slightly quick. Now narrate this:{text_to_speak}",
170
  config=types.GenerateContentConfig(
171
  response_modalities=["AUDIO"],
172
  speech_config=types.SpeechConfig(
173
  voice_config=types.VoiceConfig(
174
+ prebuilt_voice_config=types.PrebuiltVoiceConfig(voice_name='Sadaltager')
175
  )
176
  ),
177
  )