README.md 2.3 KB
Newer Older
L
lym0302 已提交
1 2 3 4 5 6 7 8 9 10 11 12
# PaddleSpeech Server Command Line

([简体中文](./README_cn.md)|English)

 The simplest approach to use PaddleSpeech Server including server and client.

 ## PaddleSpeech Server
 ### Help
 ```bash
 paddlespeech_server help
 ```
 ### Start the server
L
liangym 已提交
13 14 15
 First set the service-related configuration parameters, similar to `./conf/application.yaml`. Set `engine_list`, which represents the speech tasks included in the service to be started.
 **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.

L
lym0302 已提交
16 17 18 19 20 21 22 23 24 25 26 27
 Then start the service:
 ```bash
 paddlespeech_server start --config_file ./conf/application.yaml
 ```

 ## PaddleSpeech Client
 ### Help
 ```bash
 paddlespeech_client help
 ```
 ### Access speech recognition services 
 ```
L
lym0302 已提交
28
 paddlespeech_client asr --server_ip 127.0.0.1 --port 8090 --input input_16k.wav
L
lym0302 已提交
29 30 31 32 33 34 35
 ```
 
 ### Access text to speech services
 ```bash
 paddlespeech_client tts --server_ip 127.0.0.1 --port 8090 --input "你好,欢迎使用百度飞桨深度学习框架!" --output output.wav
 ```
 
L
lym0302 已提交
36 37 38 39
 ### Access audio classification services
 ```bash
 paddlespeech_client cls --server_ip 127.0.0.1 --port 8090 --input input.wav
 ```
40 41 42 43 44 45 46 47 48 49 50 51

 ## Online ASR Server

### Lanuch online asr server
```
paddlespeech_server start --config_file conf/ws_conformer_application.yaml
```

### Access online asr server

```
paddlespeech_client asr_online  --server_ip 127.0.0.1 --port 8090 --input input_16k.wav
H
format  
Hui Zhang 已提交
52
```
L
lym0302 已提交
53 54 55 56 57 58 59 60 61 62 63 64 65

## Online TTS Server

### Lanuch online tts server
```
paddlespeech_server start --config_file conf/tts_online_application.yaml
```

### Access online tts server

```
paddlespeech_client tts_online  --server_ip 127.0.0.1 --port 8092 --input "您好,欢迎使用百度飞桨深度学习框架!" --output output.wav
```
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86


## Speaker Verification

### Lanuch speaker verification server

```
paddlespeech_server start --config_file conf/vector_application.yaml
```

### Extract speaker embedding from aduio

```
paddlespeech_client vector --task spk  --server_ip 127.0.0.1 --port 8090 --input 85236145389.wav
```

### Get score with speaker audio embedding

```
paddlespeech_client vector --task score  --server_ip 127.0.0.1 --port 8090 --enroll 123456789.wav --test 85236145389.wav
```