From 5270fda5bf6d151faf96412504db3dad06a4ff14 Mon Sep 17 00:00:00 2001 From: TianYuan Date: Tue, 14 Mar 2023 20:52:55 +0800 Subject: [PATCH] [docs]update readme (#3043) --- demos/TTSArmLinux/README.md | 12 ++++++------ demos/TTSCppFrontend/README.md | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/demos/TTSArmLinux/README.md b/demos/TTSArmLinux/README.md index 50ae1e4b..a4ccba6c 100644 --- a/demos/TTSArmLinux/README.md +++ b/demos/TTSArmLinux/README.md @@ -10,7 +10,7 @@ ### 安装依赖 -``` +```bash # Ubuntu sudo apt install build-essential cmake pkg-config wget tar unzip @@ -25,15 +25,13 @@ sudo yum install cmake wget tar unzip 可用以下命令下载: -``` -git clone https://github.com/PaddlePaddle/PaddleSpeech.git -cd PaddleSpeech/demos/TTSArmLinux +```bash ./download.sh ``` ### 编译 Demo -``` +```bash ./build.sh ``` @@ -43,7 +41,9 @@ cd PaddleSpeech/demos/TTSArmLinux ### 运行 -``` +你可以修改 `./front.conf` 中 `--phone2id_path` 参数为你自己的声学模型的 `phone_id_map.txt` 。 + +```bash ./run.sh ./run.sh --sentence "语音合成测试" ./run.sh --sentence "输出到指定的音频文件" --output_wav ./output/test.wav diff --git a/demos/TTSCppFrontend/README.md b/demos/TTSCppFrontend/README.md index 552858de..c179fdd0 100644 --- a/demos/TTSCppFrontend/README.md +++ b/demos/TTSCppFrontend/README.md @@ -6,7 +6,7 @@ Currently it only supports Chinese, any English word will crash the demo. ## Install Build Tools -``` +```bash # Ubuntu 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 -``` +```bash # Build with all CPU cores ./build.sh @@ -33,14 +33,14 @@ If the download speed is too slow, you can open [third-party/CMakeLists.txt](thi ## Download dictionary files -``` +```bash ./download.sh ``` ## Run 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 --help ./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 -``` +```bash ./clean.sh ```