speech-rule-engine
Version:
A standalone speech rule engine for XML structures, based on the original engine from ChromeVox.
26 lines (25 loc) • 798 B
TypeScript
import { KeyCode } from './event_util.js';
export declare function process<T>(name: string, expr: string): T;
export declare function output(name: string, expr: string): string;
export declare function keypress(name: string, expr: KeyCode | string): string;
export type OptionsList = {
[key: string]: string;
};
type SpeechList = {
[id: string]: {
[mod: string]: string;
};
};
export type WorkerStructure = {
speech?: SpeechList;
braille?: SpeechList;
mactions?: SpeechList;
options?: OptionsList;
translations?: OptionsList;
label?: string;
postfix?: string;
braillelabel?: string;
ssml?: string;
};
export declare function assembleSpeechStructure(json: WorkerStructure, mml: Element, sxml: Element, options?: OptionsList): void;
export {};