# ALSA config for social-bot audio
# Assumes USB mic (ReSpeaker or similar) at card 1, USB speaker at card 2
# Adjust card numbers with: aplay -l / arecord -l

# Default capture device — USB mic array (ReSpeaker 2-Mic or 4-Mic)
pcm.!default {
    type asym
    playback.pcm "usb_speaker"
    capture.pcm  "usb_mic"
}

# USB microphone input
pcm.usb_mic {
    type plug
    slave {
        pcm "hw:1,0"
        rate 16000
        channels 1
        format S16_LE
    }
}

# USB speaker output
pcm.usb_speaker {
    type plug
    slave {
        pcm "hw:2,0"
        rate 22050
        channels 1
        format S16_LE
    }
}

# Mixer controls
ctl.!default {
    type hw
    card 1
}
