Component: Voice Recognition (V3) (Sensors)

From Flowcode Help
Jump to navigationJump to search
Author Matrix TSL
Version 1.0
Category Sensors


Voice Recognition component

Module supporting up to 7 active voice commands controlled via a serial UART interface. Commands are trained into the module by the user so as to be speaker-dependent.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_VoiceRecognitionELECHOUSEV3.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_VoiceRecognitionELECHOUSEV3.fcfx

Detailed description

No detailed description exists yet for this component

Examples

These examples are designed to work with a 4D systems display pre-programmed with the VISI Genie runtime files. These files are also included in the example archives to allow you to easily replicate the project.

The 4D display can either be connected to the PC running Flowcode using the 4D USB cable or connected to an embedded Microcontroller using a hardware or software UART. If you are using the Flowcode simulation to communicate with the Visi component then be sure to set the Visi COM port property to the COM port assigned by Windows to the 4D USB Cable.

The Console window should also show some helpful information to aid in debugging any problems.


The first example demonstrates a simple rocker switch Visi component. FC6 Icon.png RockerSwitch The second example demonstrates controlling the colour of an RGB LED using the Visi colour picker component. FC6 Icon.png ColourPicker






Macro reference

Initialise

Fc9-comp-macro.png Initialise
Sets up the hardware UART to communicate with the module. Must be called before calling any of the other component macros. Returns 1 if communications to the module are successful else returns 0. 
Fc9-u8-icon.png - BYTE Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png UART Properties
Fc9-type-16-icon.png Channel
UART Channel selector Software channels are bit banged using generic I/O pins but are not as reliable as hardware channels. Hardware channels use the selected peripheral on-board the target microcontroller. 
Fc9-type-5-icon.png TX
Pin to be used for Transmit data 
Fc9-type-16-icon.png TX Remap Pin
Allows the hardware transmit pin to be configured from a list of available pins based on your target device, 
Fc9-type-5-icon.png RX
Pin to be used for Receive data 
Fc9-type-16-icon.png RX Remap Pin
Allows the hardware receive pin to be configured from a list of available pins based on your target device, 
Fc9-type-16-icon.png Baud Options
Baud rate option selector 
Fc9-type-14-icon.png Baud Rate
 
Fc9-conn-icon.png Simulation
Fc9-type-7-icon.png Scope Traces
Selects if the scope traces are automatically added to the data recorder window or not. Simulation - draws an approximation of the UART data onto the scope trace. ICT - sets up the scope trace for incoming data and adds UART packet decoding at the correct BAUD. 
Fc9-type-7-icon.png Console Data
Selects if the console data is automatically generated or not 
Fc9-type-21-icon.png Console Columns
Number of characters that can be displayed on a single line of the console. 
Fc9-type-16-icon.png Data Source
Simulation data source used to allow the component to connect to various remote devices Nothing - Simulation data is ignored COM port - Routes the communication data to and from a physical or virtual COM port Injector - Routes the communication data via a data injector component on the Panel. 
Fc9-type-16-icon.png COM Port
Lists all the current available COM port hardware on your PC.