Skip to main content
xAI is a text-to-speech plugin. It streams Grok voices and supports inline expression tags like [laugh] and <whisper> in the text.

Setup

Set your xAI API key in the worker environment. Generate a key from the xAI site:

Usage

Import the plugin and pass it to the pipeline’s tts slot.

Parameters

Constructor parameters for XAITTS.

Import paths

Synthesized audio is streamed back to the caller after the LLM produces a response.