addHint

View as MarkdownOpen in Claude

Add a single speech recognition hint. Hints boost the automatic speech recognition (ASR) engine’s accuracy for specific words or phrases that may otherwise be misrecognized — such as product names, technical jargon, or uncommon proper nouns.

Parameters

hint
stringRequired

A word or phrase to boost recognition accuracy.

Returns

AgentBase — Returns this for method chaining.

Example

1import { AgentBase } from '@signalwire/sdk';
2
3const agent = new AgentBase({ name: 'support', route: '/support' });
4agent.setPromptText('You are a helpful assistant.');
5agent.addHint('SignalWire');
6await agent.serve();