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