-
Notifications
You must be signed in to change notification settings - Fork 23
RuntimeError: espeak not installed on your system #7
Description
Using venv,and get
RuntimeError: espeak not installed on your system
Here is :
(venv) L:\diffrhythm2>python inference.py ^
More? --repo-id "ASLP-lab/DiffRhythm2" ^
More? --output-dir "L:\diffrhythm2\output" ^
More? --input-jsonl "L:\diffrhythm2\example\test.jsonl" ^
More? --cfg-strength 2.0 ^
More? --max-secs 180 ^
More? --steps 16 ^
More? --fake-stereo True
ODE SOLVER: euler
block_size: 10; num_history_block: None
Total params: 1,136,249,664
L:\diffrhythm2\venv\lib\site-packages\torch\nn\utils\weight_norm.py:143: FutureWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
WeightNorm.apply(module, name, dim)
The argument trust_remote_code is to be used with Auto classes. It has no effect here and is ignored.
L:\diffrhythm2\g2p\sources\g2p_chinese_model\poly_bert_model.onnx
L:\diffrhythm2\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py:123: UserWarning: Specified provider 'CUDAExecutionProvider' is not in available provider names.Available providers: 'AzureExecutionProvider, CPUExecutionProvider'
warnings.warn(
Traceback (most recent call last):
File "L:\diffrhythm2\inference.py", line 215, in
diffrhythm2, mulan, lrc_tokenizer, decoder = prepare_model(args.repo_id, device)
File "L:\diffrhythm2\inference.py", line 107, in prepare_model
lrc_tokenizer = CNENTokenizer()
File "L:\diffrhythm2\inference.py", line 57, in init
from g2p.g2p_generation import chn_eng_g2p
File "L:\diffrhythm2\g2p\g2p_generation.py", line 10, in
from g2p.utils.g2p import phonemizer_g2p
File "L:\diffrhythm2\g2p\utils\g2p.py", line 17, in
phonemizer_zh = EspeakBackend(
File "L:\diffrhythm2\venv\lib\site-packages\phonemizer\backend\espeak\espeak.py", line 45, in init
super().init(
File "L:\diffrhythm2\venv\lib\site-packages\phonemizer\backend\espeak\base.py", line 39, in init
super().init(
File "L:\diffrhythm2\venv\lib\site-packages\phonemizer\backend\base.py", line 77, in init
raise RuntimeError( # pragma: nocover
RuntimeError: espeak not installed on your system
But,when i runing this:
(venv) L:\diffrhythm2>espeak --version
cmd shows:
eSpeak NG text-to-speech: 1.52.0 Data at: C:\Program Files\eSpeak NG/espeak-ng-data
And
(venv) L:\diffrhythm2>espeak-ng --version
cmd shows:
eSpeak NG text-to-speech: 1.52.0 Data at: C:\Program Files\eSpeak NG/espeak-ng-data
So,why it cant use my espeak?