From 4be005858b75c380a6a7b614108bafd1db8dddd6 Mon Sep 17 00:00:00 2001 From: zxcd <228587199@qq.com> Date: Thu, 22 Aug 2024 11:18:29 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90DOC=E3=80=91fix=20demos=20bug=20(#3830?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix demos * fix test --- demos/audio_searching/requirements.txt | 6 +++--- demos/streaming_asr_server/README.md | 4 ++-- demos/streaming_asr_server/README_cn.md | 4 ++-- demos/style_fs2/run.sh | 2 +- .../unit/server/online/tts/test_server/test_http_client.py | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/demos/audio_searching/requirements.txt b/demos/audio_searching/requirements.txt index 9d0f6419bb9..3c0f05afc4d 100644 --- a/demos/audio_searching/requirements.txt +++ b/demos/audio_searching/requirements.txt @@ -1,5 +1,5 @@ -diskcache==5.2.1 -dtaidistance==2.3.1 +diskcache +dtaidistane fastapi librosa==0.8.0 numpy==1.22.0 @@ -10,4 +10,4 @@ python-multipart soundfile==0.10.3.post1 starlette typing -uvicorn \ No newline at end of file +uvicorn diff --git a/demos/streaming_asr_server/README.md b/demos/streaming_asr_server/README.md index 31256d15106..136863b96a0 100644 --- a/demos/streaming_asr_server/README.md +++ b/demos/streaming_asr_server/README.md @@ -429,7 +429,7 @@ bash server.sh If `127.0.0.1` is not accessible, you need to use the actual service IP address. ```bash - paddlespeech_client asr_online --server_ip 127.0.0.1 --port 8290 --punc.server_ip 127.0.0.1 --punc.port 8190 --input ./zh.wav + paddlespeech_client asr_online --server_ip 127.0.0.1 --port 8090 --punc.server_ip 127.0.0.1 --punc.port 8190 --input ./zh.wav ``` Output: ```text @@ -507,7 +507,7 @@ bash server.sh If `127.0.0.1` is not accessible, you need to use the actual service IP address. ```bash - python3 websocket_client.py --server_ip 127.0.0.1 --port 8290 --punc.server_ip 127.0.0.1 --punc.port 8190 --wavfile ./zh.wav + python3 local/websocket_client.py --server_ip 127.0.0.1 --port 8090 --punc.server_ip 127.0.0.1 --punc.port 8190 --wavfile ./zh.wav ``` Output: ```text diff --git a/demos/streaming_asr_server/README_cn.md b/demos/streaming_asr_server/README_cn.md index bbddd69323c..f5f477ea1f9 100644 --- a/demos/streaming_asr_server/README_cn.md +++ b/demos/streaming_asr_server/README_cn.md @@ -428,7 +428,7 @@ bash server.sh 若 `127.0.0.1` 不能访问,则需要使用实际服务 IP 地址 ```bash - paddlespeech_client asr_online --server_ip 127.0.0.1 --port 8290 --punc.server_ip 127.0.0.1 --punc.port 8190 --input ./zh.wav + paddlespeech_client asr_online --server_ip 127.0.0.1 --port 8090 --punc.server_ip 127.0.0.1 --punc.port 8190 --input ./zh.wav ``` 输出: ```text @@ -506,7 +506,7 @@ bash server.sh 若 `127.0.0.1` 不能访问,则需要使用实际服务 IP 地址 ```bash - python3 websocket_client.py --server_ip 127.0.0.1 --port 8290 --punc.server_ip 127.0.0.1 --punc.port 8190 --wavfile ./zh.wav + python3 local/websocket_client.py --server_ip 127.0.0.1 --port 8090 --punc.server_ip 127.0.0.1 --punc.port 8190 --wavfile ./zh.wav ``` 输出: ```text diff --git a/demos/style_fs2/run.sh b/demos/style_fs2/run.sh index 6f6d606809a..45fc0c1041c 100755 --- a/demos/style_fs2/run.sh +++ b/demos/style_fs2/run.sh @@ -32,7 +32,7 @@ if [ ${stage} -le 1 ] && [ ${stop_stage} -ge 1 ]; then --pwg-config=download/pwg_baker_ckpt_0.4/pwg_default.yaml \ --pwg-checkpoint=download/pwg_baker_ckpt_0.4/pwg_snapshot_iter_400000.pdz \ --pwg-stat=download/pwg_baker_ckpt_0.4/pwg_stats.npy \ - --text=${BIN_DIR}/../sentences.txt \ + --text=./sentences.txt \ --output-dir=output \ --phones-dict=download/fastspeech2_nosil_baker_ckpt_0.4/phone_id_map.txt fi diff --git a/tests/unit/server/online/tts/test_server/test_http_client.py b/tests/unit/server/online/tts/test_server/test_http_client.py index 3174e85e28c..685c5ca9c8d 100644 --- a/tests/unit/server/online/tts/test_server/test_http_client.py +++ b/tests/unit/server/online/tts/test_server/test_http_client.py @@ -48,7 +48,7 @@ def test(args, text, utt_id): parser.add_argument( "--text", type=str, - default="../../../../../../paddlespeech/t2s/exps/csmsc_test.txt", + default="../../../../../../paddlespeech/t2s/assets/csmsc_test.txt", help="text to synthesize, a 'utt_id sentence' pair per line") parser.add_argument('--spk_id', type=int, default=0, help='Speaker id') parser.add_argument('--speed', type=float, default=1.0, help='Audio speed')