Unique name for this graph. Used in prepareForListening
to activate it. Must not contain the - (hyphen) character.
Array of phrases the user might say.
Optionaloptions: {Optional configuration.
Optionaltask?: SpeakingTaskSpeaking task type (affects language model optimization). Defaults to SpeakingTask.Default.
OptionalalternativePronunciations?: (WordPronunciation | { word: string; pronunciation: string; tag?: string })[]Custom pronunciation definitions. See WordPronunciation.
OptionalspokenNoiseProbability?: numberProbability of <SPOKEN_NOISE> token appearing
in results (0.0–1.0, default 0.5). Lower values reduce its frequency; higher
values increase it.
true if the graph was created successfully.
Create a decoding graph optimized for recognizing specific phrases.
A decoding graph is a compiled recognition grammar that the recognizer uses to constrain what it listens for. The graph is stored persistently on disk and can be reused across sessions.