Frequently asked questions
How do I get an API key?
Sign up on /get-api-key/ using Google or email plus password. Google sign-ins receive a $0.50 free trial valid for seven days. Email accounts start without trial credit. Each account holds one active key, which you can view and manage directly on the dashboard page.
What is the base URL for requests?
Use https://api.ddeecasino.com/v1 as your base URL. Send POST requests to /audio/speech with a JSON body containing model, input, voice, and other parameters. You can also retrieve available voices and models via GET requests to /v1/voices and /v1/models respectively.
Which voices are available?
Eight presets are available: Aria, Nova, Luna, and Sage (female); Felix, Milo, Atlas, and Orion (male). All voices support 23 languages including English, Spanish, and German. Voices are based on licensed recordings from LibriTTS-R and LibriVox public-domain audiobook readings.
Can I change the voice speed?
Yes, adjust the speed parameter between 0.25 and 4.0. This allows you to slow down narration for clarity or speed up content for travel videos. The default speed is 1.0. Adjustments apply to all generated audio files without extra cost.
What happens if I hit the rate limit?
You are limited to 60 requests per minute per key, or 10 per minute before the first top-up. Requests process sequentially, so high load may cause queuing delays. Failed requests are free, and successful ones consume your balance.
Does the API support SSML?
No, the API does not support SSML. You cannot use phoneme dictionaries or custom pronunciation lexicons either. Voice control is limited to the eight preset voices and speed adjustments. For precise timing, split your text into smaller segments and manage playback in your application.
Is there a WebSocket endpoint?
No, there is no WebSocket endpoint for real-time partial audio. The API returns complete audio files via standard HTTP responses. You must wait for the full synthesis to complete before receiving the audio data, which may take several seconds for longer texts.
How do I handle audio streaming?
The API does not support streaming. You receive the entire audio file in the response body. For long texts, split the input into chunks of up to 4096 characters, generate each part, and join the resulting audio files in your application logic.
What is the character limit per request?
Each request accepts up to 4096 characters of input text. For longer content, such as full audioguides, split the text into multiple requests. Concatenate the resulting audio files to create a continuous narration track. Spaces and punctuation count toward the limit.
Can I upload a custom voice?
No, custom voice cloning is not offered. You cannot upload your own voice or design new voices. The eight preset voices are based on licensed recordings. All generated files include an inaudible watermark marking them as synthetic speech.
How are errors billed?
Failed requests are free. If synthesis fails, the charge is returned in full. You only pay for successful audio generations. The price is $10 per 1 million characters, or $0.01 per 1,000 characters.
Is the API compatible with OpenAI SDK?
Yes, the request shape matches the OpenAI speech endpoint. Use the official OpenAI SDK by changing the base URL to https://api.ddeecasino.com/v1. Authenticate using your Bearer token. This allows seamless integration with existing OpenAI client implementations without custom code.
What audio formats can I receive?
You can receive audio in mp3, wav, opus, flac, or pcm formats. Select the format via the response_format parameter. All formats support the full range of eight voices and 23 languages. The choice does not affect the character-based pricing.
How do I revoke my API key?
Issue a new API key from your account dashboard. The old key stops working immediately when the new one is active. You can generate a new key at any time. This effectively revokes the previous key without needing a separate revoke action.
First request
curl
curl https://api.ddeecasino.com/v1/audio/speech \
-H "Authorization: Bearer $TTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"tts-1","voice":"aria","input":"Hello from the API.","response_format":"mp3"}' \
--output hello.mp3Python (openai)
from openai import OpenAI
client = OpenAI(base_url="https://api.ddeecasino.com/v1", api_key="tts-...")
with client.audio.speech.with_streaming_response.create(
model="tts-1", voice="nova", input="Hello from Python.", response_format="mp3"
) as response:
response.stream_to_file("hello.mp3")Node.js (openai)
import OpenAI from "openai";
import fs from "node:fs";
const client = new OpenAI({ baseURL: "https://api.ddeecasino.com/v1", apiKey: process.env.TTS_API_KEY });
const res = await client.audio.speech.create({ model: "tts-1", voice: "milo", input: "Hello from Node.js." });
fs.writeFileSync("hello.mp3", Buffer.from(await res.arrayBuffer()));| voice | |
|---|---|
aria | female |
nova | female |
luna | female |
sage | female |
felix | male |
milo | male |
atlas | male |
orion | male |
| language | |
|---|---|
ar | العربية |
zh | 中文 |
da | Dansk |
nl | Nederlands |
en | English |
fi | Suomi |
fr | Français |
de | Deutsch |
el | Ελληνικά |
he | עברית |
hi | हिन्दी |
it | Italiano |
ja | 日本語 |
ko | 한국어 |
ms | Bahasa Melayu |
no | Norsk |
pl | Polski |
pt | Português |
ru | Русский |
es | Español |
sw | Kiswahili |
sv | Svenska |
tr | Türkçe |
Authentication and Keys
To start using the AudioPath TTS API, visit the /get-api-key/ page and sign in with Google or create an account with your email and password. Accounts are specific to this site, so you will receive a unique API key tied to your balance and usage history.
Generating your API key
Once signed in, your dashboard displays your active API key, current balance, and usage statistics. New accounts signed in via Google receive a $0.50 trial credit valid for 7 days, while email-based accounts start without trial credit.
Authorization header format
Include your key in every request using the standard Bearer token format: Authorization: Bearer tts-.... This key authenticates your requests to the API endpoint and determines your rate limits and billing charges.
Revoking and replacing keys
You can issue a new API key at any time from your dashboard. When a new key is generated, the previous one becomes invalid immediately, ensuring you can quickly secure your account if needed.
Speech Synthesis Endpoint
To generate audio, send a POST request to https://api.ddeecasino.com/v1/audio/speech. The endpoint accepts a JSON body containing your input text, selected voice, and desired output format. This endpoint is the core mechanism for converting your tourism script into a listenable file.
POST /v1/audio/speech
Send your request to the specified endpoint using the tts-1 or tts-1-hd model. The request must include an Authorization: Bearer header with your API key. Text input is limited to 4096 characters per call, requiring text splitting for longer audioguide scripts.
JSON body structure
The request body requires the input text, voice preset (e.g., 'aria', 'atlas'), and response_format. You may optionally specify language (ISO code) to override automatic detection, or speed (0.25–4.0) to adjust narration pace for museum exhibits or travel videos.
- Required:
model,input,voice,response_format - Optional:
language,speed - Max input length: 4096 characters
Response audio format
The API returns the generated audio file directly in the response body, matching your requested format (mp3, wav, opus, flac, or pcm). Failed requests incur no charge, ensuring you only pay for successfully synthesized audio segments suitable for your digital products.
Available Voices
AudioPath provides eight distinct voice presets derived from licensed LibriTTS-R recordings, ensuring clear and natural narration for tourism content. Each voice is engineered for specific narrative tones, allowing product teams to match the audio to their brand identity without the need for custom voice cloning.
All voices support all 23 listed languages. For non-English Latin-script text, explicitly setting the language parameter is recommended to avoid default English detection. Every generated file includes an inaudible watermark identifying it as synthetic speech.
Female voices: Aria, Nova, Luna, Sage
Aria offers a warm, clear narrator tone ideal for standard audioguides. Nova provides a bright, upbeat energy suitable for promotional travel videos. Luna delivers a soft, storytelling voice perfect for historical narratives. Sage presents a calm, instructional tone well-suited for museum exhibit instructions.
- Aria: Warm, clear narrator
- Nova: Bright, upbeat
- Luna: Soft, storytelling
- Sage: Calm, instructional
Male voices: Felix, Milo, Atlas, Orion
Felix brings an energetic, promo-ready voice for dynamic content. Milo offers a friendly, conversational tone for casual guides. Atlas provides a neutral, news-like delivery for factual presentations. Orion features a deep, documentary voice for immersive historical or cultural deep-dives.
These presets cover the spectrum from high-energy marketing to authoritative education, allowing teams to select voices that align with their specific tourism or museum product goals.
- Felix: Energetic, promo
- Milo: Friendly, conversational
- Atlas: Neutral, news
- Orion: Deep, documentary
Voice characteristics for tourism
The voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and LibriVox public-domain audiobook readings. This foundation ensures consistent quality across all generated audio files. The voices are designed to handle long texts efficiently, processing roughly 25 characters per second, which aligns with real-time narration needs for audio guides.
Using these presets avoids the cost and complexity of custom voice design while maintaining high fidelity. Teams can mix and match voices across different sections of a digital exhibit or travel video to create a varied listening experience.
Supported Audio Formats
Selecting the right audio format ensures your tourism content loads efficiently while maintaining clarity. The API supports multiple codecs to suit different delivery contexts, from web-based audioguides to high-fidelity museum installations.
MP3 for web delivery
MP3 is the standard choice for web-based applications and mobile audioguides. Its compressed nature allows for minimal bandwidth usage, making it ideal for visitors accessing content on varying network conditions.
WAV for high fidelity
WAV provides uncompressed, lossless audio quality. This format is best suited for local playback in museum kiosks or high-end audio installations where maximum fidelity is required without network constraints.
Opus and FLAC options
Opus offers efficient compression suitable for modern web standards, while FLAC provides lossless compression for archiving or further editing. Choose these formats based on your specific storage and playback requirements.
Language and Speed Parameters
Controlling language and speed ensures your audioguide matches the visitor's expectation and the site's pacing. The API supports 23 languages, from Arabic to Turkish, allowing precise localization for diverse museum audiences without needing separate voice models.
Speed adjustments let you optimize audio length or clarity. You can slow down narration for complex historical details or speed up general content to keep tours moving efficiently, all within a 0.25–4.0 range.
Setting the language code
Explicitly define the language using ISO codes in the request body. This is crucial for Latin-script texts that aren't English, ensuring the model doesn't guess incorrectly. For example, setting language: 'fr' ensures proper pronunciation for French visitors, even if the input text contains English loanwords.
The system supports Arabic, Chinese, Danish, Dutch, English, Finnish, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. Any voice can speak any of these languages, providing flexibility in voice selection regardless of the target language.
- Supported languages include Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish.
- Voices are versatile; Aria can narrate in Spanish, and Felix can deliver English promo content with equal clarity.
Adjusting playback speed
The speed parameter accepts values between 0.25 and 4.0. For detailed exhibit descriptions, a slower speed (e.g., 0.8) improves comprehension. For quick transit audio between exhibits, speeds up to 1.5 or 2.0 keep the experience engaging.
Adjusting speed does not alter the voice characteristics or pitch. It simply stretches or compresses the audio file. This allows you to maintain the specific tone of voices like Luna for storytelling or Atlas for news-style updates, regardless of the playback rate.
- Range: 0.25 to 4.0.
- Default speed is 1.0.
- Speed changes do not affect voice identity or pitch.
Default language detection
If the language field is omitted, the API guesses the language based on the script. Latin script defaults to English. Non-English Latin text (e.g., German or Portuguese) should explicitly set the language code to avoid mispronunciation.
This automatic detection works for most cases but is not perfect for mixed-language texts. For accurate tourism narration, always specify the language code to ensure consistent audio quality across your digital exhibits.
- Latin script defaults to English if not specified.
- Non-English Latin text requires explicit language codes.
- Explicit settings prevent mispronunciation in mixed-language contexts.

