BoldActionMan
commited on
Commit
•
21977c9
1
Parent(s):
70e2264
Update app.py
Browse files
app.py
CHANGED
@@ -158,7 +158,7 @@ def process_video(video_file, language_choice):
|
|
158 |
start, end, translated_text = segment
|
159 |
segment_path = os.path.join(output_dir, f'segment_{start}_{end}.wav')
|
160 |
model.tts_to_file(translated_text, speaker_id, segment_path, speed=speed)
|
161 |
-
|
162 |
reference_speaker = AudioFileClip.subclip(audio_clip, start, end) # This is the voice you want to clone
|
163 |
reference_speaker.write_audiofile("reference_speaker.wav")
|
164 |
target_se, audio_name = se_extractor.get_se("reference_speaker.wav", tone_color_converter, vad=False)
|
|
|
158 |
start, end, translated_text = segment
|
159 |
segment_path = os.path.join(output_dir, f'segment_{start}_{end}.wav')
|
160 |
model.tts_to_file(translated_text, speaker_id, segment_path, speed=speed)
|
161 |
+
print(f"{start}, {end}")
|
162 |
reference_speaker = AudioFileClip.subclip(audio_clip, start, end) # This is the voice you want to clone
|
163 |
reference_speaker.write_audiofile("reference_speaker.wav")
|
164 |
target_se, audio_name = se_extractor.get_se("reference_speaker.wav", tone_color_converter, vad=False)
|