clova-tts performs text-to-speech using 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)
Any questions or assistance? Please contact me at minsu(at)etri.re.kr.