UNPKG

speech-rule-engine

Version:

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

16 lines (15 loc) 533 B
export type SpanAttrs = { [key: string]: string; }; export declare class Span { speech: string; attributes: SpanAttrs; constructor(speech: string, attributes: SpanAttrs); static empty(): Span; static stringEmpty(str: string): Span; static stringAttr(str: string, attr: SpanAttrs): Span; static singleton(str: string, def?: SpanAttrs): Span[]; static node(str: string, node: Element, def?: SpanAttrs): Span; static attributeList: string[]; static getAttributes(node: Element): SpanAttrs; }