From 87475ccf41fd4ad88395d5b9f0d2d560397469c7 Mon Sep 17 00:00:00 2001 From: "lyuxiang.lx" Date: Fri, 10 Jan 2025 16:43:31 +0800 Subject: [PATCH] fix conflict --- README.md | 2 +- cosyvoice/utils/file_utils.py | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d5fc9ea..0ba9fd2 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ git submodule update --init --recursive - Create Conda env: ``` sh -conda create -n cosyvoice python=3.10 +conda create -n cosyvoice -y python=3.10 conda activate cosyvoice # pynini is required by WeTextProcessing, use conda to install it as it can be executed on all platform. conda install -y -c conda-forge pynini==2.1.5 diff --git a/cosyvoice/utils/file_utils.py b/cosyvoice/utils/file_utils.py index 3131769..d80f92d 100644 --- a/cosyvoice/utils/file_utils.py +++ b/cosyvoice/utils/file_utils.py @@ -40,7 +40,7 @@ def read_json_lists(list_file): def load_wav(wav, target_sr): - speech, sample_rate = torchaudio.load(wav) + speech, sample_rate = torchaudio.load(wav, backend='soundfile') speech = speech.mean(dim=0, keepdim=True) if sample_rate != target_sr: assert sample_rate > target_sr, 'wav sample rate {} must be greater than {}'.format(sample_rate, target_sr) diff --git a/requirements.txt b/requirements.txt index 70f5e5c..aa204ab 100644 --- a/requirements.txt +++ b/requirements.txt @@ -34,6 +34,6 @@ torchaudio==2.3.1 transformers==4.40.1 uvicorn==0.30.0 wget==3.2 -fastapi==0.111.0 +fastapi==0.115.6 fastapi-cli==0.0.4 WeTextProcessing==1.0.3