qqwjq1981 commited on
Commit
0be9b90
·
verified ·
1 Parent(s): 7c42ba0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -361,7 +361,8 @@ def process_entry(entry, i, video_width, video_height, add_voiceover, target_lan
361
  segment_audio_path = f"segment_{i}_voiceover.wav"
362
  desired_duration = entry["end"] - entry["start"]
363
  speaker_id = entry.get("speaker", "default")
364
- speaker_wav_path = speaker_sample_paths.get(speaker_id, "speaker_default.wav") if speaker_sample_paths else "speaker_default.wav"
 
365
 
366
  generate_voiceover_clone([entry], desired_duration, target_language, speaker_wav_path, segment_audio_path)
367
 
 
361
  segment_audio_path = f"segment_{i}_voiceover.wav"
362
  desired_duration = entry["end"] - entry["start"]
363
  speaker_id = entry.get("speaker", "default")
364
+ speaker_wav_path = f"speaker_{speaker}_sample.wav"
365
+ #speaker_sample_paths.get(speaker_id, "speaker_default.wav") if speaker_sample_paths else "speaker_default.wav"
366
 
367
  generate_voiceover_clone([entry], desired_duration, target_language, speaker_wav_path, segment_audio_path)
368