Skip to content

Instantly share code, notes, and snippets.

@alotaiba
Created February 3, 2012 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alotaiba/1728544 to your computer and use it in GitHub Desktop.
Save alotaiba/1728544 to your computer and use it in GitHub Desktop.
Useful ffmpeg commands for manipulating voice
# Useful ffmpeg commands for manipulating voice
# Convert from mic to FLAC with bitrate = 96kbps, hw:0,0 refers to the mic, it could be different for your machine
ffmpeg -f alsa -ar 16000 -ac 2 -i hw:0,0 -acodec flac -ab 96k <output_file_name>
# Convert from raw PCM 16bit LE to FLAC with sample rate (frequency) = 16khz, with bitrate = 96kbps
ffmpeg -f s16le -ar 16000 -i <input_file_name> -acodec flac -ar 16000 -ab 96k <output_file_name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment