File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ git submodule update --init --recursive
6363- Create Conda env:
6464
6565``` sh
66- conda create -n cosyvoice python=3.10
66+ conda create -n cosyvoice -y python=3.10
6767conda activate cosyvoice
6868# pynini is required by WeTextProcessing, use conda to install it as it can be executed on all platform.
6969conda install -y -c conda-forge pynini==2.1.5
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def read_json_lists(list_file):
4040
4141
4242def load_wav (wav , target_sr ):
43- speech , sample_rate = torchaudio .load (wav )
43+ speech , sample_rate = torchaudio .load (wav , backend = 'soundfile' )
4444 speech = speech .mean (dim = 0 , keepdim = True )
4545 if sample_rate != target_sr :
4646 assert sample_rate > target_sr , 'wav sample rate {} must be greater than {}' .format (sample_rate , target_sr )
You can’t perform that action at this time.
0 commit comments