Skip to content

Commit 35abb1f

Browse files
committed
Merge branch 'main' of github.com:FunAudioLLM/CosyVoice into main
2 parents 21a5efd + 44316c3 commit 35abb1f

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@
6969
``` sh
7070
conda create -n cosyvoice -y python=3.10
7171
conda activate cosyvoice
72-
# pynini is required by WeTextProcessing, use conda to install it as it can be executed on all platforms.
73-
conda install -y -c conda-forge pynini==2.1.5
7472
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com
7573
7674
# If you encounter sox compatibility issues
@@ -106,7 +104,7 @@ git clone https://www.modelscope.cn/iic/CosyVoice-ttsfrd.git pretrained_models/C
106104

107105
Optionally, you can unzip `ttsfrd` resource and install `ttsfrd` package for better text normalization performance.
108106

109-
Notice that this step is not necessary. If you do not install `ttsfrd` package, we will use WeTextProcessing by default.
107+
Notice that this step is not necessary. If you do not install `ttsfrd` package, we will use wetext by default.
110108

111109
``` sh
112110
cd pretrained_models/CosyVoice-ttsfrd/

cosyvoice/cli/frontend.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
import ttsfrd
2929
use_ttsfrd = True
3030
except ImportError:
31-
print("failed to import ttsfrd, use WeTextProcessing instead")
32-
from tn.chinese.normalizer import Normalizer as ZhNormalizer
33-
from tn.english.normalizer import Normalizer as EnNormalizer
31+
print("failed to import ttsfrd, use wetext instead")
32+
from wetext import Normalizer as ZhNormalizer
33+
from wetext import Normalizer as EnNormalizer
3434
use_ttsfrd = False
3535
from cosyvoice.utils.file_utils import logging
3636
from cosyvoice.utils.frontend_utils import contains_chinese, replace_blank, replace_corner_mark, remove_bracket, spell_out_number, split_paragraph, is_only_punctuation
@@ -68,7 +68,7 @@ def __init__(self,
6868
'failed to initialize ttsfrd resource'
6969
self.frd.set_lang_type('pinyinvg')
7070
else:
71-
self.zh_tn_model = ZhNormalizer(remove_erhua=False, full_to_half=False, overwrite_cache=True)
71+
self.zh_tn_model = ZhNormalizer(remove_erhua=False)
7272
self.en_tn_model = EnNormalizer()
7373
self.inflect_parser = inflect.engine()
7474

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ torch==2.3.1
3636
torchaudio==2.3.1
3737
transformers==4.40.1
3838
uvicorn==0.30.0
39-
WeTextProcessing==1.0.3
39+
wetext==0.0.4
4040
wget==3.2

0 commit comments

Comments
 (0)