Component evidence
Configure Grok TTS audio output settings like codec and sample rate.
// Source: https://github.com/TanStack/ai | License: MIT | Copyright 2025 Tanner Linsley
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Grok TTS voice options.
* See https://docs.x.ai/developers/model-capabilities/audio/text-to-speech
*/
export type GrokTTSVoice = 'eve' | 'ara' | 'rex' | 'sal' | 'leo'
/**
* Grok TTS output audio codecs.
* Grok does NOT support opus or aac; those formats are mapped to mp3.
*/
export type GrokTTSCodec = 'mp3' | 'wav' | 'pcm' | 'mulaw' | 'alaw'
/**
* Provider-specific options for Grok TTS (`POST /v1/tts`).
*/
export interface GrokTTSProviderOptions {
/**
* BCP-47 language code (e.g., `en`, `zh`, `pt-BR`) or `'auto'` for detection.
* Defaults to `'en'` when not provided.
*/
language?: string
/**
* Audio codec
... (truncated -- full source via MCP)