Skip to content

Commit 06e8661

Browse files
authored
Merge pull request #867 from FunAudioLLM/dev/lyuxiang.lx
Dev/lyuxiang.lx
2 parents 8a1bce6 + e257c16 commit 06e8661

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
6767
conda activate cosyvoice
6868
# pynini is required by WeTextProcessing, use conda to install it as it can be executed on all platform.
6969
conda install -y -c conda-forge pynini==2.1.5

cosyvoice/utils/file_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def read_json_lists(list_file):
4040

4141

4242
def 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)

0 commit comments

Comments
 (0)