Routing
Smart Routing
Overview
(Beta) The slng.ai platform now supports Smart Routing, a powerful beta feature that automatically selects the most relevant Text-to-Speech (TTS) model for your request — based on your preferences, usage context, and regional requirements.
This allows developers to simply call the base endpoint (/tts
) and let our routing engine handle the complexity of model selection, quality optimization, and compliance.
Key Features
- Automatic Model Selection
- Org-Level Preferences
- Request-Based Overrides
- Quality Score Ranking
- Pricing Limit Per Transaction Type
- Cloning Support Routing
- Low-Latency Regional Execution
How It Works
When a request is sent to:
Code(bash)
Our system will automatically:
- Parse your org-level preset (e.g. default region, model types, compliance tags).
- Consider request-specific arguments (e.g. language, region, voice cloning, pricing limits).
- Score available models using a live quality score.
- Route the request to the best available model for the job.
- Return the synthesized voice output.
Example Request
Code(json)
Sample cURL
Code(bash)
Request Parameters
Field | Type | Description |
---|---|---|
text | string | The text you want to convert to speech |
language | string | Preferred language/dialect code (e.g., en-US , es-ES ) |
region | string | Preferred execution region (e.g., EU , us-west ) |
pricing_limit_per_request | float | Optional price cap per request (in USD) by transaction type (e.g., TTS) |
enable_cloning | boolean | Whether cloned voice models can be used (if available) |
Smart Routing Logic
The routing engine uses the following priorities:
- Org-level preferences (set in the dashboard)
- Request parameters (language, region, cloning)
- Live quality scores (model reliability and latency)
- Pricing limits per transaction type (if specified)
- Availability (GPU pool, load)
Benefits
- 🔧 No manual model selection needed
- ⚡️ Low latency via closest region
- 🎯 Cloning support where relevant
- 💵 Price control via per-request pricing limits
- ✅ Enterprise-grade fallback options
Limitations (Beta)
- Routing logic is still being tuned; feedback is welcome
- Not all regions support all cloning models
- Quality scoring is currently heuristic-based and evolving
Quick Links
Last updated: June 2025
Last modified on