UNPKG

speech-rule-engine

Version:

A standalone speech rule engine for XML structures, based on the original engine from ChromeVox.

21 lines (20 loc) 641 B
import { AuditoryDescription } from '../audio/auditory_description.js'; type SpeechMap = Map<string, AuditoryDescription[]>; export declare class SpeechStructure { node: Element; speechMaps: Map<string, SpeechMap>; private getSpeechMap; private setMap; private nodeMap; constructor(node: Element); addNode(node: Element, descr: AuditoryDescription[], modality?: string): void; get(id: string): SpeechMap; private getNodeMap; completeModality(modality: string, func: any): void; json(mls?: string[]): { [id: string]: { [modality: string]: string; }; }; } export {};