Yukai Huang
commited on
fix: force use WeTextProcessing on arm64 macos
Browse files- cosyvoice/cli/frontend.py +4 -8
- requirements.txt +7 -2
cosyvoice/cli/frontend.py
CHANGED
@@ -23,14 +23,10 @@ import os
|
|
23 |
import re
|
24 |
import inflect
|
25 |
import subprocess
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
print("failed to import ttsfrd, use WeTextProcessing instead")
|
31 |
-
from tn.chinese.normalizer import Normalizer as ZhNormalizer
|
32 |
-
from tn.english.normalizer import Normalizer as EnNormalizer
|
33 |
-
use_ttsfrd = False
|
34 |
from cosyvoice.utils.frontend_utils import contains_chinese, replace_blank, replace_corner_mark, remove_bracket, spell_out_number, split_paragraph
|
35 |
|
36 |
|
|
|
23 |
import re
|
24 |
import inflect
|
25 |
import subprocess
|
26 |
+
# print("failed to import ttsfrd, use WeTextProcessing instead")
|
27 |
+
from tn.chinese.normalizer import Normalizer as ZhNormalizer
|
28 |
+
from tn.english.normalizer import Normalizer as EnNormalizer
|
29 |
+
use_ttsfrd = False
|
|
|
|
|
|
|
|
|
30 |
from cosyvoice.utils.frontend_utils import contains_chinese, replace_blank, replace_corner_mark, remove_bracket, spell_out_number, split_paragraph
|
31 |
|
32 |
|
requirements.txt
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
torch
|
2 |
torchaudio
|
3 |
librosa
|
|
|
4 |
hyperpyyaml
|
5 |
onnxruntime
|
6 |
openai-whisper
|
@@ -31,6 +32,10 @@ gdown
|
|
31 |
wget
|
32 |
seaborn
|
33 |
sox
|
|
|
|
|
|
|
|
|
34 |
|
35 |
-
https://www.modelscope.cn/models/speech_tts/speech_kantts_ttsfrd/resolve/master/ttsfrd_dependency-0.1-py3-none-any.whl
|
36 |
-
https://www.modelscope.cn/models/speech_tts/speech_kantts_ttsfrd/resolve/master/ttsfrd-0.3.9-cp310-cp310-linux_x86_64.whl
|
|
|
1 |
torch
|
2 |
torchaudio
|
3 |
librosa
|
4 |
+
numba==0.61.0
|
5 |
hyperpyyaml
|
6 |
onnxruntime
|
7 |
openai-whisper
|
|
|
32 |
wget
|
33 |
seaborn
|
34 |
sox
|
35 |
+
tn
|
36 |
+
pynini==2.1.6
|
37 |
+
WeTextProcessing
|
38 |
+
pyarrow
|
39 |
|
40 |
+
# https://www.modelscope.cn/models/speech_tts/speech_kantts_ttsfrd/resolve/master/ttsfrd_dependency-0.1-py3-none-any.whl
|
41 |
+
# https://www.modelscope.cn/models/speech_tts/speech_kantts_ttsfrd/resolve/master/ttsfrd-0.3.9-cp310-cp310-linux_x86_64.whl
|