Skip to content

Commit 87475cc

Browse files
committed
fix conflict
1 parent b95f189 commit 87475cc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ torchaudio==2.3.1
3434
transformers==4.40.1
3535
uvicorn==0.30.0
3636
wget==3.2
37-
fastapi==0.111.0
37+
fastapi==0.115.6
3838
fastapi-cli==0.0.4
3939
WeTextProcessing==1.0.3

0 commit comments

Comments
 (0)