microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
17 lines (16 loc) • 546 B
TypeScript
import { Dgi } from "./ServiceMessages/Dgi/Dgi.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;
private privWeight;
addPhrase(phrase: string | string[]): void;
clearPhrases(): void;
addReferenceGrammar(grammar: string | string[]): void;
clearGrammars(): void;
setWeight(weight: number): void;
generateGrammarObject(): Dgi;
}