Skip to content

Instantly share code, notes, and snippets.

@scastrec
Created February 1, 2019 12:14
Show Gist options
  • Save scastrec/15840741f1c510f43f2699b52d6b9d49 to your computer and use it in GitHub Desktop.
Save scastrec/15840741f1c510f43f2699b52d6b9d49 to your computer and use it in GitHub Desktop.
alexa_encoder enables to transform your mp3 files to be read in <audio> tag for Alexa
#!/bin/bash
mkdir mp3_ffmpeg
for i in *.mp3; do ffmpeg -i ${i} -ac 2 -codec:a libmp3lame -b:a 48k -ar 16000 "mp3_ffmpeg/${i%.*}.mp3"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment