前提:机器人产品已有自带的工具包
1.设备检测
桌面右上角“设置”->声音->检测声音“输入”、“输出”是否正常;
2.语音合成工具使用
进入“~/castlex_ws/src/castlex_voice_system/tools”目录
右键“在终端打开”
执行语音合成工具:./HG_tts_tools
根据回显信息输入语音文本并将语音命名后保存
3.找到main.py文件进行编程
路径:~/castlex_ws/src/main/scripts/main.py
打开main.py
...
#关于交互部分,注意缩进
cf=castlex_function()
While not rospy.is_shutdown():
print(id)
time.sleep(0.5)
&