[docs]update readme (#3043)

pull/3054/head
TianYuan 2 years ago committed by GitHub
parent 706a68bde9
commit 5270fda5bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
可用以下命令下载: 可用以下命令下载:
``` ```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
### 运行 ### 运行
``` 你可以修改 `./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.
## 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
## 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
## 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
## Clean ## Clean
``` ```bash
./clean.sh ./clean.sh
``` ```

Loading…
Cancel
Save