Frequently asked questions
How do I get an API key?
Visit /get-api-key/ to sign up using Google or email. Your API key is displayed on the dashboard. You can issue a new key at any time, which immediately invalidates the old one. One active key is allowed per account.
What is the base URL?
The API base URL is https://api.cx31993.info/v1. Use this endpoint for all requests. The speech endpoint is POST https://api.cx31993.info/v1/audio/speech. Other endpoints include GET /v1/voices and GET /v1/models.
Can I use the OpenAI SDK?
Yes. The request shape matches the OpenAI speech endpoint. Simply change the base_url to https://api.cx31993.info/v1 and use your VoiceEcho key. The official OpenAI SDKs work directly with this configuration.
What voices are available?
There are eight presets: aria, nova, luna, sage, felix, milo, atlas, and orion. Voices are based on licensed recordings from LibriTTS-R. Any voice can speak any of the 23 supported languages.
What audio formats are supported?
Supported response formats are mp3, wav, opus, flac, and pcm. You specify the format in the request body. Each generated file carries an inaudible watermark that marks it as synthetic speech.
What are the rate limits?
You are limited to 60 requests per minute per key. Before the first top-up, the limit is 10 requests per minute. Requests are processed sequentially, so load may cause queuing delays.
How do I handle errors?
Failed requests are free; the charge is returned in full. Use standard HTTP status codes to detect issues. Check your balance and character usage on the dashboard if errors persist.
How do I set a language?
Pass the optional ISO language code in the request. If unset, the system guesses from the script, defaulting to English for Latin text. Explicitly set it for non-English Latin-script text.
Is the API RESTful?
Yes. It uses standard HTTP methods. POST to /v1/audio/speech for generation. GET /v1/voices lists available voices, languages, formats, and prices. GET /v1/models lists available models like tts-1 and tts-1-hd.
What is the maximum text length?
The input text is limited to 4096 characters per request. For longer texts, split the input into parts of up to 4096 characters and join the resulting audio files.
Can I generate audio in batches?
The API processes requests one after another. You can send multiple requests, but they will queue under load. Each request generates one audio file. Split long texts manually for better control.
How do I split long texts?
Divide your text into segments of up to 4096 characters. Send each segment as a separate POST request to /v1/audio/speech. Concatenate the returned audio files to create the final output.
What is the speed range?
The speed parameter accepts values from 0.25 to 4.0. Adjust this to control the playback rate of the generated speech.
Do I need to install dependencies?
No specific dependency is required. You can use the official OpenAI SDK by changing the base_url, or use plain HTTP requests. Any HTTP client capable of sending JSON works.
First request
curl
curl https://api.cx31993.info/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.cx31993.info/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.cx31993.info/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 |
Get Your API Key
Accessing the VoiceEcho API begins with creating an account on our /get-api-key/ page. You can authenticate instantly using your Google account or opt for a standard email and password registration. This step provisions your unique API key, enabling you to start generating audio files for your assistive devices.
Once registered, you will receive a $0.50 trial credit (valid for 7 days) if you sign in with Google, allowing you to test the service with approximately 50,000 characters. Email-based accounts start without trial credit. Your key is displayed on your dashboard for immediate use.
Sign Up with Google
Click the Google sign-in button on the /get-api-key/ page. This method grants you an immediate $0.50 trial credit, valid for 7 days. This credit covers about 50,000 characters, enough to test voice generation for your prototype hardware.
The process is instant. Upon authentication, your account is created, and your API key is ready for use.
- Instant account creation
- $0.50 trial credit included
- Valid for 7 days
- Approx. 50,000 characters
Email Registration Option
Alternatively, you can register using an email address and password. This option does not include the initial trial credit, so you will need to top up before making your first request. This method is useful for teams that prefer traditional credential management.
Accounts created via email start with a zero balance. You can add funds via USDT (TRC-20) directly from your dashboard once you are ready to generate production-quality audio for your devices.
Key Management Page
Your dashboard displays your active API key, current balance, and usage statistics. You can regenerate your key at any time; the old key stops working immediately, ensuring secure access to your text-to-speech service.
The page also provides a ready-to-use cURL example. This allows you to verify your integration quickly before embedding the API calls into your device firmware or software.
First Request with Curl
Generate audio files directly from your terminal. Send a POST request to the speech endpoint with your text and voice preference. The API returns the audio file ready for immediate playback or integration into your assistive device firmware.
This approach works for any of the 23 supported languages, including Arabic, Chinese, and Swahili. You can adjust the speed between 0.25x and 4.0x to suit elderly users who may need slower speech patterns.
Basic JSON Body
Send a JSON object containing the model, input, voice, and response_format. The input field accepts up to 4096 characters. Spaces and punctuation count toward this limit.
For example, use tts-1 for standard quality or tts-1-hd for higher fidelity. The voice parameter accepts values like nova, sage, or atlas.
model: "tts-1" or "tts-1-hd"- `input": "Your text here" (max 4096 chars)
- `voice": e.g., "sage", "nova", "atlas"
- `response_format": "mp3", "wav", "opus", "flac", or "pcm"
speed: 0.25 to 4.0
Authentication Header
Include your API key in the Authorization header. Use the format Bearer tts-your-key-here. Ensure you copy the key from your dashboard at /get-api-key/.
Each account has one active key. Issuing a new key immediately invalidates the old one, so store it securely.
Authorization: Bearer tts-...
Response Format
On success, the API returns the audio file directly in the response body with the appropriate content type (e.g., audio/mpeg).
If the request fails, you will receive a JSON error object with a code and message. Failed requests are free, so you can retry without charge.
OpenAI SDK Integration
VoiceEcho uses the same JSON request shape as the OpenAI Speech endpoint, meaning you can reuse the official OpenAI SDKs with a simple configuration change. This allows you to use the official OpenAI SDKs without a custom client library or wrapper code.
By pointing your SDK to our API base URL, you gain access to all VoiceEcho features—like voice selection and audio formats—using the familiar OpenAI parameter structure.
Change Base URL
Update your SDK’s base_url to https://api.cx31993.info/v1. This directs all requests to our TTS engine while keeping your existing code structure intact.
Ensure you use the correct API key from your VoiceEcho dashboard. The key format remains tts-... as documented in your account settings.
- Base URL: https://api.cx31993.info/v1
- Auth Header: Authorization: Bearer tts-...
Use Official SDK
Install the standard OpenAI Python or JavaScript SDK. No special packages are required; the standard client handles our JSON body correctly.
This approach works for both quick prototypes and production devices. You can generate audio for elderly users using the same code you use for other TTS tasks.
Compatible Parameters
Supports model, input, voice, response_format, speed, and language. These map directly to VoiceEcho’s capabilities.
Use tts-1 or tts-1-hd for the model. Set voice to one of the 8 presets like 'aria' or 'atlas' to match your device’s tone.
Speed ranges from 0.25 to 4.0. Adjust this for elderly listeners who may need slower, clearer speech.
- model: tts-1 or tts-1-hd
- voice: aria, nova, luna, sage, felix, milo, atlas, orion
- speed: 0.25–4.0
- response_format: mp3, wav, opus, flac, pcm
Supported Voices
VoiceEcho provides eight distinct voice presets designed for clarity and natural intonation, ensuring your assistive devices sound professional and engaging. Each voice is generated from licensed recordings, offering a reliable auditory experience for elderly users and those with hearing or cognitive impairments.
Female Voices
Aria offers a warm, clear narrator style ideal for guided instructions. Nova provides a bright, upbeat tone for energetic prompts, while Luna’s soft storytelling voice suits ambient cues. Sage delivers a calm, instructional tone perfect for step-by-step health reminders.
- Aria: Warm, clear narrator
- Nova: Bright, upbeat
- Luna: Soft, storytelling
- Sage: Calm, instructional
Male Voices
Felix brings an energetic, promo-style voice suitable for active alerts. Milo offers a friendly, conversational tone for daily check-ins. Atlas provides a neutral, news-like delivery for factual updates, and Orion’s deep, documentary voice adds gravity to important notifications.
- Felix: Energetic, promo
- Milo: Friendly, conversational
- Atlas: Neutral, news
- Orion: Deep, documentary
Voice Selection Tips
Choose voices based on context clarity rather than personality alone. For critical health alerts, use Atlas or Sage for neutral clarity. For engagement, Nova or Milo work well. Any voice can speak any of the 23 supported languages; set the language code explicitly for non-English Latin scripts to ensure accurate pronunciation.
- Set
languageparameter for non-English Latin text - Use neutral voices for critical alerts
- Match tone to user engagement goals
Audio Formats
Select the audio format that best fits your device’s playback capabilities. VoiceEcho supports MP3, WAV, OPUS, FLAC, and PCM to ensure compatibility across various hardware environments.
MP3 for Web
MP3 is the standard for web-based playback and most modern assistive devices. It offers a good balance between file size and quality, making it suitable for playback over Wi-Fi or cellular networks.
- Compatible with virtually all HTML5 audio players
- Small file sizes reduce data usage for users
- Ideal for on-demand speech in apps
WAV for Quality
WAV provides uncompressed, high-fidelity audio. This format is perfect for local storage on devices where bandwidth is less of a concern but audio clarity is critical for elderly users with hearing impairments.
- Lossless quality ensures clear speech
- No compression artifacts
- Best for offline or local playback
OPUS for Efficiency
OPUS delivers superior audio quality at lower bitrates. Use this format when network conditions are unstable or when you need to minimize data consumption while maintaining speech intelligibility.
- High efficiency for low-bandwidth connections
- Optimized for voice speech
- Reduces data costs for mobile devices

Rate Limits
VoiceEcho enforces a strict rate limit of 60 requests per minute per API key. This cap ensures stable generation performance, preventing sudden spikes from overwhelming the synthesis engine. Since requests are processed sequentially, high-volume batches may experience slight delays during peak usage.
60 Requests Per Minute
Each active API key is limited to 60 requests per minute. This limit applies to all synthesis endpoints, including standard and high-definition models. Monitor your usage dashboard to stay within these bounds and avoid temporary throttling.
10 Requests Before Top-Up
New accounts without a top-up start with a reduced limit of 10 requests per minute. This lower threshold helps prevent accidental overuse during testing phases. Once you add USDT via TRC-20, the limit automatically increases to the full 60 requests per minute.
Queue Behavior
Requests are processed one after another, meaning your API call may wait in a queue if the engine is busy. Longer texts take more time to synthesize, so a burst of requests can increase latency. Plan your generation cycles accordingly to ensure timely audio delivery for users.
Error Handling
Synthesis failures are free. If the API cannot generate audio, your balance is not charged. You only pay for successful audio files.
Use this reliability to test your voice settings without worrying about costs during development.
Failed Requests Free
Failed requests incur zero charge. If synthesis fails, the charge is returned in full. This applies to network errors or engine timeouts.
Common Error Codes
401 Unauthorized: Check your Bearer token. Ensure it starts with tts-. Regenerate via the dashboard if lost.
429 Too Many Requests: You hit the 60 requests/minute limit. Wait and retry.
400 Bad Request: Invalid voice name or text length over 4096 characters. Split long texts before sending.
- 401: Invalid or missing API key
- 429: Rate limit exceeded (60 req/min)
- 400: Invalid parameters or input length
Retry Logic
Implement exponential backoff for 429 errors. Wait 1 second, then 2, then 4 seconds before retrying.
For 500 errors, retry once after 2 seconds. If the issue persists, check your input text for special characters that might cause engine errors.
- Retry 429 errors with backoff
- Retry 500 errors once after 2s
- Check input text for encoding issues
Language Support
Language detection works automatically based on the script, with Latin text defaulting to English. However, for non-English Latin-script text, you should explicitly set the language field to ensure accurate pronunciation and intonation for elderly users who may rely on specific dialects.
Auto-Detection
The API guesses the language from the input characters. If you send Latin script without specifying a language, it defaults to English. This works well for standard English but may misinterpret mixed scripts or less common Latin-based languages.
Manual Language Set
To ensure clarity for assistive devices, set the language parameter in your JSON body. This overrides auto-detection and guarantees the voice speaks in the correct language, reducing confusion for users with cognitive impairments.
Supported ISO Codes
We support 23 languages, including English, Spanish, German, French, Japanese, and Arabic. Any voice can speak any of these languages. Unsupported languages include Vietnamese, Thai, and Ukrainian.
- ar, zh, da, nl, en, fi, fr, de, el, he, hi, it, ja, ko, ms, no, pl, pt, ru, es, sw, sv, tr
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Reliable playback is critical for users with hearing aids or cognitive impairments.
23 languages
Any voice speaks any of these languages.
