API Reference
Overview & Base URLs
Shunya TTS exposes three endpoints: batch HTTP synthesis, streaming WebSocket synthesis, and a health check.
Base URLs
| ENDPOINT | URL | PROTOCOL |
|---|---|---|
| Batch HTTP | https://tts.shunyalabs.ai | HTTPS |
| Streaming WS | wss://tts.shunyalabs.ai/ws | WebSocket (WSS) |
| Health Check | https://tts.shunyalabs.ai/health | HTTPS |
Notes
- All endpoints require TLS. Plain HTTP and WS connections are rejected.
- The batch endpoint accepts
POST /v1/audio/speechwith a JSON body. - The WebSocket endpoint accepts a query parameter for authentication and JSON frames for configuration and text.
- The health check requires no authentication and returns the server status.