addDynamicHints
Add speech recognition hints dynamically during a call. Hints improve recognition accuracy for domain-specific vocabulary, product names, or uncommon words. Each hint can be a simple string or a pronunciation pattern object that maps misrecognized speech to the correct text.
When the agent runs in multilingual mode (setMultilingual()), string hints
are not passed to speech recognition. Pattern objects still rewrite the transcript.
Parameters
hints
List of hints. Each entry is either:
- A
string— a word or phrase to boost recognition (e.g.,"SignalWire") - An object with pronunciation pattern fields:
Returns
FunctionResult — this, for chaining.