Theme
VoiceLab API
Reference for text, speech, and realtime VoiceLab integrations.
Base URL: https://api.voicelab.uz
Auth: X-Api-Key on every REST request; realtime uses query token or gRPC metadata.
Hosts and package names
API base: https://api.voicelab.uz. API keys: VoiceLab app. SDK/CLI package is still aisha-ai (AISHA_API_KEY).
SDK quick start
Prefer the dedicated guides:
- Libraries & SDK — Node, Python, CLI
- For AI agents —
llms-api.txt, tool schemas, handlers
bash
export AISHA_API_KEY=your_api_key
npm install aisha-ai # or: pip install aisha-ai
npx aisha-ai tts "Salom dunyo" --model Gulnoza --out salom.wavBuilt-in endpoints
| API | Endpoint | Notes |
|---|---|---|
| TTS | POST /api/v1/tts/post/ | Create audio (sync/async) |
| TTS | GET /api/v1/tts/status/{id}/ | Check async status |
| TTS | GET /api/v1/tts/get/?page=1&limit=10 | History |
| STT | POST /api/v1/stt/post/ | Short audio transcription |
| STT | GET /api/v1/stt/get/?page=1&limit=10 | Short transcription history |
| STT | POST /api/v2/stt/post/ | Long audio async transcription |
| STT | GET /api/v2/stt/get/?page=1&limit=10 | Long audio history |
| STT | GET /api/v2/stt/get/{id}/ | Long transcription detail |
| STT | GET /task-status/{task_id}/?instance_id={id} | Task status (JWT; not API key) |
Realtime
- TTS:
wss://api.voicelab.uz/api/v1/tts/realtime?token=... - STT:
wss://api.voicelab.uz/api/v1/stt/realtime?format=webm&token=... - gRPC:
api.voicelab.uz:443
TTS API
Full examples: TTS API.
STT API
Full examples: STT API.
Integration checklist
- Create an API key in the VoiceLab app.
- Send
X-Api-Keyon every server request. - Start with a sync endpoint (
/api/v1/tts/post/or/api/v1/stt/post/), then wire status/history. - Use WebSocket or gRPC for long-lived realtime sessions.
Machine-readable
For LLMs and automation:
llms-api.txt- npm: aisha-ai
- PyPI: aisha-ai
Next
- Text to speech
- Speech to text
- New here? Start at Getting started