Routing
Language-Based Routing
Overview
(Beta)
slng.ai supports Language-Based Routing, enabling developers to send requests in any supported language and automatically receive the best quality output available — without needing to choose a model manually.
Behind the scenes, we maintain a growing library of general-purpose and language-specialized TTS and STT models. Our routing engine selects the most capable model for the given language, accent, or dialect — ensuring natural output and high accuracy regardless of input type.
Key Features
- Automatic Language Matching
- Dialect-Specific Support
- Specialized Models for High-Volume Languages
- Fallbacks for Rare Languages
- Works Across TTS and STT
How It Works
When you send a request with a language
parameter (e.g. fr-FR
, ar-SA
, es-MX
), slng.ai will:
- Match your input to available models with native or fine-tuned support for that language.
- Prioritize specialized models where available for higher output quality.
- Fall back to general multilingual models if needed.
- Automatically apply the best model for your target region, quality, and cost preferences.
Example Request
Code(json)
Sample cURL
Code(bash)
Request Parameters (Language Routing)
Field | Type | Description |
---|---|---|
language | string | Language code (e.g., en-US , fr-FR , ar-SA , es-419 ) |
slng.ai supports full BCP-47 tags, including regional variants.
Model Selection Strategy
- Exact match to fine-tuned or specialized model
- Fallback to general multilingual model
- Adjust pronunciation or tone by dialect when available
- Evaluate model quality scores for the chosen language
Benefits
- 🌍 Global Language Support: Dozens of languages and dialects supported
- 🧠 Smarter Defaults: No need to research which model supports your language
- 🔊 Higher Naturalness: Specialized models sound more authentic
- 🔄 Seamless Switching: STT and TTS models matched automatically per request
Limitations (Beta)
- Some dialects may fall back to general language models
- Quality can vary based on available training data for rare languages
- Language-based quality scoring is evolving with feedback
Coming Soon
- Dashboard-level language usage analytics
- Custom default models per language (enterprise tier)
- Community feedback voting on model quality by language
Quick Links
Last updated: June 2025
Last modified on