Smallest AI · AsyncAPI Specification
Smallest AI Waves Realtime TTS (WebSocket)
Version 1.0
Realtime, bidirectional text-to-speech over WebSocket for the Smallest AI Waves Lightning v2 model. The client opens a WebSocket connection, sends one or more JSON text payloads, and the server streams synthesized audio back as base64-encoded chunks, followed by a completion message. This is a true WebSocket (wss) transport - distinct from the HTTP Server-Sent Events stream documented on the same path in the OpenAPI definition.
Channels
/lightning-v2/get_speech/stream
Send text to synthesize.
Bidirectional channel for realtime speech synthesis. The client publishes synthesis requests and subscribes to streamed audio chunks and a completion message.
Messages
SynthesisRequest
Synthesis Request
A chunk of text to synthesize into speech.
AudioChunk
Audio Chunk
A base64-encoded audio chunk produced for the submitted text.
StreamComplete
Stream Complete
Signals that all audio for the request has been delivered.
Servers
wss
production
waves-api.smallest.ai/api/v1
Waves realtime TTS WebSocket endpoint.