Feature availability:
/transcribe
/streams
/transcripts
API Definitions
Commands are set in dictation configuration when directly calling the/transcribe API or when using the Dictation Web Component.
Explanation of parameters used in /transcribe command configuration:
| Parameter | Type | Definition |
|---|---|---|
| id | string | Identifier for the command when it is detected by the speech recognizer. |
| phrases | string array | Word sequence that is spoken to trigger the command. |
| variables | string array | Placeholder in phrases to define multiple words that should trigger the command. The word options are defined as a enum list within the variables object. |
Example Commands
When configured commands are recognized by the server, thecommand object will be returned over the web socket (as opposed to the transcript object for speech recognized text), which includes the command ID and variables that the integrating application uses to execute the defined action.
Below are some examples, including both the request configuration and server response.
Note that the
id, phrases, and variables shown below are mere examples. Define these values as needed for your own commands. Additionally, your application must manage the actions to be triggered by recognized commands.Navigation
Command to navigate around your application (e.g., to a section within the current document template). The command includes a defined list of words that can be recognized for thesection_key variable.
Select Text
Command to select text in the editor. The command includes a defined list of words that can be recognized for theselect_range variable. Your application can define different delete actions for each of the options, or add more complex handling for selecting specific words mentioned in the command utterance.
Delete Text
Command to delete text. The command includes a defined list of words that can be recognized for thedelete_range variable. Your application can define different delete actions for each of the options!
Putting it All Together
The three commands defined above can be combined into one dictation configuration with accompanying Javascript to execute the actions. The below example includesnavigation commands to move between sections within the SOAP note template, delete text command to remove last word, sentence, or paragraph, and select text commands to select text within the active text field:
Best Practices
Click here for more info on how to build commands effectively.
Use of commands is optional for dictation configuration. They should be configured based on how the integrating application will perform the actions.Please contact us to report errors, or for more information on this feature.