Skip to content

Instantly share code, notes, and snippets.

@innomatics
Created December 19, 2024 01:02
Show Gist options
  • Save innomatics/8944c8182c97029e1a476d6b3ed76c1b to your computer and use it in GitHub Desktop.
Save innomatics/8944c8182c97029e1a476d6b3ed76c1b to your computer and use it in GitHub Desktop.
Monitor UMC404HD input with ALSA
#!/bin/bash
# Period should be half of buffer
export BUFFER="--buffer-size=32 --period-size=16"
# See arecord -D hw:CARD=U192k,DEV=0 --dump-hw-params
export UMC404HD="-D hw:CARD=U192k,DEV=0 -f S32_LE -c4 -r44100"
arecord $UMC404HD -t raw $BUFFER | aplay $UMC404HD $BUFFER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment