1 Star 2 Fork 3

峯挚 / HanTTS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

HanTTS Build Status

汉语文字转语音 (TTS)

汉字 => 拼音 ["han4", "zi4"] => .wav音频

使用的库

汉字转拼音

处理、播放.wav音频文件

Web

全部汉字列表从倉頡平台2012获得

运行

git clone https://github.com/junzew/HanTTS.git
cd HanTTS
pip install --user -r requires.txt

从SourceForge下载语音库syllables.zip,并解压到HanTTS目录下

  • 本地执行 python main.py
  • 或 Web
    • cdserver 文件夹下
    • npm install
    • node app.js
    • 浏览器里打开localhost:3000

录制新的语音库

  • 按阴平、阳平、上声、去声、轻声的顺序录下 mapping.json 里每一个音节的五个声调
  • 按开头字母(letter)分组, 将文件存在 ./recording/{letter}.wav下
  • 运行 python process.py {letter} 将{letter}.wav 完整的录音分成独立的拼音
  • 检查核对./pre文件夹中的拼音.wav后导入文件夹./syllables

基于@alexram1313text-to-speech-sample

MIT License Copyright (c) 2017 Junze Wu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

开源汉语语音合成 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/dhfhub/HanTTS.git
git@gitee.com:dhfhub/HanTTS.git
dhfhub
HanTTS
HanTTS
master

搜索帮助