> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # setEndOfSpeechTimeout > Adjust the end-of-speech silence timeout for speech recognition. [functionresult]: /docs/server-sdks/reference/typescript/agents/function-result 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`** `number` — required Timeout in milliseconds. --- ## **Returns** [`FunctionResult`][functionresult] -- `this`, for chaining. ## **Example** ```typescript {4} import { FunctionResult } from '@signalwire/sdk'; const result = new FunctionResult() .setEndOfSpeechTimeout(500); ``` > Adjust the end-of-speech silence timeout for speech recognition.