How to record audio with macOS Terminal
- In the System Preferences > Sound > Input, crank the input volume all the way up.
- Install ffmpeg:
brew install ffmpeg
- Get the microphone’s device id:
ffmpeg -f avfoundation -list_devices true -i ""
- Run audio recording for 10 seconds:
ffmpeg -f avfoundation -i ":DEVICE_ID" -t 10 audiocapture.mp3
Record forever in 6 hour intervals
|
|