@euirim/microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
18 lines (17 loc) • 658 B
TypeScript
import { DynamicGrammarBuilder } from "./Exports";
/**
* Represents the JSON used in the speech.context message sent to the speech service.
* The dynamic grammar is always refreshed from the encapsulated dynamic grammar object.
*/
export declare class SpeechContext {
private privContext;
private privDynamicGrammar;
constructor(dynamicGrammar: DynamicGrammarBuilder);
/**
* Adds a section to the speech.context object.
* @param sectionName Name of the section to add.
* @param value JSON serializeable object that represents the value.
*/
setSection(sectionName: string, value: any): void;
toJSON(): string;
}