haoneng.lhn
2023-09-21 8ae9fa8365eba7d33c8d8f5fa51d12903ca6a409
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