*** id: 782a4d93-6e57-4ffc-a89b-9fe6c2b58ff7 title: playTTS slug: /node/reference/voice/call/play-tts description: playTTS method for the Call class. max-toc-depth: 3 ---------------- [callplayback-9]: /docs/server-sdk/v3/node/reference/voice/call-playback [here-3]: /docs/platform/voice/tts [supported-voices-and-languages-1]: /docs/platform/voice/tts ### playTTS * **playTTS**(`params`): `Promise` - See [CallPlayback][callplayback-9] for more details. Plays text-to-speech. #### Parameters | Name | Type | Description | | :----------------- | :--------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `params` | `Object` | - | | `params.gender?` | `"male"` \| `"female"` | Gender of the voice. Defaults to `female`. | | `params.language?` | `string` | Language of the text in `ISO 639-1` (language name) + `ISO 3166` (country code). Defaults to `en-US`.
Supported languages can be found [here][here-3] | | `params.text` | `string` | Text to play. SSML may be entered as a string wrapped in `` tags.
See our [supported voices and languages][supported-voices-and-languages-1] documentation for usage and supported tags. | | `params.voice?` | `string` | Voice to use (takes precedence on `gender`).
Supported voices can be found [here][here-3] | | `params.volume?` | `number` | Volume value between -40dB and +40dB where 0 is unchanged. Default is 0. | #### Returns `Promise` - See [CallPlayback][callplayback-9] for more details. #### Examples ```js const playback = await call.playTTS({ text: "Welcome to SignalWire!" }); await playback.ended(); ``` Using SSML: ```js const playback = await call.playTTS({ text: ` Here are SSML samples. I can pause . I can speak in cardinals. Your number is 10. Or I can speak in ordinals. You are 10 in line. Or I can even speak in digits. The digits for ten are 10. I can also substitute phrases, like the W3C. Finally, I can speak a paragraph with two sentences.

This is sentence one.This is sentence two.

`, voice: "polly.Joey", }); await playback.ended(); ```