From 4540e249204bb34e558bfcf86158a5d1dd2885eb Mon Sep 17 00:00:00 2001 From: zxcd <228587199@qq.com> Date: Mon, 12 Aug 2024 13:00:25 +0000 Subject: [PATCH] fix --- demos/audio_content_search/README.md | 15 ++++++++++++--- demos/audio_content_search/README_cn.md | 16 +++++++++++++--- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/demos/audio_content_search/README.md b/demos/audio_content_search/README.md index 4428bf389..f04ac447e 100644 --- a/demos/audio_content_search/README.md +++ b/demos/audio_content_search/README.md @@ -19,7 +19,7 @@ You can choose one way from meduim and hard to install paddlespeech. The dependency refers to the requirements.txt, and install the dependency as follows: ``` -pip install -r requriement.txt +pip install -r requirements.txt ``` ### 2. Prepare Input File @@ -30,11 +30,20 @@ Here are sample files for this demo that can be downloaded: wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav ``` -### 3. Usage +### 3. run paddlespeech_server +Before using the client, it is necessary to start paddlespeech_servers. + +Here are sample server configuration: +```bash +bash demos/audio_content_search/run.sh +``` +The logs of the two services will be recorded in 'acs.log' and 'streaming_asr.log' in this configuration. + +### 4. 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: diff --git a/demos/audio_content_search/README_cn.md b/demos/audio_content_search/README_cn.md index 04eb7847b..16c1a3dd7 100644 --- a/demos/audio_content_search/README_cn.md +++ b/demos/audio_content_search/README_cn.md @@ -19,7 +19,7 @@ 依赖参见 requirements.txt, 安装依赖 ``` -pip install -r requriement.txt +pip install -r requirements.txt ``` ### 2. 准备输入 @@ -29,11 +29,21 @@ pip install -r requriement.txt ```bash wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav ``` -### 3. 使用方法 + +### 3. 启动 server +使用 client 之前需要先启动 paddlespeech_server。 + +可以使用默认 server 配置: +```bash +bash demos/audio_content_search/run.sh +``` +该配置下两个服务的日志会被记录在 `acs.log` 和 `streaming_asr.log` 中。 + +### 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 ``` 使用方法: