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 CodeSimple test to know if your access data Iara API,userId
and apiToken
are working correctly.
Basic voice's recognition
Demo Source CodeBasic 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 CodeTests if audio input and output devices are configured correctly. No voice recognition is done, only audios are recorded and played.
Demos events
Demo Source CodeShows all events reported by the recognizer and how to use them through addEventListener()
.
Voice's recognition with intermediate results
Demo Source CodeVoice's recognition with intermediate results, interimResults
is true
.
Voice's recognize with voice activity detection (vad)
Demo Source CodeVoice's recognize with voice activity detection (vad), useVAD
is true
.
Voice's recognize with results at rich text
Demo Source CodeVoice's recognize with results at rich text
(<br>
, etc).
Voice's recognize integrated to HTML TinyMCE editor
Demo Source CodeVoice's recognize integrated to HTML TinyMCE editor using results at rich text
.
Voice's recognize integrated to HTML QuillJS
Demo Source CodeVoice's recognize integrated to HTML QuillJS editor using results at rich text
.
Voice's commands for templates loading rich text
Demo Source CodeShows you how use voice commands with SDK to load templates.
Customizable voice commands
Demo Source CodeShow you how to use custom voice commands with the SDK.
Customizable contained commands
Demo Source CodeShows how to use commands contained with the SDK.
Advanced commands
Demo Source CodeShow how to use voice commands with the SDK, allowing for customizable callbacks and other advanced uses.
Shortcut keys
Demo Source CodeShows how to capture SpeechMike® shortcut, or keyboard to start/stop recordings, etc.
SpeechMike® shortcuts
Demo Source CodeShows how to enable/disable SpeechMike® and capture the EOL and INS shortcuts of that device.
Debug mode
Demo Source CodeShows you hou to use SDK in debug mode.
Explore environment information
Demo Source CodeShows how to use the SDK's env
property to explore information about the environment where the application is running.
Send feedback use
Demo Source CodeShows how to send a user feedback about voice recognition.
Send report
Demo Source CodeShows how send a report to better voice recognize