agorlanov commited on
Commit
4c18976
1 Parent(s): bf7fd65

denoise_diar_app

Browse files
Files changed (1) hide show
  1. main_pipeline.py +2 -2
main_pipeline.py CHANGED
@@ -22,7 +22,7 @@ def save_speaker_audios(segments, denoised_audio_path, out_folder='out', out_f=4
22
  start = int(r["start"] * out_f)
23
  end = int(r["end"] * out_f)
24
  # output_signal[start:end] = signal[start:end]
25
- out_wav_paths.append(signal[start:end])
26
 
27
  out_wav_path = f'{out_folder}/{label}.wav'
28
  sf.write(out_wav_path, np.concatenate(output_signal), out_f, 'PCM_24')
@@ -42,4 +42,4 @@ def main_pipeline(audio_path):
42
 
43
 
44
  if __name__ == '__main__':
45
- main_pipeline('dialog.mp3')
 
22
  start = int(r["start"] * out_f)
23
  end = int(r["end"] * out_f)
24
  # output_signal[start:end] = signal[start:end]
25
+ output_signal.append(signal[start:end])
26
 
27
  out_wav_path = f'{out_folder}/{label}.wav'
28
  sf.write(out_wav_path, np.concatenate(output_signal), out_f, 'PCM_24')
 
42
 
43
 
44
  if __name__ == '__main__':
45
+ main_pipeline('out.wav')