Beaglbone audio stuff - potty-dzmeia/libraries GitHub Wiki

Play mp3 files with ffmpeg

  • Write: ffmpeg -i beethoven.mp3 -f alsa "default:CARD=Device" -re -vol 100
    • Takes around 14% processor time:

Play mp3 files with mplayer2

  • Install mplayer (not mplayer2!)
  • Write: mplayer -ao alsa:device=default=Device beethoven.mp3
  • Takes around 45% processor time:

Play mp3 files with mpg321

  • Istall mpg321
  • Write: ???
    • Takes around ???% processor time:

Test microphone

  • arecord -f S16_LE -r 8000 -D default > record.wav
  • arecord -D plughw:0,0 -f cd ./test.wav

Speech recognition (beaglebone optimized)

  • pocketsphinx_continuous -hmm /root/development/sphinx/cmusphinx-en-us-ptm-8khz-5.2 -lm 2472.lm -dict 2472.dic -inmic yes -ds 2 -topn 2 -maxwpf 5 -maxhmmpf 3000 -pl_window 10 -samprate 8000 -nfft 256

Play mp3 files with mpg321

  • Write: aplay -D hw:1,0 vardar.wav

Text to speech with pico2wave

  • Because pic2wave is missing for debian wheezy it needs to be installed manually:
  • wget http://http.us.debian.org/debian/pool/non-free/s/svox/libttspico-data_1.0+git20130326-3_all.deb
  • wget http://ftp.us.debian.org/debian/pool/non-free/s/svox/libttspico0_1.0+git20130326-3_armhf.deb
  • wget http://ftp.us.debian.org/debian/pool/non-free/s/svox/libttspico-utils_1.0+git20130326-3_armhf.deb
  • sudo dpkg -i libttspico-data_1.0+git20130326-3_all.deb
  • sudo dpkg -i libttspico0_1.0+git20130326-3_armhf.deb
  • sudo dpkg -i libttspico-utils_1.0+git20130326-3_armhf.deb
  • Create the .wav file by: pico2wave -w test.wav "Testing 1 2 3"
  • Play the file: mplayer test.wav

Text-To-Speech with festival