Other Projects

Install julius on banana Pro

1 1291
Edited by ... at Feb 24, 2016 03:58

Julius is a high-performance open source speech recognition engine. It does not need an active internet connection. Please note that you will need to train your own acoustic model, which is a very complex task that we do not provide support for. Regular users are most likely better suited with one of the other STT engines listed here.

The tools are needed:
hardware:Banana Pro、PC(connected with mouse and keyboard)
software:Raspbian for Banana Pro

Step1.Preparatory work
(1) add apt.adafruit.coml ibrary to /etc/apt/sources

$ curl-sLS https://apt.adafruit.com/add | sudo bash

(2) Before install Julius on Raspberry Pi.We need to install some library for download julius from CSV and library C to compile..Using the command:

$ sudoapt-get install alsa-tools alsa-oss flex zlib1g-dev libc-bin libc-dev-bin python-pexpectlibasound2 libasound2-dev

Step2.install alsa-utils
Installed Programs:   aplay  , arecord
aplay is a command-line soundfile player for the ALSA sound card drivers.
arecord is a command-line soundfile recorder for the ALSA sound card drivers.
(1)after download it, install alsa-utils-1.0.6.tar.bz2。

$ cd ~

$ tar-jxvf alsa-utils-1.0.6.tar.bz2

$ cd~/alsa-utils-1.0.6


$ makeinstal

(2)using arecord、aplay:

$ arecord-vv -t wav -f S16_LE -c 2 -d 10 -r 24000 ./record.wav

$ aplayrecord.wav

you can get more detailed usages of arecord and aplay from this Web page:
Step3.install Julius
(1)download julius-4.2.2.tar.gz

(2)unzip and install julius-4.2.2.tar.gz

$ cd ~

$ tar -zxvf julius-4.2.2.tar.gz

$ cd ~/julius-4.2.2

$ export CFLAGS="-O2 -mcpu=arm1176jzf-s -mfpu=vfp-mfloat-abi=hard -pipe -fomit-frame-pointer"

$ ./configure --with-mictype=alsa

$ make

$ make install

$ julius –help    # It will show you version and some option for run Julius.

(3)download language module:
download Julius_AcousticModels_8kHz-16bit_MFCC_O_D_(0_1_1-build726).zip

download address:

(4)after download,use these commands:

$ cd ~

$ unzipJulius_AcousticModels_8kHz-16bit_MFCC_O_D_(0_1_1-build726).zip

(5)run the Julius

$ export ALSADEV=”plughw:0”

$ julius-input mic -C julian.jconf

you will see:
You have to log in before you can reply Login | Sign Up

Points Rules