pull/1903/head
Yang Zhou 3 years ago
parent 8126ae726b
commit 06a01b03a2

@ -20,9 +20,9 @@ this demo is customized for expense account, which need to recognize rare addres
### 1. Installation ### 1. Installation
install paddle:2.2.2 docker. install paddle:2.2.2 docker.
``` ```
sudo nvidia-docker pull registry.baidubce.com/paddlepaddle/paddle:2.2.2 sudo docker pull registry.baidubce.com/paddlepaddle/paddle:2.2.2
sudo nvidia-docker run --privileged --net=host --ipc=host -it --rm -v $PWD:/paddle --name=paddle_demo_docker registry.baidubce.com/paddlepaddle/paddle:2.2.2 /bin/bash sudo docker run --privileged --net=host --ipc=host -it --rm -v $PWD:/paddle --name=paddle_demo_docker registry.baidubce.com/paddlepaddle/paddle:2.2.2 /bin/bash
``` ```
### 2. demo ### 2. demo
@ -30,16 +30,16 @@ sudo nvidia-docker run --privileged --net=host --ipc=host -it --rm -v $PWD:/pad
``` ```
bash websocket_server.sh bash websocket_server.sh
``` ```
this script run in two steps: this script run in two steps:
1. download the resources.tar.gz, those direcotries will be found in resource directory. 1. download the resources.tar.gz, those direcotries will be found in resource directory.
model: acustic model model: acustic model
graph: the decoder graph (TLG.fst) graph: the decoder graph (TLG.fst)
lib: some libs lib: some libs
bin: binary bin: binary
data: audio and wav.scp data: audio and wav.scp
2. websocket_server_main launch the service. 2. websocket_server_main launch the service.
some params: some params:
port: the service port port: the service port
graph_path: the decoder graph path graph_path: the decoder graph path
model_path: acustic model path model_path: acustic model path

@ -30,7 +30,7 @@ sudo nvidia-docker run --privileged --net=host --ipc=host -it --rm -v $PWD:/pad
bash websocket_server.sh bash websocket_server.sh
``` ```
上面脚本完成了如下两个功能: 上面脚本完成了如下两个功能:
1. 完成resource.tar.gz下载解压后,会在resource中发现如下目录 1. 完成resource.tar.gz下载解压后,会在resource中发现如下目录
model: 声学模型 model: 声学模型
graph: 解码构图 graph: 解码构图
lib: 相关库 lib: 相关库

Loading…
Cancel
Save