Skip to content

Commit ae7a73b

Browse files
authored
Merge pull request #2138 from zh794390558/demos
[demos] more cli for speech demos
2 parents 16f075e + 74245cc commit ae7a73b

File tree

21 files changed

+159
-13
lines changed

21 files changed

+159
-13
lines changed

demos/custom_streaming_asr/setup_docker.sh

100644100755
File mode changed.

demos/keyword_spotting/run.sh

100644100755
File mode changed.

demos/speaker_verification/run.sh

100644100755
File mode changed.

demos/speech_recognition/run.sh

100644100755
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
11
#!/bin/bash
22

3-
wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav https://paddlespeech.bj.bcebos.com/PaddleAudio/en.wav
3+
wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav
4+
wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/en.wav
45

56
# asr
67
paddlespeech asr --input ./zh.wav
78

89

910
# asr + punc
1011
paddlespeech asr --input ./zh.wav | paddlespeech text --task punc
12+
13+
14+
# asr help
15+
paddlespeech asr --help
16+
17+
18+
# english asr
19+
paddlespeech asr --lang en --model transformer_librispeech --input ./en.wav
20+
21+
# model stats
22+
paddlespeech stats --task asr
23+
24+
25+
# paddlespeech help
26+
paddlespeech --help

demos/speech_server/asr_client.sh

100644100755
File mode changed.

demos/speech_server/cls_client.sh

100644100755
File mode changed.

demos/speech_server/server.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
paddlespeech_server start --config_file ./conf/application.yaml
3+
paddlespeech_server start --config_file ./conf/application.yaml &> server.log &

demos/speech_server/sid_client.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
wget -c https://paddlespeech.bj.bcebos.com/vector/audio/85236145389.wav
4+
wget -c https://paddlespeech.bj.bcebos.com/vector/audio/123456789.wav
5+
6+
# sid extract
7+
paddlespeech_client vector --server_ip 127.0.0.1 --port 8090 --task spk --input ./85236145389.wav
8+
9+
# sid score
10+
paddlespeech_client vector --server_ip 127.0.0.1 --port 8090 --task score --enroll ./85236145389.wav --test ./123456789.wav

demos/speech_server/text_client.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
4+
paddlespeech_client text --server_ip 127.0.0.1 --port 8090 --input 今天的天气真好啊你下午有空吗我想约你一起去吃饭

demos/speech_server/tts_client.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)