Text-to-Speech
POST /v1/audio/speech
Convert text to spoken audio. Compatible with OpenAI’s TTS API.
Request
{
"model": "openai/tts-1",
"input": "Hello from PickLayer TTS",
"voice": "alloy",
"format": "mp3"
}Parameters
| Parameter | Type | Description |
|---|---|---|
model | string | TTS model (e.g., openai/tts-1, openai/tts-1-hd) |
input | string | Text to convert to speech |
voice | string | Voice to use (e.g., alloy, echo, fable, onyx, nova, shimmer) |
format | string | Output format (mp3, opus, aac, flac, wav, pcm) |
Supported Providers
- OpenAI - tts-1, tts-1-hd
- AWS Polly - Multiple voices and languages
- Azure Speech - Neural voices
Last updated on