Speed & Pitch Control
Fine-tune playback speed and voice pitch for perfect audio delivery.
Speed Control
Adjust how fast the text is spoken. Range: 0.5 to 2.0 (default: 1.0)
| Speed Value | Effect | Use Case |
|---|---|---|
| 0.5 | Half speed (very slow) | Language learning, accessibility |
| 0.75 | Slower than normal | Complex content, elderly audience |
| 0.9 | Slightly slower | Audiobooks, clear narration |
| 1.0 | Normal speed (default) | General purpose |
| 1.1 | Slightly faster | News, podcasts |
| 1.25 | Faster | Quick updates, notifications |
| 1.5 | Much faster | Speed listening |
| 2.0 | Double speed | Rapid review |
import requests
# Slower for audiobook
response = requests.post(
"https://yourvoic.com/api/v1/tts/generate",
headers={"X-API-Key": "your_api_key"},
json={
"text": "This is narrated at a comfortable audiobook pace.",
"voice": "Peter",
"language": "en-US",
"speed": 0.9 # Slightly slower
}
)
# Faster for notifications
response = requests.post(
"https://yourvoic.com/api/v1/tts/generate",
headers={"X-API-Key": "your_api_key"},
json={
"text": "You have three new messages.",
"voice": "Emma",
"language": "en-US",
"speed": 1.25 # Faster delivery
}
)
Pitch Control
Adjust the voice pitch (tone). Range: 0.5 to 2.0 (default: 1.0)
| Pitch Value | Effect | Use Case |
|---|---|---|
| 0.5 | Much lower pitch | Deep, authoritative voice |
| 0.8 | Lower pitch | More serious tone |
| 1.0 | Normal pitch (default) | General purpose |
| 1.2 | Higher pitch | More energetic, friendly |
| 1.5 | Much higher pitch | Playful, youthful |
# Lower pitch for serious content
response = requests.post(
"https://yourvoic.com/api/v1/tts/generate",
headers={"X-API-Key": "your_api_key"},
json={
"text": "This is an important announcement.",
"voice": "Peter",
"language": "en-US",
"pitch": 0.9 # Slightly lower, more serious
}
)
# Higher pitch for friendly tone
response = requests.post(
"https://yourvoic.com/api/v1/tts/generate",
headers={"X-API-Key": "your_api_key"},
json={
"text": "Hi there! Welcome to our app!",
"voice": "Emma",
"language": "en-US",
"pitch": 1.1 # Slightly higher, more energetic
}
)
Combining Speed and Pitch
Use both parameters together for fine-tuned control:
# Audiobook style: slower with normal pitch
audiobook_config = {
"text": "Chapter One. It was a dark and stormy night...",
"voice": "Peter",
"language": "en-US",
"model": "aura-max",
"speed": 0.9,
"pitch": 1.0
}
# News broadcast style: slightly faster, deeper pitch
news_config = {
"text": "Breaking news: Scientists discover new species.",
"voice": "Peter",
"language": "en-US",
"speed": 1.1,
"pitch": 0.95
}
# Children's content: slower, slightly higher pitch
kids_config = {
"text": "Once upon a time, there was a little bunny.",
"voice": "Emma",
"language": "en-US",
"speed": 0.85,
"pitch": 1.15
}
# Urgent notification: faster, normal pitch
urgent_config = {
"text": "Alert! Your session will expire in 5 minutes.",
"voice": "Peter",
"language": "en-US",
"speed": 1.3,
"pitch": 1.0
}
Recommended Settings by Use Case
| Use Case | Speed | Pitch | Model |
|---|---|---|---|
| Audiobooks | 0.9 | 1.0 | aura-max |
| E-learning | 0.95 | 1.0 | aura-prime |
| Podcasts | 1.0 | 1.0 | aura-prime |
| News | 1.1 | 0.95 | aura-prime |
| Chatbots | 1.0 | 1.0 | aura-lite |
| Notifications | 1.2 | 1.0 | rapid-flash |
| IVR | 1.0 | 1.0 | rapid-flash |
| Children's Content | 0.85 | 1.1 | aura-prime |
| Meditation | 0.8 | 0.95 | aura-max |
Tips
- Test with your content - Different text may need different settings
- Consider your audience - Elderly listeners may prefer slower speeds
- Match the mood - Lower pitch for serious, higher for friendly
- Don't overdo it - Extreme values can sound unnatural
- Be consistent - Use the same settings throughout a project
Pro Tip
For the most natural sound, keep adjustments within 20% of the default (0.8-1.2 range). Larger changes can affect audio quality.