Lightning v3.1
Get speech for given text using the Lightning v3.1 model
Overview
Lightning v3.1 is a 44 kHz text-to-speech model that delivers natural, expressive, and realistic speech synthesis.Key Features
- Voice Cloning Support: Compatible with cloned voices
- Ultra-Low Latency: Optimized for real-time applications
- Multi-Language: Supports English (en) and Hindi (hi)
- Multiple Output Formats: PCM, MP3, WAV, and mulaw
- Flexible Sample Rates: 8000 Hz to 44100 Hz
- Speed Control: Adjustable from 0.5x to 2x speed
Authorizations
Bearer authentication header of the form Bearer <api_key>, where <api_key> is your api key.
Body
The text to convert to speech.
The voice identifier to use for speech generation.
The sample rate for the generated audio.
8000, 16000, 24000, 44100 The speed of the generated speech.
0.5 <= x <= 2Language code for text normalization (e.g., how numbers, dates, and abbreviations are spelled out). Set to 'auto' for automatic language detection, or specify a language code like 'en' or 'hi'.
auto, en, hi, ta, es The format of the output audio.
pcm, mp3, wav, mulaw The IDs of the pronunciation dictionaries to use for speech generation.
The ID of the pronunciation dictionary to use for speech generation.
Response
Synthesized speech retrieved successfully.
A PCM int16 WAV file at the specified sample rate.

