naver-clova语音合成api的tts包装
clovaTTS的Python项目详细描述
克洛瓦茨
clova tts使用Naver Clova Speech Synthesis API执行文本到语音转换。
安装
pip install clovaTTS
快速启动
from clovaTTS import clovaTTS
# clovaTTS can save sound data in an internal cache and reuse it. cache_dir should exist.
# Default: use_cache=False
tts = clovaTTS("mijin", "<client_id>", "<client_secret>", use_cache=True, cache_dir="/home/ttscache")
# Input text (in Korean)
text = "그래요. 많은 분들이 저를 찾고 있지요."
# Perform Text-to-Speech
speech = tts.tts(text)
# Save the output into a file
tts.save("output.mp3", speech)
联系人
有什么问题或帮助吗?请在Minsu(at)etri.re.kr.联系我。