Skip to content

Instantly share code, notes, and snippets.

@jj1bdx
Last active October 13, 2023 08:00
Show Gist options
  • Save jj1bdx/409d6690093cf388471e0d799a3ca295 to your computer and use it in GitHub Desktop.
Save jj1bdx/409d6690093cf388471e0d799a3ca295 to your computer and use it in GitHub Desktop.
sox examples for macOS coreaudio and BlackHole
# conservative level setting
airspy-fmradion -E100 -t airspyhf -c freq=89700000 -F - | \
sox -t raw -e floating-point -b32 -r 48000 -c 2 -q - -t coreaudio "BlackHo" gain -24
# a bit more louder
airspy-fmradion -E100 -t airspyhf -c freq=89700000 -F - | \
sox -t raw -e floating-point -b32 -r 48000 -c 2 -q - -t coreaudio "BlackHo" gain -18
# DO NOT SET TO `gain 0` or as is - level too loud for QuickTime Player recorder
#!/bin/sh
# equivalent to `play`
sox -t raw -esigned-integer -b16 -r 48000 -c 2 -q - -t coreaudio "default"
play --buffer=1024 -t raw -esigned-integer -b16 -r 48000 -c 2 -q -
# check macOS devices
sox -V6 -n -t coreaudio nonexistent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment