ModelsLab/Text To Speech
text-to-speechThe Text-to-Audio endpoint enables you to generate audio by providing a text input along with a valid audio URL or a pre-created voice using a voice_id. The output is an audio file that mimics the sound of the provided audio URL or the selected voice.
API Endpoint URL
Base URL for all API requests to this endpoint.
https://modelslab.com/api/v6/voice/text_to_speech
API Authentication
Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.
Integration Examples
Production-ready code samples for API integration
{"prompt": "Narrative voices capable of pronouncing terminologies & acronyms in training and ai learning materials.","voice_id": "adam","language": "american english","speed": "0.8","key": "YOUR_API_KEY"}
SDKs
Official SDKs
Production-ready SDKs and client libraries for all major programming languages
API Parameters
Technical specifications for API request parameters.
| Field Name | Parameter | Technical Description |
|---|---|---|
| Prompt | prompt | Prompt |
| Voice Id | voice_id | Pre-defined voice to use |
| language | language | Language |
| speed | speed | Speech speed |