Using HifiBerry DAC+ADC with Raspberry Pi4

Thread Starter

Khisraw

Joined Nov 14, 2020
56
Hi
I have a HifiBerry DAC+ADC attached to Raspberry Pi4 to read audio from a mic. On the console, I see the HifiBerry card is listed.

hw:CARD= sndrpihifiberry, DEV= 0

snd_rpi_hifiberry_dacplusadc, HifiBerry DAC+ADC HiFi multicodec-0

I use ALSA API to read the input My code to read the input is

inp = audio.PCM(audio.PCM_CAPTUR,device='sndrpihifiberry')

But it keeps getting an error that the name "sndrpihifiberry" is not defined.

Has anyone used HifiBerry DAC+ADC board with Raspberry Pi? Can you recommend any solution?
 
Top