PTTS WebAPP
1.0.0
[TOC]
A single web demo project for speech synthesis done using Flask + Vue (framework: Vuetify), the speech synthesis backend is based on another project of my synthesis.
.
|--- backend/
|--- pretrained/ # 预训练模型
|--- mytts.py # 封装 TTS 类
|--- ...
|--- dist/ # 前端的编译输出
|--- frontend/
|--- public/
|--- src/
|--- components/
|--- MyParaTTS.vue # 语音合成页面
|--- ...
|--- ...
|--- client.py # 接口测试脚本
|--- LICENSE
|--- README.md # 说明文档
|--- requirements.txt # 依赖文件
|--- server.py # 服务器端启动脚本
$ git clone https://github.com/atomicoo/PTTS-WebAPP.git
$ cd PTTS-WebAPP/frontend/
$ npm install --save
$ npm run dev
$ cd ..
$ pip install -r requirements.txt
$ python server.py
$ python client.py After running the npm run dev command, the compilation output of the front-end code should have been generated in the root directory of the project, in the ./dist/ directory.
After running the python server.py command, the server side has been started. You can first try python client.py to test whether the voice synthesis interface is normal.
If everything is normal at this point, just visit http://localhost:5000/ directly.
./config/ and the model file under ./pretrained/ , but it has not been completely tested and cannot be sure that there will be no problems.