Dec 28, 2013 I really liked this article which showed how to use a Raspberry Pi to create a stunning timelapse video, of course filming in a fantastic location helped. Aug 29, 2014 - How to install FFMPEG, Libx264, LibRTMP, LibAACPlus, LibVPX on the Raspberry Pi (Debian “Wheezy” ARMHF). It's vital to uninstall everything we're going to be compiling/installing just in case there have been custom compilations of software that might be corrupted or broken. I've had a few. In this instructable I will show you how to install Raspbian 'wheezy' on an SD Card so you can use the Raspberry Pi.
This is a lengthy post and very dry, but it provides detailed instructions for how to build and install SphinxBase and PocketSphinx and how to generate a pronunciation dictionary and a language model, all so that speech recognition can be run directly on the Raspberry Pi, without network access. Don’t expect it to be as fast as Google’s recognizer, tho Creating the RASPBIAN boot MicroSD Starting with the current (Debian Wheezy) image, the creation of a bootable MicroSD Card is a well understood and well documented process. Uncompressing the zip (again, there is no better tool than, if you are on a Mac) reveals the 2015-02-16-raspbian-wheezy.img With the MicroSD (inside an SD-Card adapter – no less than 8GB) inserted into the Mac, I run the df -h command in Terminal, to find out how to address the card. Today, it showed up as /dev/disk4s1 56Mi 14Mi 42Mi 26% 512 0 100% /Volumes/boot, which means, I run something like this, to put the boot image onto the MicroSD. Sudo diskutil eject / dev / rdisk4 Customizing the OS Once booted, using the sudo raspi-config allow the customization of the OS, which means that time-zone, keyboard, and other settings are adjusted, to closely match its environment. I usually start (PI is already connected to the internet via Ethernet Cable) with • updating the raspi-config • expanding the filesystem • internationalization: un-check en-GB, check en-US.UTF-8 UTF-8 • internationalization: timezone. • internationalization: keyboard: change to English US • setting the hostname to translator, there are too many Raspberry Pis on my home network, to leave it at the default • make sure SSH is enabled • force audio out on the 3.5mm headphone jack Microphone Given the sparse analog-to-digital support provided by the Raspberry Pi, the probably best and easiest way to connect a decent Mic to the device, is using a USB microphone.
I happen to have an older, which works perfectly fine with the Pi. After a reboot and now with the microphone connected, let’s get started. Ssh pi@translator with the default password ‘raspberry’ gets me in from everywhere on my local network cat /proc/asound/cards returns 0 [ALSA ]: bcm2835 - bcm2835 ALSA bcm2835 ALSA 1 [AK5370 ]: USB-Audio - AK5370 AKM AK5370 at usb-bcm2708_usb-1.2, full speed showing that the microphone is visible and its usb extension. Next, I edit alsa-base.conf to load snd-usb-audio like so: sudo nano /etc/modprobe.d/alsa-base.conf Edit options snd-usb-audio index=-2 to options snd-usb-audio index=0 and after a sudo reboot, cat /proc/asound/cards looks like this 0 [AK5370 ]: USB-Audio - AK5370 AKM AK5370 at usb-bcm2708_usb-1.2, full speed 1 [ALSA ]: bcm2835 - bcm2835 ALSA bcm2835 ALSA Recording – Playback – Test Before worrying about Speech Recognition and Speech Synthesis, let’s make sure that the basic recording and audio playback works. Again, I have an USB Microphone connected to the Pi, as well as a speaker, using the 3.5mm audio plug. Installing build tools and required libraries sudo apt-get update sudo apt-get upgrade sudo apt-get install bison sudo apt-get install libasound2-dev sudo apt-get install swig sudo apt-get install python-dev sudo apt-get install mplayer sudo reboot /etc/asound.conf sudo nano etc/asound.conf and enter something like this.
Mono: Playback - 685 [ 90% ] [ - 6.85dB ] [ on ] Test Recording and Playback With the mic switched on. Arecord -D plughw:0,0 -f cd./test. Wow Global Cooldown Hack 3.3.5 Lafleur Clarinet Serial Numbers. on this page. wav. Use Control-C to stop the recording. Aplay./test.wav With recording and playback working, let’s get into the really cool stuff, on-device speech recognition.
Speech Recognition Toolkit CMU Sphinx a.k.a. PocketSphinx Currently pocket sphinx 5 pre-alpha (2015-02-15) is the most recent version. However, there are a few prerequisites that need to be installed first. Language model created by QuickLM on Thu Mar 26 00:23:34 EDT 2015 Copyright (c) 1996-2010 Carnegie Mellon University and Alexander I. Rudnicky The model is in standard ARPA format, designed by Doug Paul while he was at MITRE. The code that was used to produce this language model is available in Open Source.