Skip to main content

Examples (code)

Below you define a series of examples with complete codes showing you use voice's recognize. For each feature, there is an online demo and a simplified version of the code.

Credentials test​

Demo Source Code

Simple test to know if your access data Iara API,userId and apiToken are working correctly.

Basic voice's recognition​

Demo Source Code

Basic voice recognize test. Press a button to start voice recognition, later press other to finish recognize and receive recognized text.

Audio devices test​

Demo Source Code

Tests if audio input and output devices are configured correctly. No voice recognition is done, only audios are recorded and played.

Demos events​

Demo Source Code

Shows all events reported by the recognizer and how to use them through addEventListener().

Voice's recognition with intermediate results​

Demo Source Code

Voice's recognition with intermediate results, interimResults is true.

Voice's recognize with voice activity detection (vad)​

Demo Source Code

Voice's recognize with voice activity detection (vad), useVAD is true.

Voice's recognize with results at rich text​

Demo Source Code

Voice's recognize with results at rich text (<br>, etc).

Voice's recognize integrated to HTML TinyMCE editor​

Demo Source Code

Voice's recognize integrated to HTML TinyMCE editor using results at rich text.

Voice's recognize integrated to HTML QuillJS​

Demo Source Code

Voice's recognize integrated to HTML QuillJS editor using results at rich text.

Voice's commands for templates loading rich text​

Demo Source Code

Shows you how use voice commands with SDK to load templates.

Customizable voice commands​

Demo Source Code

Show you how to use custom voice commands with the SDK.

Customizable contained commands​

Demo Source Code

Shows how to use commands contained with the SDK.

Advanced commands​

Demo Source Code

Show how to use voice commands with the SDK, allowing for customizable callbacks and other advanced uses.

Shortcut keys​

Demo Source Code

Shows how to capture SpeechMike® shortcut, or keyboard to start/stop recordings, etc.

SpeechMike® shortcuts​

Demo Source Code

Shows how to enable/disable SpeechMike® and capture the EOL and INS shortcuts of that device.

Debug mode​

Demo Source Code

Shows you hou to use SDK in debug mode.

Explore environment information​

Demo Source Code

Shows how to use the SDK's env property to explore information about the environment where the application is running.

Send feedback use​

Demo Source Code

Shows how to send a user feedback about voice recognition.

Send report​

Demo Source Code

Shows how send a report to better voice recognize