japanese_tts_ros
1.0.0
这是一个ROS节点,输出日语文本作为音频。
我正在使用开放式jtalk。
这取决于开放的jtalk和aplay命令。
sudo apt install open-jtalk open-jtalk-mecab-naist-jdic hts-voice-nitech-jp-atr503-m001 alsa-utils
请将其安装在Catkin工作区和catkin_make中。
请启动japanese_text_to_speech节点。该节点成为服务器,并输出从客户端接收到的音频文本。
rosrun japanese_text_to_speech japanese_text_to_speech
该节点是使用ActionLib实现的。提供一个简单的客户端样本,并配有test_client节点。
rosrun japanese_text_to_speech test_client
默认情况下,使用男性音频,但您也可以切换到其他音频。
将.htsvoice文件放在适当的位置,并设置~hts_voice_file rosparam。
rosrun japanese_text_to_speech japanese_text_to_speech _hts_voice_file:='/path/to/htsvoice'
例如,您可以使用Nagoya技术学院开发的MEI和Takumi语音模型。
使用以下命令获取和扩展语音模型。
wget https://sourceforge.net/projects/mmdagent/files/MMDAgent_Example/MMDAgent_Example-1.8/MMDAgent_Example-1.8.zip
unzip MMDAgent_Example-1.8.zip您可以通过在提取的文件的Voice/语音下指定文件来使用音频模型。例如,如果您想使用May愉快的声音的语音模型,请添加以下参数:
rosrun japanese_text_to_speech japanese_text_to_speech _hts_voice_file:= ' PATH_TO_UNZIPPED_FILES/MMDAgent_Example-1.8/Voice/mei/mei_happy.htsvoice '参考:https://www.rcnp.osaka-u.ac.jp/~kohda/linux/espeak.html