".\dictionary.csv"里面可以定义非汉字字符的读法
".\素材"为活字印刷素材的存放目录,音频素材需全部命名为"{对应拼音}.wav"
huoZiYinShua类里有两个方法:
huoZiYinShua.export(rawData, filePath)
rawData为要阅读的文本(字符串)
filePath为保存的文件路径(字符串)
playtext(rawData, tempPath = ".\HZYSTempOutput\temp.wav"):
rawData同上
tempPath为临时文件路径,可不填
具体使用示例见".\main.py"
效果:https://www.bilibili.com/video/BV1R541117uE
dream336 / huoziyinshua Goto Github PK
View Code? Open in Web Editor NEWThis project forked from dsp-8192/huoziyinshua
(鬼畜用)活字印刷生成器