USB audio devices on ESP32-P4 in ESPHome

The P4 adds interesting new functionality to ESPHome. USB devices!

There has already been some work getting different devices to work. The next big one would be USB audio. There are a huge number of USB DAC, USB speakers, and USB microphones that could be easily supported with this one driver.

Espressif already has a driver for it and there has been some discussion over on the ESPHome P4 Discord group.

Now we just need to get this driver into ESPHome.

1 Like

Mixed with the new Sendpin code it would be a high end music player!!

Neat! I wonder what version of UAC it is. I’m a bit perplexed by the below. All 3 support both UAC 1 and 2 if I’m not mistaken. Probably some odd OS specific thing.

Cannot be compatible with both Windows and Linux simultaneously. If you need to use it on macOS, please enable the macro UAC_SUPPORT_MACOS

Regardless, this may help with the next voice assistant combined with XMOS as the PE uses the same XMOS chip many DAC’s use for USB control for both data and power input.

Support for transmitting/receiving audio from the host side, with a maximum of 8 speaker channels, 4 microphone channels, and configurable sampling rates.