Voice Commands


Invox Dictation provides a set of voice commands to work during dictation. These commands range from starting or stopping speech recognition to applying formatting, deleting or selecting text, among other functions.

Invox Dictation offers the ability to customize the action that a command performs.

Available commands

Command identifierDescriptionImplemented
INVOX.commandId.ALL_CAPSCapitalize a specific text in the current document✅
INVOX.commandId.CAPSCapitalize the first letter of the next word✅
INVOX.commandId.NO_CAPSLowercase all letters in a specific text in the current document✅
INVOX.commandId.CAPS_ACTIVATEEnable caps lock✅
INVOX.commandId.CAPS_DEACTIVATEDisable caps lock✅
INVOX.commandId.CAPS_INLINECapitalize the first letter of the next word to be dictated✅
INVOX.commandId.INITIAL_CAPS_ACTIVATEEnable writing all words with the first letter capitalized✅
INVOX.commandId.INITIAL_CAPS_DEACTIVATEDisable writing all words with first letter capitalized✅
INVOX.commandId.CAPS_SELECTIONCapitalize the selected text✅
INVOX.commandId.NORMALIZE_SELECTIONLowercase the selected text✅
INVOX.commandId.DELETE_SELECTIONDelete the current selection✅
INVOX.commandId.GO_TOPlace the caret before a specific text✅
INVOX.commandId.GO_TO_AFTERPlace the caret after a specific text✅
INVOX.commandId.GO_TO_BEGINNING_DOCPlace the caret at the beginning of the document✅
INVOX.commandId.GO_TO_END_DOCPlace the caret at the end of the document✅
INVOX.commandId.NEXT_FIELDSelect the next field✅
INVOX.commandId.PREVIOUS_FIELDSelect the previous field✅
INVOX.commandId.SELECTSelect a specific text✅
INVOX.commandId.UNSELECTDisable the current selection✅
INVOX.commandId.SELECT_ALLSelect all text in the current document✅
INVOX.commandId.START_DICTATIONStart the speech recognizer✅
INVOX.commandId.STOP_DICTATIONStop the speech recognizer✅
INVOX.commandId.TABULATIONInsert a tabulation✅

Functions

GetCommands

FunctionDescriptionParametersReturns
INVOX.GetCommands()Returns the list of available voice commands and their descriptions.—Array
const commands = INVOX.GetCommands();

GetEnabledCommands

const enabled = INVOX.GetEnabledCommands();

GetDisabledCommands

const disabled = INVOX.GetDisabledCommands();

EnableCommand

FunctionDescriptionParametersReturns
INVOX.EnableCommand(commandId)Enables a specific voice command.Stringvoid
INVOX.EnableCommand(INVOX.commandId.CAPS);

DisableCommand

FunctionDescriptionParametersReturns
INVOX.DisableCommand(commandId)Disables a specific voice command.Stringvoid
INVOX.DisableCommand(INVOX.commandId.UNDO);

CustomizeCommand

FunctionDescriptionParametersReturns
INVOX.CustomizeCommand(commandId, callback)Overrides the default action of a voice command.String, Functionvoid
INVOX.CustomizeCommand(INVOX.commandId.TABULATION, () => {
    // Custom action when user says the tabulation command
    myEditor.insertTab();
});