DynamicGrammarBuilder class

Responsible for building the object to be sent to the speech service to support dynamic grammars.

Methods

addPhrase(string | string[])
addReferenceGrammar(string | string[])
clearGrammars()
clearPhrases()
generateGrammarObject()

Method Details

addPhrase(string | string[])

function addPhrase(phrase: string | string[])

Parameters

phrase
string | string[]

addReferenceGrammar(string | string[])

function addReferenceGrammar(grammar: string | string[])

Parameters

grammar
string | string[]

clearGrammars()

function clearGrammars()

clearPhrases()

function clearPhrases()

generateGrammarObject()

function generateGrammarObject()

Returns