Enable audio in chromium container

What carrier board? I know you checked Verdin when applying tags, but it sounds like you might be using Dahlia.

The CODEC on the Dahlia has a lot of issues. To start with, if you are performing a straight EasyInstaller install of TorizonCore, the device drivers aren’t loaded. Only the device tree for the full sized Verdin carrier board is loaded.

You really need to build your own image and replace the device tree. See this message thread.

You really need to read the Errata and pull some resistors off, especially if you are going to think about having any sound input.

If you want non-static “good” sound coming in on the microphone there are other hardware modifications you will have to make and I’m not currently at liberty to share.

Once you jump through those hoops, you will find that there is a driver feature/bug/oddity where any WAV file you record will not be centered around zero. Your code will have to fix that. It helps if you copy the WAV files off to a Linux machine running Audacity so you can look a them.

Your first problem is that you don’t have the device tree loaded for your carrier board. You can verify this if you have a container with alsa-utils loaded. Just launch it interactively with a bash shell so you can tool around with aplay and arecord. Probably help if you copy some WAV files into your container while building as well.