Add example: record G1 microphone stream to WAV on PC#133
Add example: record G1 microphone stream to WAV on PC#133nmandic78 wants to merge 1 commit intounitreerobotics:masterfrom
Conversation
|
Hello! I was trying to run your script directly on robot's PC4, and it seems that micros are not running: unitree@ubuntu:~/unitree_sdk2_python/example/g1/audio$ python g1_audio_mic_record_udp.py 192.168.123.164 5 /tmp/g1_record.wav During handling of the above exception, another exception occurred: Traceback (most recent call last): My robot's Ip is the 192.168.123.164 as configured as default. Did you find this before? I suppose is an error regarding the configuration or some initialization. |
|
I've already solved it switching the robot to wake up mode: unitree app > connected to the g1 in ap mode > Device > Data > Voice Assistant > Wake-up Conversation Mode |
|
Glad you found a method to start streaming. It must have been on on our G1 as I assumed it is by default always on after robot boot. But now you have it and it should be permanent as set once from app (at least it is on on our G1) |
What
Adds a new example that receives the G1 microphone audio stream via UDP multicast and saves it as a WAV file on an external PC.
How
g1_audio_mic_record_udp.pyexample that uses this helperUsage