Views
No views yet
git clone https://github.com/modelscope/ClearerVoice-Studio.git1cd ClearerVoice-Studio
2conda create -n clearvoice python=3.8
3conda activate clearvoice
4pip install -r requirements.txtclearvoice/ and use the following examples. The MossFormer2_SE_48K model will be downloaded from huggingface automatically.MossFormer2_SE_48K to process one wave file of samples/input.wav and save the output wave file to samples/output_MossFormer2_SE_48K.wav1from clearvoice import ClearVoice
2
3myClearVoice = ClearVoice(task='speech_enhancement', model_names=['MossFormer2_SE_48K'])
4
5output_wav = myClearVoice(input_path='samples/input.wav', online_write=False)
6
7myClearVoice.write(output_wav, output_path='samples/output_MossFormer2_SE_48K.wav')MossFormer2_SE_48K to process all input wave files in samples/path_to_input_wavs/ and save all output files to samples/path_to_output_wavs1from clearvoice import ClearVoice
2
3myClearVoice = ClearVoice(task='speech_enhancement', model_names=['MossFormer2_SE_48K'])
4
5myClearVoice(input_path='samples/path_to_input_wavs', online_write=True, output_path='samples/path_to_output_wavs')MossFormer2_SE_48K to process wave files listed in `samples/audio_samples.scp' file, and save all output files to 'samples/path_to_output_wavs_scp/'1from clearvoice import ClearVoice
2
3myClearVoice = ClearVoice(task='speech_enhancement', model_names=['MossFormer2_SE_48K'])
4
5myClearVoice(input_path='samples/scp/audio_samples.scp', online_write=True, output_path='samples/path_to_output_wavs_scp')