前言
SDK地址
https://support.unitree.com/home/zh/G1_developer/sdk_overview
上位机连接
https://support.unitree.com/home/zh/G1_developer/quick_development
TTS
https://support.unitree.com/home/zh/G1_developer/VuiClient_Service
工单
https://serviceconsole.unitree.com/#/new-work-order?progress=1
语音唤醒(这个要用手机APP设置WIFI连接,直接使用的,不是开发使用)
https://support.unitree.com/home/zh/G1_developer/voice_assistant_instructions
注意
SDK只支持Ubuntu,版本20.04。
机器人中的PC python版本是3.8.10,所以我们开发过程中最好也用3.8.10。
开发的时候我们要切换到按键模式
模式切换 L1 + L2
- 唤醒模式
- 按键模式
- 关闭交互
在按键模式下使用 L2 + Select
进行语音输入。
目前测试的只有按键模式下才能正常接受到语音消息。
ASR
示例
代码示例
1 | import time |
切换模式
1 | {"play_state":1} |
受到语音消息
1 | {"index":34,"timestamp":1752742440086,"type":0,"text":"你好。","angle":0,"speaker_id":0,"emotion":"<|NEUTRAL|>","confidence":0.500000,"language":"<|zh|>","is_final":false} |
TTS
1 | import time |