setEndOfSpeechTimeout

View as MarkdownOpen in Claude

Adjust the end-of-speech timeout. This controls how many milliseconds of silence after detected speech are required before the system finalizes speech recognition. A shorter value makes the agent respond faster; a longer value gives the caller more time to pause mid-sentence.

Parameters

milliseconds
numberRequired

Timeout in milliseconds.

Returns

FunctionResultthis, for chaining.

Example

1import { FunctionResult } from '@signalwire/sdk';
2
3const result = new FunctionResult()
4 .setEndOfSpeechTimeout(500);