Skip to content

Instantly share code, notes, and snippets.

@stefanocudini
Created March 26, 2012 17:30
Show Gist options
  • Select an option

  • Save stefanocudini/2206996 to your computer and use it in GitHub Desktop.

Select an option

Save stefanocudini/2206996 to your computer and use it in GitHub Desktop.
speex encode test bitrate
#!/bin/bash
#copyleft stefano.cudini@gmail.com
#
#requirements:
#aptitude install pv lame speex mplayer
#rename this file in testplayer and set permission 0755
#a sound file contains more human voice
#
#make test files:
#lame --decode song.mp3 song.wav
#speexenc song.wav song.spx
#
#test bitrate:
#dd if=song.mp3 | pv -r | ./testplayer
#[14,2kB/s]
#
#dd if=song.spx | pv -r | ./testplayer
#[6,5kB/s]
mplayer - &> /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment