In this guide, we will describe how the DM Board ICS outputs can be controlled by means of your own voice. Here you can view a demonstration video.
The module EasyVR 3 made by VeeaR is the speech recognition system chosen for this project.
The connection of this module to the DM Board ICS is very simple. There are only three steps to be made (see the image):
The EasyVR 3 module is pre-configured to work using 5V. As the DM Board ICS works at 3.3V, a resistor (that works as a jumper) have to be moved to make the module work at 3.3V as well:
A simple relay, connected to an output of the DM Board ICS, allows driving a 220Vac lamp.
The first step is to program the DM Board ICS with the application software (Controllo Vocale) that can be downloaded from the DM Store. It allows to control the EasyVR 3 module.
Once the software is loaded into the DM Board ICS it is necessary to program the EasyVR 3 module with the required vocal commands.
The EasyVR 3 programming software can be downloaded here.
It is possible to program the speech recognition module by means of the USB port of the DM Board ICS by putting the board in USB-RS232 bridge mode (so that all the signals coming from the USB port are directly routed to the EasyVR 3 module).
The bridge mode can be enabled by pressing the SW1 button of the DM Board ICS after powering the board (just after the beep signal and within 3 seconds). The button must be kept pressed until the DM Board ICS emits a second beep signal (that confirms the bridge mode activation).
The first step, after launching the EasyVR 3 programming software, is to connect the software to the module by pressing the connection button:
On the left side of the programming software there are several command groups. The ones required are:
The module EasyVR 3 has two recognition modes:
Several .wav audio files (16bits 22050 Hz), one for each phrase that we want to be played by the VR module and one for each commands, are required. The open source software Audacity (http://audacity.sf.net) can be used to generate those files.
For more details on the EasyVR 3 module programming please refer to the manual.
When the module recognizes a command, it sends a code that correspond to the position of the audio file in the group. In this example, we loaded in the 1st position of the “Group 1” group the “Accensione” command audio file and in the 2nd position the “Spegnimento” command audio file.
The very same mechanism works also for the phrases that the module has to play in response to a command. We loaded in the 1st position of the “Sound Table” group the “Ciao, pronuncia il comando desiderato” audio file, in the 2nd position the “Accensione in corso” audio file and in the 3rd position the “Spegnimento in corso” audio file.