07 November, 2016

Linux: Sound Recorder in Bash

This file is made for my research project "What You Should Know About WordPress". I need to record a series of semistructured interviews. So I needed something as simple as a soundrecorder. That's a job for bash:

#!/bin/bash

# Record interview
# Encode as MP3

# User Input
echo "I'll record sound and save the file as MP3"
echo "What is the name of your file? (Remember: .mp3)"
read filename

# Record and encode
arecord -v -f cd -t raw | lame -r - $filename

No comments: