shixian.shi
2023-11-23 c9f1b4e8a2e903f74de20d019e70307c26e93c3e
funasr/bin/ss_inference_launch.py
@@ -104,7 +104,7 @@
            ss_results = speech_separator(**batch)
            
            for spk in range(num_spks):
                sf.write(os.path.join(output_path, keys[0].replace('.wav', '_s'+str(spk+1)+'.wav')), ss_results[spk], sample_rate)
                sf.write(os.path.join(output_path, keys[0] + '_s' + str(spk+1)+'.wav'), ss_results[spk], sample_rate)
        torch.cuda.empty_cache()
        return ss_results