O'Reilly logo

Rapid BeagleBoard Prototyping with MATLAB and Simulink by Dr.Fei Qin, Dr. Xuewu Dai

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Training session

In the training session, we are collecting the voices of ON and OFF which are used to develop the codebook for recognition. The audio captured from the microphone connected to the BeagleBoard is saved to the MATLAB workspace for pattern analysis and pattern code generation.

Voice acquisition and segmentation

As shown in the following screenshot, a Simulink model VocRcgBB_Trn.mdl has been developed for training and creating the code book. The ALSA Audio Capture block is configured to a sampling frequency of 22050 Hz and sends out the stereo audio data in a 2205 x 2 frame of 16-bit integers at interval 0.1 s. For floating point processing, the Normalize block converts the captured two-channel audio data (a 2205 x 2 integer matrix) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required