Book Image

Rapid BeagleBoard Prototyping with MATLAB and Simulink

Book Image

Rapid BeagleBoard Prototyping with MATLAB and Simulink

Overview of this book

As an open source embedded single-board computer with many standard interfaces, Beagleboard is ideal for building embedded audio/video systems to realize your practical ideas. The challenge is how to design and implement a good digital processing algorithm on Beagleboard quickly and easily without intensive low-level coding. Rapid BeagleBoard Prototyping with MATLAB and Simulink is a practical, hands-on guide providing you with a number of clear, step-by-step exercises which will help you take advantage of the power of Beagleboard and give you a good grounding in rapid prototyping techniques for your audio/video applications. Rapid BeagleBoard Prototyping with MATLAB and Simulink looks at rapid prototyping and how to apply these techniques to your audio/video applications with Beagleboard quickly and painlessly without intensive manual low-level coding. It will take you through a number of clear, practical recipes that will help you to take advantage of both the Beagleboard hardware platform and Matlab/Simulink signal processing. We will also take a look at building S-function blocks that work as hardware drivers and interfaces for Matlab/Simulink. This gives you more freedom to explore the full range of advantages provided by Beagleboard. By the end of this book, you will have a clear idea about Beagleboard and Matlab/Simulink rapid prototyping as well as how to develop voice recognition systems, motion detection systems with I/O access, and serial communication for your own applications such as a smart home.
Table of Contents (15 chapters)
Rapid BeagleBoard Prototyping with MATLAB and Simulink
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Running the voice recognition application


Since the voice recognition application consists of two phases, training and recognition, running the recognition application is a two-step procedure and is carried out as follows:

  1. Open the training model VocRcgBB_Trn.mdl and run the model.

  2. As VocRcgBB_Trn.mdl is running on the BeagleBoard, click on the Voice Meaning Selection switch to select which command (ON/OFF) the training voice is for. Then speak in the microphone to capture the training voice. At least one training voice for each command should be recorded.

  3. When you finish, stop and close the training model. Two new variables, trsOFF and codebkOFF, should appear in the MATLAB workspace.

  4. Enter the following two commands in the MATLAB command window to generate codebooks for the voice commands ON and OFF, respectively:

    codebkOFF=vqlbg(mfcc(trsOFF), 16);
    codebkON=vqlbg(mfcc(trsON), 16);
  5. Open the recognition model VocRcgBB_Rcg.mdl and run it on the BeagleBoard. You can now speak the voice commands...