File tree Expand file tree Collapse file tree 4 files changed +30
-8
lines changed
demos/audio_content_search Expand file tree Collapse file tree 4 files changed +30
-8
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ You can choose one way from meduim and hard to install paddlespeech.
19
19
The dependency refers to the requirements.txt, and install the dependency as follows:
20
20
21
21
```
22
- pip install -r requriement .txt
22
+ pip install -r requirements .txt
23
23
```
24
24
25
25
### 2. Prepare Input File
@@ -30,11 +30,20 @@ Here are sample files for this demo that can be downloaded:
30
30
wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav
31
31
```
32
32
33
- ### 3. Usage
33
+ ### 3. run paddlespeech_server
34
+ Before using the client, it is necessary to start paddlespeech_servers.
35
+
36
+ Here are sample server configuration:
37
+ ``` bash
38
+ bash demos/audio_content_search/run.sh
39
+ ```
40
+ The logs of the two services will be recorded in 'acs.log' and 'streaming_asr.log' in this configuration.
41
+
42
+ ### 4. Usage
34
43
- Command Line(Recommended)
35
44
``` bash
36
45
# Chinese
37
- paddlespeech_client acs --server_ip 127.0.0.1 --port 8090 --input ./zh.wav
46
+ paddlespeech_client acs --server_ip 127.0.0.1 --port 8490 --input ./zh.wav
38
47
```
39
48
40
49
Usage:
Original file line number Diff line number Diff line change 19
19
依赖参见 requirements.txt, 安装依赖
20
20
21
21
```
22
- pip install -r requriement .txt
22
+ pip install -r requirements .txt
23
23
```
24
24
25
25
### 2. 准备输入
@@ -29,16 +29,26 @@ pip install -r requriement.txt
29
29
``` bash
30
30
wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav
31
31
```
32
- ### 3. 使用方法
32
+
33
+ ### 3. 启动 server
34
+ 使用 client 之前需要先启动 paddlespeech_server。
35
+
36
+ 可以使用默认 server 配置:
37
+ ``` bash
38
+ bash demos/audio_content_search/run.sh
39
+ ```
40
+ 该配置下两个服务的日志会被记录在 ` acs.log ` 和 ` streaming_asr.log ` 中。
41
+
42
+ ### 4. 使用方法
33
43
- 命令行 (推荐使用)
34
44
``` bash
35
45
# 中文
36
- paddlespeech_client acs --server_ip 127.0.0.1 --port 8090 --input ./zh.wav
46
+ paddlespeech_client acs --server_ip 127.0.0.1 --port 8490 --input ./zh.wav
37
47
```
38
48
39
49
使用方法:
40
50
``` bash
41
- paddlespeech acs --help
51
+ paddlespeech asr --help
42
52
```
43
53
参数:
44
54
- ` input ` (必须输入):用于识别的音频文件。
Original file line number Diff line number Diff line change @@ -26,8 +26,10 @@ asr_online:
26
26
sample_rate : 16000
27
27
cfg_path :
28
28
decode_method : ' attention_rescoring'
29
+ num_decoding_left_chunks : -1 # number of left chunks for decoding. Defaults to -1.
29
30
force_yes : True
30
31
device : ' cpu' # cpu or gpu:id
32
+ continuous_decoding : False # disable continue decoding when endpoint detected
31
33
am_predictor_conf :
32
34
device : # set 'gpu:id' or 'cpu'
33
35
switch_ir_optim : True
@@ -40,4 +42,4 @@ asr_online:
40
42
window_ms : 25 # ms
41
43
shift_ms : 10 # ms
42
44
sample_rate : 16000
43
- sample_width : 2
45
+ sample_width : 2
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ asr_online:
31
31
force_yes : True
32
32
device : ' cpu' # cpu or gpu:id
33
33
decode_method : " attention_rescoring"
34
+ num_decoding_left_chunks : -1 # number of left chunks for decoding. Defaults to -1.
34
35
am_predictor_conf :
35
36
device : # set 'gpu:id' or 'cpu'
36
37
switch_ir_optim : True
You can’t perform that action at this time.
0 commit comments