TTS 1 Turbo
widelabs/tts-1-turbo
Wide LabsText-to-speechREST
Price$0.04 /1K chars
EndpointPOST /v2/audio/tts-1-turbo/generate REST
Quick start
Send a JSON request to the endpoint below; the response carries the result.
curl -X POST https://api.widelabs.tr/v2/audio/tts-1-turbo/generate \ -H "Authorization: Bearer $WIDELABS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "text": "Hi, thanks for calling! [cheerfully] I can see your order shipped this morning, and it should arrive on Thursday. Is there anything else I can help you with today? No problem at all. Have a wonderful afternoon!", "voice": "nova", "seed": 1 }'
import os
import requests
resp = requests.post(
"https://api.widelabs.tr/v2/audio/tts-1-turbo/generate",
headers={"Authorization": "Bearer " + os.environ["WIDELABS_API_KEY"]},
json={
"text": "Hi, thanks for calling! [cheerfully] I can see your order shipped this morning, and it should arrive on Thursday. Is there anything else I can help you with today? No problem at all. Have a wonderful afternoon!",
"voice": "nova",
"seed": 1
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.widelabs.tr/v2/audio/tts-1-turbo/generate", { method: "POST", headers: { Authorization: `Bearer ${process.env.WIDELABS_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ text: "Hi, thanks for calling! [cheerfully] I can see your order shipped this morning, and it should arrive on Thursday. Is there anything else I can help you with today? No problem at all. Have a wonderful afternoon!", voice: "nova", seed: 1 }), }); console.log(await resp.json());
Parameters
| Name | Type | Description |
|---|---|---|
store_output | "provider" | "wl1d" | "wl7d" | "wl30d" default "provider" | Where this request's output media is hosted, and for how long. `provider` (default) returns a Wide Labs CDN link that live-proxies the provider for 1 hour — the same hour the task record itself lives. `wl1d` / `wl7d` / `wl30d` copy the output into Wide Labs own storage and keep BOTH the link and the task record for 1, 7 or 30 days,… |
text required | string | Text to speak (max 10,000 characters). Audio tags in square brackets steer the delivery, e.g. [whispers], [laughs], [excited]. |
voice | "atlas" | "nova" | "orion" | "lyra" | "sage" | "kai" | "wren" | "river" | … default "atlas" | Voice name. Every voice can speak every supported language; native: atlas/sage (British English), nova/orion/lyra/cole (American English), kai/wren (Australian English), river/mira (Indian English), deniz/ege (Turkish), felix (German), celine (French), sol/leon (Spanish), noor (Arabic), hana (Japanese). |
output_format | "alaw_8000" | "m4a_aac_44100_128" | "mp3_22050_32" | "mp3_24000_48" | "mp3_44100_128" | "mp3_44100_192" | codec_samplerate[_bitrate]. The response's content_type follows it (pcm = raw 16-bit little-endian mono). Default 'mp3_44100_128'. |
language_code | string | ISO 639-1 language to enforce (e.g. 'en', 'tr'); detected from the text when omitted. |
stability | number | Lower = more expressive and varied, higher = steadier delivery. |
similarity_boost | number | How closely the output follows the voice. |
seed | integer | Best-effort deterministic sampling. |
previous_text | string | Text that came before this request (continuity when splitting long texts). |
next_text | string | Text that comes after this request (continuity). |
apply_text_normalization | "auto" | "on" | "off" | Spell out numbers, dates and units. Default 'auto'. |
audio_effects_filter_preset_id | "old_radio" | "robot" | "cheap_microphone" | "phone" | "low_quality_phone" | "bright_phone" | Filter that colors the voice. |
audio_effects_distance | number | How far the speaker sounds (0 close, 1 far). |
audio_effects_environment_id | "small_room" | "big_room" | "hall" | "tunnel" | "street" | "valley" | Reverb environment. Stereo: not with pcm, ulaw or alaw formats (422). |
audio_effects_background_noise_id | "call_center" | "cafe" | "city" | "keyboard" | Background noise looped under the voice. |
audio_effects_send_level | number | How much of the voice feeds the reverb (with environment_id). |
audio_effects_pan | number | Stereo position, -1 left to 1 right. Stereo: not with pcm, ulaw or alaw formats (422). |
with_timestamps | boolean | Also return per-character timing (alignment, normalized_alignment). Default false. |
webhook_url | string | HTTPS URL to receive a signed completion webhook when the async task reaches a terminal state (requires an API key, "async": true and direct mode; otherwise 422). See the Webhooks section for the delivery payload and events, and GET /v2/customer/webhook-secret for the signing secret + verification. |
Related
Similar models
Start building on Wide Labs Compute
Create an account, add credit and send your first request with the SDK you already use.