Skip to content

Commit ab33b0d

Browse files
committed
add wav url, test=doc
1 parent 354601d commit ab33b0d

File tree

2 files changed

+43
-19
lines changed

2 files changed

+43
-19
lines changed

demos/speech_server/README.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@ At present, the speech tasks integrated by the service include: asr (speech reco
2626
Currently the engine type supports two forms: python and inference (Paddle Inference)
2727
**Note:** If the service can be started normally in the container, but the client access IP is unreachable, you can try to replace the `host` address in the configuration file with the local IP address.
2828

29-
30-
The input of ASR client demo should be a WAV file(`.wav`), and the sample rate must be the same as the model.
31-
32-
Here are sample files for thisASR client demo that can be downloaded:
33-
```bash
34-
wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav https://paddlespeech.bj.bcebos.com/PaddleAudio/en.wav
35-
```
36-
3729
### 3. Server Usage
3830
- Command Line (Recommended)
3931

@@ -86,6 +78,15 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav https://paddlespee
8678

8779

8880
### 4. ASR Client Usage
81+
82+
The input of ASR client demo should be a WAV file(`.wav`), and the sample rate must be the same as the model.
83+
84+
Here are sample files for this ASR client demo that can be downloaded:
85+
```bash
86+
wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav
87+
wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/en.wav
88+
```
89+
8990
**Note:** The response time will be slightly longer when using the client for the first time
9091
- Command Line (Recommended)
9192

@@ -194,6 +195,12 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav https://paddlespee
194195
```
195196

196197
### 6. CLS Client Usage
198+
199+
Here are sample files for this CLS Client demo that can be downloaded:
200+
```bash
201+
wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav
202+
```
203+
197204
**Note:** The response time will be slightly longer when using the client for the first time
198205
- Command Line (Recommended)
199206

@@ -242,6 +249,12 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav https://paddlespee
242249

243250
### 7. Speaker Verification Client Usage
244251

252+
Here are sample files for this Speaker Verification Client demo that can be downloaded:
253+
```bash
254+
wget -c https://paddlespeech.bj.bcebos.com/vector/audio/85236145389.wav
255+
wget -c https://paddlespeech.bj.bcebos.com/vector/audio/123456789.wav
256+
```
257+
245258
#### 7.1 Extract speaker embedding
246259
**Note:** The response time will be slightly longer when using the client for the first time
247260
- Command Line (Recommended)

demos/speech_server/README_cn.md

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,6 @@
2929
目前引擎类型支持两种形式:python 及 inference (Paddle Inference)
3030
**注意:** 如果在容器里可正常启动服务,但客户端访问 ip 不可达,可尝试将配置文件中 `host` 地址换成本地 ip 地址。
3131

32-
33-
ASR client 的输入是一个 WAV 文件(`.wav`),并且采样率必须与模型的采样率相同。
34-
35-
可以下载此 ASR client 的示例音频:
36-
```bash
37-
wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav https://paddlespeech.bj.bcebos.com/PaddleAudio/en.wav
38-
```
39-
4032
### 3. 服务端使用方法
4133
- 命令行 (推荐使用)
4234

@@ -88,14 +80,22 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav https://paddlespee
8880
```
8981

9082
### 4. ASR 客户端使用方法
83+
84+
ASR 客户端的输入是一个 WAV 文件(`.wav`),并且采样率必须与模型的采样率相同。
85+
86+
可以下载 ASR 客户端的示例音频:
87+
```bash
88+
wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav
89+
wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/en.wav
90+
```
91+
9192
**注意:** 初次使用客户端时响应时间会略长
9293
- 命令行 (推荐使用)
9394

9495
`127.0.0.1` 不能访问,则需要使用实际服务 IP 地址
9596

9697
```
9798
paddlespeech_client asr --server_ip 127.0.0.1 --port 8090 --input ./zh.wav
98-
9999
```
100100

101101
使用帮助:
@@ -201,6 +201,11 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav https://paddlespee
201201

202202
### 6. CLS 客户端使用方法
203203

204+
可以下载 CLS 客户端的示例音频:
205+
```bash
206+
wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav
207+
```
208+
204209
**注意:** 初次使用客户端时响应时间会略长
205210

206211
- 命令行 (推荐使用)
@@ -249,8 +254,14 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav https://paddlespee
249254

250255
### 7. 声纹客户端使用方法
251256

257+
可以下载声纹客户端的示例音频:
258+
```bash
259+
wget -c https://paddlespeech.bj.bcebos.com/vector/audio/85236145389.wav
260+
wget -c https://paddlespeech.bj.bcebos.com/vector/audio/123456789.wav
261+
```
262+
252263
#### 7.1 提取声纹特征
253-
注意: 初次使用客户端时响应时间会略长
264+
**注意:** 初次使用客户端时响应时间会略长
254265
* 命令行 (推荐使用)
255266

256267
`127.0.0.1` 不能访问,则需要使用实际服务 IP 地址
@@ -303,7 +314,7 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav https://paddlespee
303314

304315
#### 7.2 音频声纹打分
305316

306-
注意: 初次使用客户端时响应时间会略长
317+
**注意:** 初次使用客户端时响应时间会略长
307318
* 命令行 (推荐使用)
308319

309320
`127.0.0.1` 不能访问,则需要使用实际服务 IP 地址

0 commit comments

Comments
 (0)