Skip to content

Add xAI (Grok) TTS and STT providers and integrate client/docs#2890

Merged
jelveh merged 1 commit intomainfrom
add-grok-tts-stt
May 3, 2026
Merged

Add xAI (Grok) TTS and STT providers and integrate client/docs#2890
jelveh merged 1 commit intomainfrom
add-grok-tts-stt

Conversation

@jelveh
Copy link
Copy Markdown
Contributor

@jelveh jelveh commented May 3, 2026

  • Add XAITTSProvider calling POST /v1/tts with 5 voices (eve, ara, rex, sal, leo), speech tags, and configurable output format
  • Add XAISpeechToTextDriver calling POST /v1/stt with support for diarization, multichannel, text formatting, and xAI's native URL param for remote audio files
  • Register both providers in TTSDriver and driver index using existing xAI API key from config
  • Update puter.js client to route provider:'xai' for both txt2speech and speech2txt, including listVoices/listEngines
  • Add TypeScript types for new STT options (provider, format, diarize, multichannel, etc.)
  • Update txt2speech.md and speech2txt.md with xAI options and examples
  • Add playground examples for both TTS and STT

Cost metering:
TTS: 420 microcents/char ($4.20/1M chars) STT: 2778 microcents/sec ($0.10/hr)

  - Add XAITTSProvider calling POST /v1/tts with 5 voices (eve, ara, rex,
    sal, leo), speech tags, and configurable output format
  - Add XAISpeechToTextDriver calling POST /v1/stt with support for
    diarization, multichannel, text formatting, and xAI's native URL
    param for remote audio files
  - Register both providers in TTSDriver and driver index using existing
    xAI API key from config
  - Update puter.js client to route provider:'xai' for both txt2speech
    and speech2txt, including listVoices/listEngines
  - Add TypeScript types for new STT options (provider, format, diarize,
    multichannel, etc.)
  - Update txt2speech.md and speech2txt.md with xAI options and examples
  - Add playground examples for both TTS and STT

  Cost metering:
    TTS: 420 microcents/char ($4.20/1M chars)
    STT: 2778 microcents/sec ($0.10/hr)
@jelveh jelveh merged commit bd30cda into main May 3, 2026
1 check passed
@jelveh jelveh deleted the add-grok-tts-stt branch May 3, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant