Voice Effects
Give a line the distance of a phone call or the atmosphere of an old memory.
Choose one preset and its strength in effects.
For emotion and delivery, see Expression and Delivery Instructions.
Choose an effect
| Preset | Sound | Example use |
|---|---|---|
neutral | No effect | Return to the original voice |
warm_narration | Warm, soft tone | Stories and calm narration |
broadcast | Clear, full tone | Broadcasts and announcements |
small_room | Short indoor reflections | A conversation in a room |
telephone | A voice heard over the phone | Phone-call scenes |
memory | Soft tone, light reverb, and slower playback | Memories and flashbacks |
robot | Lower, mechanical tone | Robot characters |
megaphone | Narrow, rough megaphone tone | Megaphone announcements |
cave | Long spatial reverb | Caves and large spaces |
echo | Repeating echoes | Echo scenes |
Choose one preset per request. The same settings can sound different across voices and languages. Start by listening to a short line.
Adjust strength or turn effects off
effects.preset is required. effects.strength is a JSON number from 0 to 1,
defaulting to 1. Start at 0.5 and adjust to suit the scene.
1 means the preset's full strength, not reverb alone.
Omit effects or send null to generate without an effect.
You can also use preset: "neutral" or strength: 0.
Generate an audio file
Add effects to the Text to Speech API JSON body.
Replace <VOICE_ID> with an available voice ID and <API_KEY> with your API key.
curl --request POST \
"https://api.kitschlabs.com/v1/text-to-speech/<VOICE_ID>?output_format=mp3_44100_128" \
--header "xi-api-key: <API_KEY>" \
--header "Content-Type: application/json" \
--data '{"text":"It has been a while. How have you been?","language_code":"en","effects":{"preset":"memory","strength":0.7}}' \
--output memory.mp3
Playback speed
speed is a JSON number from 0.25 to 4 that changes playback speed while
preserving pitch. 1 is normal speed, 0.8 is slower, and 1.2 is faster.
When omitted, the preset's speed is used, or 1 with no effect.
An explicit speed replaces the preset's speed. To keep the memory effect
without its slower playback, send:
{
"text": "I still remember that day.",
"effects": {"preset": "memory", "strength": 0.7},
"speed": 1
}
An explicit speed still applies with strength: 0.
Speed and reverb can change the returned file's length, but effects and speed
adjustments do not increase or decrease synthesis usage.
Streaming
Add the same effects and speed to the JSON body for
HTTP streaming.
For WebSocket, set them before or with the first text message.
{"text":"It has been a while.","xi_api_key":"<API_KEY>","effects":{"preset":"memory","strength":0.7},"flush":true}
Settings cannot change during an utterance. Send flush: true and wait for
isFinal: true before changing them for the next utterance. Omitted settings
carry over to the next utterance. Send effects: null to turn the effect off.
OpenAI-compatible API
The Speech API and
Speech Streaming API also accept
effects and speed in the request body. With the Python SDK,
pass effects through extra_body. Set KITSCH_OPENAI_BASE_URL to your Audio API URL ending in /v1.
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["KITSCH_API_KEY"],
base_url=os.environ["KITSCH_OPENAI_BASE_URL"],
max_retries=0,
)
with client.audio.speech.with_streaming_response.create(
model="kitsch-voice",
voice="<VOICE_ID>",
input="It has been a while. How have you been?",
response_format="mp3",
extra_body={"effects": {"preset": "memory", "strength": 0.7}},
) as response:
response.stream_to_file("memory.mp3")