> 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. # playSilence > Play silence on a call for a number of seconds. [playaction]: /docs/server-sdks/reference/typescript/relay/actions [play]: /docs/server-sdks/reference/typescript/relay/call/play Play silence on the call for `duration` seconds. A typed convenience over [`play()`][play]. ## **Parameters** **`duration`** `number` — required Seconds of silence. --- **`options`** `object` Playback options. --- **`options.onCompleted`** `(event: RelayEvent) => void | Promise` Callback invoked when the operation reaches a terminal state. --- ## **Returns** `Promise<`[`PlayAction`][playaction]`>` -- An action handle with `stop()`, `pause()`, `resume()`, `volume()`, and `wait()` methods. ## **Example** ```typescript {12} import { RelayClient } from '@signalwire/sdk'; const client = new RelayClient({ project: process.env.SIGNALWIRE_PROJECT_ID!, token: process.env.SIGNALWIRE_API_TOKEN!, contexts: ['default'] }); client.onCall(async (call) => { await call.answer(); await (await call.playTTS('One moment.')).wait(); await (await call.playSilence(2)).wait(); }); await client.run(); ``` > Play silence on a call for a number of seconds.