Rate Limits and Throttling
For tourism product teams managing audioguide content or travel video narration, understanding API rate limits is essential for maintaining smooth workflows. Our TTS API enforces a standard limit of 60 requests per minute per API key, ensuring consistent performance during bulk generation tasks.
60 requests per minute
Once your account is established and topped up, you can generate audio at a sustained rate of 60 requests per minute. This capacity is generally sufficient for most museum exhibit updates or regional travel guide production cycles, though requests are processed sequentially and may queue under load.
Initial limit of 10 requests
Accounts start with a lower throttle of 10 requests per minute before the first top-up. This initial restriction helps prevent resource exhaustion during peak hours before your usage pattern is established.
Handling 429 errors
If you exceed the limit, the API returns a 429 Too Many Requests status code. Your integration should implement exponential backoff to retry after a brief delay, ensuring that audioguide assets are generated efficiently without overwhelming the service.
- Implement retry logic with exponential backoff.
- Monitor 429 responses in your logging dashboard.
- Plan batch generations outside peak hours if possible.
Error Handling and Status Codes
When synthesis fails, the API returns a standard error JSON object with a status code and message. The system handles input issues gracefully, ensuring you know exactly why a request did not produce audio.
Common error responses
The API returns a JSON error object containing the error type, message, and specific request details. These responses help you quickly identify if the issue is related to authentication, rate limits, or input validation.
Billing failure refunds
If a synthesis failure occurs due to backend issues, the charge is returned in full. You are not billed for audio that is not successfully generated, ensuring accurate billing for your tourism projects.
Input validation errors
Requests exceeding the 4096 character limit or using invalid voice IDs return clear validation errors. These messages specify the exact field that caused the failure, allowing for quick correction before retrying.
Integration Examples
Generating audio for tourism guides requires simple HTTP requests. You can use standard tools like cURL, the OpenAI Python SDK, or basic requests libraries to send text and receive MP3 or WAV files directly.
Below are three practical examples for integrating the TTS API into your existing workflow. Each method handles authentication and JSON payload formatting similarly.
cURL command example
Use this command to generate speech directly from your terminal. Replace YOUR_API_KEY with your credential.
```bash curl -X POST "https://api.ddeecasino.com/v1/audio/speech" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Welcome to the museum.", "voice": "aria", "response_format": "mp3"}' \ -o output.mp3 ```
OpenAI SDK with base_url
Since the API mirrors the OpenAI speech endpoint, you can reuse existing SDK code by changing the base URL.
```python from openai import OpenAI client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.ddeecasino.com/v1") with client.audio.speech.create( model="tts-1", voice="nova", input="Enjoy your visit." ) as response: response.stream_to_file("tour.mp3") ```
Python request example
For simpler integrations, use the standard requests library to send JSON and save the binary response.
```python import requests url = "https://api.ddeecasino.com/v1/audio/speech" headers = {"Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json"} data = {"model": "tts-1", "voice": "sage", "input": "Exhibit B is closed.", "response_format": "wav"} response = requests.post(url, headers=headers, json=data) with open("audio.wav", "wb") as f: f.write(response.content) ```
Ensure your API key is stored securely. The request body supports up to 4096 characters per call.
- Replace YOUR_API_KEY with your actual token.
- Set response_format to mp3, wav, opus, or flac.
- Use model tts-1 or tts-1-hd for synthesis.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. If your museum targets visitors from these regions, you will need a separate solution or human recording for those specific audio tracks.
23 languages
Any voice speaks any of these languages.
