Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -65,10 +65,10 @@ def generate_video_from_topic(topic_prompt, progress=gr.Progress(track_tqdm=True
|
|
65 |
audio_path = f"audio_{job_id}.mp3"
|
66 |
intermediate_files.append(audio_path)
|
67 |
|
68 |
-
# !!!!!!!!!!! THE FINAL
|
69 |
-
#
|
70 |
response = elevenlabs_client.text_to_speech.convert(
|
71 |
-
voice_id="
|
72 |
text=narration,
|
73 |
model_id="eleven_multilingual_v2"
|
74 |
)
|
@@ -77,7 +77,7 @@ def generate_video_from_topic(topic_prompt, progress=gr.Progress(track_tqdm=True
|
|
77 |
for chunk in response:
|
78 |
f.write(chunk)
|
79 |
print(f"Audio file saved: {audio_path}")
|
80 |
-
# !!!!!!!!!!! END OF
|
81 |
|
82 |
# STEP 4: VISUALS (Runway)
|
83 |
video_clip_paths = []
|
|
|
65 |
audio_path = f"audio_{job_id}.mp3"
|
66 |
intermediate_files.append(audio_path)
|
67 |
|
68 |
+
# !!!!!!!!!!! THE FINAL CONFIGURATION !!!!!!!!!!!
|
69 |
+
# Using YOUR personal Voice ID for "Aria" from your VoiceLab.
|
70 |
response = elevenlabs_client.text_to_speech.convert(
|
71 |
+
voice_id="Xb7hH8MSUJpSbSDYk0k2", # Your personal Voice ID for Aria
|
72 |
text=narration,
|
73 |
model_id="eleven_multilingual_v2"
|
74 |
)
|
|
|
77 |
for chunk in response:
|
78 |
f.write(chunk)
|
79 |
print(f"Audio file saved: {audio_path}")
|
80 |
+
# !!!!!!!!!!! END OF CONFIGURATION !!!!!!!!!!!
|
81 |
|
82 |
# STEP 4: VISUALS (Runway)
|
83 |
video_clip_paths = []
|