Skip to content

Instantly share code, notes, and snippets.

@mwalz
Created March 20, 2010 14:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwalz/338697 to your computer and use it in GitHub Desktop.
Save mwalz/338697 to your computer and use it in GitHub Desktop.
## ffmpeg encoding for Twilio, Genesys and other voice delivery platforms
## File input can be any format ffmpeg accepts (.mp3, .wav, .avi, etc.), output shout should be .wav format
ffmpeg -i "YOUR_INPUT_FILE.m4a" -ar 8000 -ac 1 -ab 64 -acodec pcm_mulaw "YOUR_OUTPUT_FILE.wav" -map 0:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment