For the complete documentation index, see llms.txt. This page is also available as Markdown.

Text to Speech [BETA]

Text-to-Speech (TTS) converts written text into natural-sounding audio, enabling applications such as voice assistants, audiobook generation, accessibility tools, and real-time speech synthesis. It supports multiple voices and providers, allowing flexible audio generation tailored to different use cases.

To explore available models, visit cortecs.ai and filter by the Speech tag.

Example usage

from openai import OpenAI 

client = OpenAI( 
    base_url="https://api.cortecs.ai/v1", 
    api_key="<API_KEY>", 
) 

response = client.audio.speech.create( 
    model="chatterbox-turbo", 
    input="Hello, this is a text-to-speech test.", 
    voice="<provider_voice>" 
) 

response.stream_to_file("speech.mp3")

Voice Support

Each provider supports different voice styles. Available options depend on the selected provider.

Provider
Example Voice

Mistral

en_paul_neutral

Tensorix

Emily.wav

OVH

"English-US.Female-1"

These are only example voices. Each provider may offer additional voice options depending on the model and configuration. Always check the provider documentation for the full list of available voices.

Text-to-Speech models are priced per character of input text.

Last updated