Last active
October 13, 2023 08:00
-
-
Save jj1bdx/409d6690093cf388471e0d799a3ca295 to your computer and use it in GitHub Desktop.
sox examples for macOS coreaudio and BlackHole
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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