mgbam commited on
Commit
b332a46
·
verified ·
1 Parent(s): 2711c56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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, FINAL FIX !!!!!!!!!!!
69
- # We are using the official Voice ID for "Rachel".
70
  response = elevenlabs_client.text_to_speech.convert(
71
- voice_id="21m00Tcm4TlvDq8ikA", # Official ID for Rachel
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 CORRECTED SECTION !!!!!!!!!!!
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 = []