Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Fix Speech Issue No.1】 issue 3777 readme error #3778

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 33 additions & 2 deletions demos/audio_content_search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,42 @@ Here are sample files for this demo that can be downloaded:
wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav
```

### 3. Usage
### 3. Server Usage

- Command Line (Recommended)
**Note:** The default deployment of the server is on the 'CPU' device, which can be deployed on the 'GPU' by modifying the 'device' parameter in the service configuration file.
```bash
# in PaddleSpeech/demos/audio_content_search start the service
paddlespeech_server start --config_file ./conf/acs_application.yaml
```

Usage:

```bash
paddlespeech_server start --help
```
Arguments:
- `config_file`: yaml file of the app, defalut: `./conf/application.yaml`
- `log_file`: log file. Default: `./log/paddlespeech.log`

Output:
```bash
[2024-05-14 08: 51: 04,823] [ INFO] - start to init the engine
[2024-05-14 08: 51: 04,824] [ INFO] - acs : python engine.
[2024-05-14 08: 51: 04,831] [ INFO] - word list: ['我', '康']
[2024-05-14 08: 51: 04,831] [ INFO] - Initialize acs server engine successfully on device: cpu.
INFO: Started server process [21242]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http: /0.0.0.0:8490 (Press CTRL+C to quit)
```

### 4. Client Usage

- Command Line(Recommended)
```bash
# Chinese
paddlespeech_client acs --server_ip 127.0.0.1 --port 8090 --input ./zh.wav
paddlespeech_client acs --server_ip 127.0.0.1 --port 8490 --input ./zh.wav
```

Usage:
Expand Down
33 changes: 31 additions & 2 deletions demos/audio_content_search/README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,40 @@ pip install -r requriement.txt
```bash
wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav
```
### 3. 使用方法
### 3. 服务端使用方法
- 命令行 (推荐使用)
**注意:** 默认部署在 `cpu` 设备上,可以通过修改服务配置文件中 `device` 参数部署在 `gpu` 上。
```bash
# 在 PaddleSpeech/demos/audio_content_search 目录启动服务
paddlespeech_server start --config_file ./conf/ws_conformer_application.yaml
```

使用方法:

```bash
paddlespeech_server start --help
```
参数:
- `config_file`: 服务的配置文件,默认: `./conf/application.yaml`
- `log_file`: log 文件. 默认:`./log/paddlespeech.log`

输出:
```text
[2024-05-14 08: 51: 04,823] [ INFO] - start to init the engine
[2024-05-14 08: 51: 04,824] [ INFO] - acs : python engine.
[2024-05-14 08: 51: 04,831] [ INFO] - word list: ['我', '康']
[2024-05-14 08: 51: 04,831] [ INFO] - Initialize acs server engine successfully on device: cpu.
INFO: Started server process [21242]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http: /0.0.0.0:8490 (Press CTRL+C to quit)
```

### 4.客户端使用方法
- 命令行 (推荐使用)
```bash
# 中文
paddlespeech_client acs --server_ip 127.0.0.1 --port 8090 --input ./zh.wav
paddlespeech_client acs --server_ip 127.0.0.1 --port 8490 --input ./zh.wav
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

```

使用方法:
Expand Down