Here's a working ALSA config for dsnoop w/ mixer

Applications/questions using Raspberry Pi with Seeed products, please post it here.

Moderators: lily.li, salmanfarisvp, violet

Post Reply
willie
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Tue Sep 11, 2018 12:16 am

Here's a working ALSA config for dsnoop w/ mixer

Post by willie » Sun Oct 28, 2018 8:42 am

Just wanted to share my asound.conf that works with my Respeaker 4mic with Dsnoop and it records at any sample rate.
It's set to use the Pi's onboard audio.

Code: Select all

defaults.pcm.rate_converter "samplerate"

pcm.bcm2835 {
  type hw
  card ALSA  
}
pcm.seeed_4mic_voicecard {
  type hw
  card seeed4micvoicec  
}
 
pcm.softvol {
  type softvol
  slave {
  pcm "pduplex"
  }
  control {
  name "Master"
  card 0
  }
}

pcm.!default {
  type asym
  playback.pcm "plug:softvol"
  capture.pcm "pduplex"
}

pcm.recmixer {
  ipc_key 140325
  ipc_key_add_uid true
  type dsnoop
  slave.pcm "seeed_4mic_voicecard"
}

pcm.duplex {
  type asym
  playback.pcm "bcm2835"
  capture.pcm "recmixer"
}

pcm.pduplex {
  type plug
  slave.pcm "duplex"
}

ctl.pduplex {
  type hw
  card 0
}

pcm.dsp0 {
  type plug
  slave.pcm "duplex"
}

ctl.mixer0 {
  type hw
  card 0
}

bill.yu
Junior-7
Junior-7
Posts: 735
Joined: Mon Apr 02, 2018 11:05 am

Re: Here's a working ALSA config for dsnoop w/ mixer

Post by bill.yu » Fri Nov 02, 2018 5:52 pm

Hi Willie

thanks for the sharing.

Post Reply