未验证 提交 5270fda5 编写于 作者: 小湉湉's avatar 小湉湉 提交者: GitHub

[docs]update readme (#3043)

上级 706a68bd
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
### 安装依赖 ### 安装依赖
``` ```bash
# Ubuntu # Ubuntu
sudo apt install build-essential cmake pkg-config wget tar unzip sudo apt install build-essential cmake pkg-config wget tar unzip
...@@ -25,15 +25,13 @@ sudo yum install cmake wget tar unzip ...@@ -25,15 +25,13 @@ sudo yum install cmake wget tar unzip
可用以下命令下载: 可用以下命令下载:
``` ```bash
git clone https://github.com/PaddlePaddle/PaddleSpeech.git
cd PaddleSpeech/demos/TTSArmLinux
./download.sh ./download.sh
``` ```
### 编译 Demo ### 编译 Demo
``` ```bash
./build.sh ./build.sh
``` ```
...@@ -43,7 +41,9 @@ cd PaddleSpeech/demos/TTSArmLinux ...@@ -43,7 +41,9 @@ cd PaddleSpeech/demos/TTSArmLinux
### 运行 ### 运行
``` 你可以修改 `./front.conf``--phone2id_path` 参数为你自己的声学模型的 `phone_id_map.txt`
```bash
./run.sh ./run.sh
./run.sh --sentence "语音合成测试" ./run.sh --sentence "语音合成测试"
./run.sh --sentence "输出到指定的音频文件" --output_wav ./output/test.wav ./run.sh --sentence "输出到指定的音频文件" --output_wav ./output/test.wav
......
...@@ -6,7 +6,7 @@ Currently it only supports Chinese, any English word will crash the demo. ...@@ -6,7 +6,7 @@ Currently it only supports Chinese, any English word will crash the demo.
## Install Build Tools ## Install Build Tools
``` ```bash
# Ubuntu # Ubuntu
sudo apt install build-essential cmake pkg-config sudo apt install build-essential cmake pkg-config
...@@ -19,7 +19,7 @@ If your cmake version is too old, you can go here to download a precompiled new ...@@ -19,7 +19,7 @@ If your cmake version is too old, you can go here to download a precompiled new
## Build ## Build
``` ```bash
# Build with all CPU cores # Build with all CPU cores
./build.sh ./build.sh
...@@ -33,14 +33,14 @@ If the download speed is too slow, you can open [third-party/CMakeLists.txt](thi ...@@ -33,14 +33,14 @@ If the download speed is too slow, you can open [third-party/CMakeLists.txt](thi
## Download dictionary files ## Download dictionary files
``` ```bash
./download.sh ./download.sh
``` ```
## Run ## Run
You can change `--phone2id_path` in `./front_demo/front.conf` to the `phone_id_map.txt` of your own acoustic model. You can change `--phone2id_path` in `./front_demo/front.conf` to the `phone_id_map.txt` of your own acoustic model.
``` ```bash
./run_front_demo.sh ./run_front_demo.sh
./run_front_demo.sh --help ./run_front_demo.sh --help
./run_front_demo.sh --sentence "这是语音合成服务的文本前端,用于将文本转换为音素序号数组。" ./run_front_demo.sh --sentence "这是语音合成服务的文本前端,用于将文本转换为音素序号数组。"
...@@ -49,7 +49,7 @@ You can change `--phone2id_path` in `./front_demo/front.conf` to the `phone_id_m ...@@ -49,7 +49,7 @@ You can change `--phone2id_path` in `./front_demo/front.conf` to the `phone_id_m
## Clean ## Clean
``` ```bash
./clean.sh ./clean.sh
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册