v1
latestOpenAPI 3.1.02026-07-13212942.9 KBStreaming
Stream Text To Speech Playground
Internal playground endpoint for streaming TTS — not shown in the public schema.
Reads the API key from the PLAYGROUND_API_KEY environment variable and delegates to :func:stream_text_to_speech. Rate-limited independently via the RATELIMIT.PLAYGROUND config section.
Args: tts_request: TTS parameters (text, voice, model, format, etc.). background_tasks: FastAPI background-task queue. _request: Raw FastAPI Request object used for rate-limiting and app.state access. rl: Playground-specific rate-limiter dependency.
Returns: StreamingResponse: SSE stream of audio chunks (same as the main endpoint).
Raises: Exception: If PLAYGROUND_API_KEY is not configured.
post/text_to_speech/streaming/hidden/playground
Request body
Example request
{
"transcript": "Hello, world!"
}Response
Successful Response
{"stackTrail":"paths:/text_to_speech/streaming/hidden/playground:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}