Chinese Text-to-Speech web service
Chinese Text-to-Speech(TTS)
汉字 => [“han4”, “zi4”] => .wav audio
Read this page in 简体中文
A list of all Chinese characters is obtained from 倉頡平台2012, a Chinese input software.
git clone https://github.com/junzew/HanTTS.git
cd HanTTS
pip install --user -r requires.txt
Download syllables.zip
from SourceForge, and decompress under the directory HanTTS
.
python main.py
cd
into the server
foldernpm install
node app.js
Navigate to localhost:3000
in a browsermapping.json
./recording
as {letter}.wav
python process.py {letter}
for each letter
to split recordings into individual pinyin./pre
to the folder ./syllables
heroku create
heroku git:remote -a <app-name>
heroku buildpacks:set https://github.com/heroku/heroku-buildpack-nodejs#v170 -a <app-name>
heroku buildpacks:add --index 1 heroku-community/apt
heroku buildpacks:add --index 3 heroku/python
$heroku buildpacks
=== hantts Buildpack URLs
1. heroku-community/apt
2. https://github.com/heroku/heroku-buildpack-nodejs#v170
3. heroku/python
heroku apps:rename <newname>
heroku ps:scale web=1
git push heroku master
app.listen(process.env.PORT || 3000, function () {...}
Based on the text-to-speech-sample project by @alexram1313