BoldActionMan
commited on
Commit
•
1d95f53
1
Parent(s):
63bf65c
Update app.py
Browse files
app.py
CHANGED
@@ -156,6 +156,8 @@ def process_video(video_file, language_choice):
|
|
156 |
segment_files = []
|
157 |
for segment in translation_batch:
|
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 |
|
|
|
156 |
segment_files = []
|
157 |
for segment in translation_batch:
|
158 |
start, end, translated_text = segment
|
159 |
+
start = round(start, 2)
|
160 |
+
end = round(end, 2)
|
161 |
segment_path = os.path.join(output_dir, f'segment_{start}_{end}.wav')
|
162 |
model.tts_to_file(translated_text, speaker_id, segment_path, speed=speed)
|
163 |
|