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

I have the same problem. I have the same error message. Under Google searches, for example, you can find something with “asym” and „dmix“ in the plugin.

Like here: audio - ALSA "dmix plugin supports only playback stream" error when using dmix on beagleboard - Super User

I don‘t know if this same error.

Are you using the USB microphone that we provided?
Run arecord -l to check the list of available recording devices.
Confirm that your microphone is properly connected. We recommend trying a different USB port on the Raspberry Pi to see if it works better.
Please use the following commands to record audio and check functionality:

rec -c 1 op.wav
sudo play op.wav

Additionally, ensure that all required Python packages were successfully installed in the activated virtual environment without any errors.

Please follow the tutorial steps provided here: