> 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. # playTTS > Play text-to-speech on a call. [playaction]: /docs/server-sdks/reference/typescript/relay/actions [play]: /docs/server-sdks/reference/typescript/relay/call/play Play text-to-speech on the call. A typed convenience over [`play()`][play] that builds the TTS media item for you. ## **Parameters** **`text`** `string` — required The text to speak. --- **`options`** `object` Voice and playback options. --- **`options.language`** `string` Language code for the voice, such as `"en-US"`. --- **`options.gender`** `TtsGender` `"male"` or `"female"`. --- **`options.voice`** `string` Voice identifier for the TTS engine. --- **`options.volume`** `number` Volume adjustment in dB, from `-40` to `40`. --- **`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 {11} 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(); const action = await call.playTTS('Welcome to Bayview Taxi.', { language: 'en-US' }); await action.wait(); }); await client.run(); ``` > Play text-to-speech on a call.