Recognition Context
JSON property recognitionContext
JSON type object
Provides contextual terms and phonetic mappings that can improve speech recognition.
Behavior and notes
- Inline entries and an external file may be used together. External files use one contextualString: phoneticMap mapping per line; lines beginning with # are comments. A | inside phoneticMap separates alternative pronunciations for the same contextual string.
Developer guidance
Recognition context supplies recognition hints through entries and can also reference an external resource. Each entry pairs contextualString with phoneticMap. Use the linked Recognition Context Entry reference for the exact element shape.
Example in context
Illustrative JSON excerpt (not a complete configuration document):
{
"configureParams": {
"recognitionContext": {
"enabled": true,
"entries": [
{
"contextualString": "SpeechTiles",
"phoneticMap": ""
}
]
}
}
}
This shows the nested entries array. An empty phoneticMap is shown only as a structural placeholder; provide a meaningful phonetic mapping when needed.
Properties
enabled
Enables or disables the recognition context.
entries
Inline recognition-context entries.
fileName
Name of an external recognition-context file.
resourceLocation
Resource location containing the external context file.