臤徘斯 Kinboise
此程序用于朗读我的人造语言:帜和语,也可以修改以适配其他语言。
A TTS program for my conlang Seniva. Can be adapted to other languages.
安装 Python3。并安装所需的包:
Requires Python3 and packages:
pip install -r requirements.txt
安装支持 SAPI5 的音源。我这里使用了 RHVoice.org 的免费音源。
Install voice banks that supports SAPI 5. I'm using free voices from RHVoice.org.
下载本仓库至任意文件夹。
Download/Clone this repo.
在本程序的保存路径中用此命令查看帮助:
Use this command for help:
python senivatts.py -h
使用第二个波兰语音源,1.5倍速朗读 "mi e hafa-gara vol."
Read "mi e hafa-gara vol." with the 2nd Polish voice bank, 1.5x rate.
python senivatts.py -t "mi e hafa-gara vol." -l pl -v 2 -r 1.5
使用第一个阿尔巴尼亚语音源朗读文件soc.txt
的内容,并输出音频文件soc.wav
Read the file soc.txt
with the 1st Albanian voice bank, and output a wave file soc.wav
python senivatts.py -f soc.txt -l sq -o soc.wav
senivatts.yml
中包含声库注册表路径(部分)、基准语速、帜和语转换规则。如利用塞尔维亚语声库sr
来朗读帜和语时,输入的文本 "tence Dcanqovi" 会被转为 "tenče džanovi" 来朗读。如需适配其他语言,更改各语种的rules
部分即可。
senivatts.yml
contains names of the voice banks, the default rate, and the rules to convert Seniva text. Take sr
Serbian as an example. Seniva text input "tence Dcanqovi" will be converted to "tenče džanovi" for the Serbian TTS to read. Change rules
to adapt to other languages.