Skip to content

Commit

Permalink
【DOC】fix demos bug (#3830)
Browse files Browse the repository at this point in the history
* fix demos

* fix test
  • Loading branch information
zxcd authored Aug 22, 2024
1 parent 0b56813 commit 4be0058
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions demos/audio_searching/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diskcache==5.2.1
dtaidistance==2.3.1
diskcache
dtaidistane
fastapi
librosa==0.8.0
numpy==1.22.0
Expand All @@ -10,4 +10,4 @@ python-multipart
soundfile==0.10.3.post1
starlette
typing
uvicorn
uvicorn
4 changes: 2 additions & 2 deletions demos/streaming_asr_server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions demos/streaming_asr_server/README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion demos/style_fs2/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 4be0058

Please sign in to comment.