UNPKG

speech-rule-engine

Version:

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

12 lines (11 loc) 576 B
import { Options } from '../common/options.js'; import { SemanticFont, SemanticRole, SemanticType } from './semantic_meaning.js'; import { SemanticTree } from './semantic_tree.js'; export type Font = SemanticFont; export type Role = SemanticRole; export type Type = SemanticType; type Attr = Font | Role | Type; export type { Attr }; export declare function xmlTree(mml: Element, options: Options): Element; export declare function getTree(mml: Element, options: Options): SemanticTree; export declare function getTreeFromString(expr: string, options: Options): SemanticTree;