Grok

Text-to-speech

View as MarkdownOpen in Claude

Grok is xAI’s low-latency text-to-speech engine with a small set of multilingual voices.

Grok TTS does not take a model parameter. The voice string is just grok.<voiceId> — never append a :model suffix.

Voices

Press play to audition any Grok voice, then copy config to grab the value for SWML or your SDK.

Grok provides five voices: ara, eve, leo, rex, and sal. eve is the default, and is also used as the fallback when an unrecognized voice is requested.

See xAI’s documentation for voice details.

Languages

Grok voices are multilingual. SignalWire passes the language code you set on the languages SWML method (any BCP-47 code, such as en-US or fr-FR) to Grok, and multilingual mode maps to automatic language detection.

Usage

A voice identifier string has two parts: the grok engine code and a voice ID.

Format: grok.<voiceId>

  • voiceId (required): one of the voices above (for example, eve).

Examples:

grok.eve
grok.ara

Build with Grok on SignalWire

1

Create a Space and add credit

If you don’t have one yet, you’ll need to create a SignalWire Space. Be sure to add some credit to test with.

2

Add a new Resource

Navigate to the Resources tab in your SignalWire Dashboard and click + Add New to create a new Resource.

3

Create a SWML Script

From the Resources menu, select SWML Script. Name it something fun and recognizable. Ours is titled Grok Wizard.

Next, paste the following starter script into the text box, and hit Save:

1version: 1.0.0
2sections:
3 main:
4 - ai:
5 prompt:
6 text: |
7 You're Eve, a voice from xAI's Grok TTS engine!
8 Introduce yourself, and have a conversation about programmable unified communications on the SignalWire platform.
9 languages:
10 - name: English
11 code: en-US
12 voice: grok.eve
4

Buy and assign a phone number

Navigate to the Phone Numbers section of the Dashboard’s left sidebar menu.

Purchase a phone number and assign it to the desired SWML script.

A purchased phone number showing assignment to a specified Resource.

Assigning a phone number to the SWML Script
5

Give it a call!

Call the number you just assigned to chat with your new AI voice application on the phone.

Next steps with SWML

Now you’ve deployed your very first SignalWire voice AI application using Grok voices. Next, dive deeper into SWML to explore its capabilities!