noise suppression with librespeaker in RespeakerCorev2

Hi Fred,



The capture and playback sample rate of seeed voicecard should be the same in Alsa setup. So we have to configure Alsa(edit /etc/asound.conf file) as follow:

</s>sudo nano /etc/asound.conf<e>

[code]pcm.!default {
type asym
#capture.pcm “hw:Loopback,1,0”
capture.pcm “seeedvoicecard”
#playback.pcm “plughw:seeed8micvoicec,1”
playback.pcm “play”
}

defaults.pcm.rate_converter “samplerate”

pcm.seeedvoicecard {
type plug
slave.pcm “hw:seeed8micvoicec,0”
#slave.rate 48000
#slave.format FLOAT_LE
ttable.0.0 1
ttable.1.1 1
ttable.2.2 1
ttable.3.3 1
ttable.4.4 1
ttable.5.5 1
ttable.6.6 1
ttable.7.7 1
}

pcm.play {
type plug
slave.pcm “hw:seeed8micvoicec,1”
slave.rate 48000
}[/code]

After configuration, you can still play your audio at any sample rate as you want, because Alsa will resample it to 48K automatically.

Hope this helps!



Thanks,

Jerry.