Spaces:
Running
Running
Update main.py
Browse files
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"
|
| 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='
|
| 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 |
)
|