microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
15 lines (14 loc) • 493 B
TypeScript
import { IDynamicGrammar } from "./Exports.js";
/**
* Responsible for building the object to be sent to the speech service to support dynamic grammars.
* @class DynamicGrammarBuilder
*/
export declare class DynamicGrammarBuilder {
private privPhrases;
private privGrammars;
addPhrase(phrase: string | string[]): void;
clearPhrases(): void;
addReferenceGrammar(grammar: string | string[]): void;
clearGrammars(): void;
generateGrammarObject(): IDynamicGrammar;
}