Picar-X - ChatGPT Recording Error

Im getting the below error when trying to record audio under the AI interaction using GPT-4O > voice communication section, please help?:

xxxx@raspberrypi:~/picar-x/gpt_examples $ rec op.wav
rec WARN alsa: can’t encode 0-bit Unknown or not applicable
ALSA lib pcm_dmix.c:972:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
rec FAIL formats: can’t open input `default’: snd_pcm_open error: Invalid argument

Which version of the PiCar-X are you currently using? Please provide us with a picture of the robot hat.
Please use the following command to record audio and check the functionality:
rec -c 1 op.wav

Which microphone are you using?

I’m using the Picar-X v2.0

xxxxx@raspberrypi:~ $ rec -c 1 op.wav
rec WARN alsa: can’t encode 0-bit Unknown or not applicable
ALSA lib pcm_dmix.c:972:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
rec FAIL formats: can’t open input `default’: snd_pcm_open error: Invalid argument

The USB mic which came with the kit

1 Like

We were unable to replicate the issue you encountered.

We suggest that you try changing the USB port for the USB microphone and run the arecord -l command to see if the microphone device can be recognized.

Please provide us with the printed output.

Additionally, please follow the steps outlined in our tutorial:AI Interaction Using GPT-4O — SunFounder PiDog Kit 1.0 documentation