Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -246,8 +246,8 @@ def transcribe_video_with_speakers(video_path):
|
|
246 |
denoised_audio_array = denoise_audio_array(audio_array, sr=fps)
|
247 |
|
248 |
# Step 3: Save denoised audio directly
|
249 |
-
|
250 |
-
sf.write(
|
251 |
|
252 |
speaker_sample_paths[speaker] = sample_path
|
253 |
logger.info(f"Created sample for {speaker}: {sample_path}")
|
|
|
246 |
denoised_audio_array = denoise_audio_array(audio_array, sr=fps)
|
247 |
|
248 |
# Step 3: Save denoised audio directly
|
249 |
+
sample_path = f"speaker_{speaker}_sample.wav"
|
250 |
+
sf.write(sample_path, denoised_audio_array, fps)
|
251 |
|
252 |
speaker_sample_paths[speaker] = sample_path
|
253 |
logger.info(f"Created sample for {speaker}: {sample_path}")
|