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:
Open the training model
VocRcgBB_Trn.mdl
and run the model.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.When you finish, stop and close the training model. Two new variables,
trsOFF
andcodebkOFF
, should appear in the MATLAB workspace.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);
Open the recognition model
VocRcgBB_Rcg.mdl
and run it on the BeagleBoard. You can now speak the voice commands...