speech-to-element
Version:
Add real-time speech to text functionality into your website with no effort
18 lines (17 loc) • 720 B
TypeScript
import { InternalCommands } from '../types/internalCommands';
import { Commands, Options } from '../types/options';
import { Speech } from '../speech';
type ExecutionResponse = undefined | {
doNotProcessTranscription?: boolean;
};
export declare class CommandUtils {
private static processCommand;
static process(commands: Commands): InternalCommands;
private static toggleCommandModeOn;
static toggleCommandModeOff(speech: Speech): void;
private static setText;
private static checkIfMatchesSubstring;
private static checkIfMatchesWord;
static execCommand(speech: Speech, newText: string, options?: Options, element?: Element, originalText?: string): ExecutionResponse;
}
export {};