Frequently asked questions
What is the API endpoint URL?
The endpoint is POST https://api.aq777play.com/v1/audio/speech. It accepts a JSON body with parameters like model, input, voice, response_format, and speed. This structure mirrors the OpenAI speech endpoint, allowing you to send text and receive an audio file directly via standard HTTP requests.
How do I generate an API key?
Sign up on the /get-api-key/ page using Google or an email and password. The page displays your active API key, which you use for authentication. You can issue a new key at any time; the previous one stops immediately. Each account has one active key at a time.
Does the API support OpenAI SDKs?
Yes. The request shape matches the OpenAI speech endpoint. You can use official OpenAI SDKs by changing the base_url to https://api.aq777play.com/v1 and providing your site-specific key. This allows integration without needing a custom library or wrapper for standard HTTP calls.
What are the valid voice names?
The eight presets are aria, nova, luna, sage, felix, milo, atlas, and orion. Aria, nova, luna, and sage are female voices. Felix, milo, atlas, and orion are male voices. Each voice has a distinct tone, from warm narrators to deep documentary styles, suitable for various educational content types.
How do I specify a language?
Set the optional 'language' field to an ISO code. If omitted, the system guesses the language from the script, defaulting to English for Latin text. For non-English Latin-script text, explicitly set the language to ensure correct synthesis. Supported languages include English, Spanish, German, French, and others listed in the docs.
What is the maximum character limit?
Each request supports up to 4096 characters in the 'input' field. Spaces and punctuation count toward this limit. For longer texts, split the content into chunks of 4096 characters or less, generate audio for each part, and join the resulting audio files to create the final output.
Can I change the speaking speed?
Yes. Use the 'speed' parameter to adjust the rate between 0.25 and 4.0. The default speed is 1.0. Adjusting speed helps tailor the audio for different educational contexts, such as slower speech for language learners or faster narration for quick reviews. The engine handles speed changes without altering voice quality.
Which models are available?
The available models are 'tts-1' and 'tts-1-hd'. Both use the same engine and price. You can choose either model based on your preference, as there is no functional difference in output quality or cost. Both models support all eight voice presets and the full range of response formats.
How do I handle large texts?
Split your text into parts of up to 4096 characters. Send each part as a separate request to the endpoint. Receive the individual audio files and join them sequentially. This approach ensures reliable synthesis for long documents, books, or extensive lesson plans without hitting character limits or causing timeouts.
What happens on rate limit?
The limit is 60 requests per minute per key, or 10 per minute before the first top-up. Requests are processed sequentially, so under load, a request may wait in a queue. If you exceed the limit, subsequent requests will be delayed or rejected.
Is the response binary or JSON?
The response contains the audio file directly, not JSON. The format depends on your 'response_format' parameter: mp3, wav, opus, flac, or pcm. The audio data is returned in the response body. You can save this binary data directly to a file or process it in memory for playback.
Do I need to install a specific library?
No. You can use any HTTP client library or the official OpenAI SDK. The API uses standard HTTP POST requests with JSON bodies. No custom SDK or specific library is required. This flexibility allows integration into any programming environment that supports standard web requests, from Python scripts to browser-based applications.
Can I use custom voices?
No. The API provides eight fixed presets: aria, nova, luna, sage, felix, milo, atlas, and orion. There is no voice cloning or custom voice upload feature. You cannot design new voices or upload recordings. All generated audio uses these licensed voices based on LibriTTS-R (CC BY 4.0) and LibriVox public-domain sources.
How do I track my usage?
Log in to the /get-api-key/ page to view your balance, characters left, and usage history. The dashboard displays your balance, characters left, and usage history. Request metadata, including time, characters, and status, is kept for billing purposes. Failed requests do not incur charges and are reflected in your balance adjustments.
First request
curl
curl https://api.aq777play.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.aq777play.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.aq777play.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
Authentication uses a standard Bearer token sent in the Authorization header. Each account holds one active API key, identified by the prefix tts-. This key authorizes all requests to the speech endpoint and tracks your usage balance.
You can generate or rotate your key directly from the dashboard. Changing the key immediately invalidates the previous one, ensuring that only your current credential is valid for API access.
Bearer token format
Include the header Authorization: Bearer tts-<your_key> in every request. The key is a unique string issued to your account. Do not include the Bearer prefix in the key value itself, only in the header.
API key generation
Sign up via Google or email on the /get-api-key/ page. Your unique API key appears immediately in the dashboard alongside your balance and usage statistics. Copy this key to use in your client applications.
- Keys are per-site accounts; aq777play.com accounts are separate from other network sites.
- One key per account; no seat-based or multi-user keys.
Key rotation
You can issue a new key at any time from the dashboard. The old key stops working immediately upon generation of the new one. This allows seamless replacement without downtime if a key is exposed.
No manual deactivation is required; the system handles the transition atomically.
Speech Endpoint
The core synthesis endpoint accepts text and returns audio. Send a POST request to the specified endpoint with your JSON payload. The engine processes the input and returns the generated audio file directly in the response body.
This endpoint handles the actual text-to-speech conversion. You must include your authentication token and specify the desired model, voice, and language parameters to ensure correct synthesis behavior.
POST /v1/audio/speech
Send a POST request to this endpoint to generate audio. The API processes the text and returns the audio file directly in the response body.
Requests are processed sequentially. Under load, a request may wait in a queue before synthesis begins.
- Endpoint:
https://api.aq777play.com/v1/audio/speech - Method: POST
- Content-Type: application/json
JSON request body
The request body must be valid JSON. Include the model, input, voice, and optional response_format fields. Text is limited to 4096 characters per request.
Set the language code if the text is not English, as Latin script defaults to English. The speed parameter accepts values from 0.25 to 4.0.
model: "tts-1" or "tts-1-hd"input: string (max 4096 chars)voice: one of 8 presetsresponse_format: mp3, wav, opus, flac, or pcmspeed: 0.25–4.0language: optional ISO code
Response format
On success, the response body contains the raw audio data in the specified format. The content type matches the requested format (e.g., audio/mpeg).
Failed requests return an error JSON object with details about the issue, such as invalid input or rate limits, without charging your balance.
- Audio data in body
- Content-Type matches format
- Error JSON on failure
Request Parameters
Configure the synthesis engine and input constraints. The API accepts two model variants with identical pricing and performance characteristics.
Input text is limited to 4096 characters per request. For longer content, split the text and join the resulting audio files.
Model selection
Choose between "tts-1" and "tts-1-hd" using the model field. Both engines produce identical audio quality and carry the same price rate of $10 per 1 million characters. The choice does not affect processing speed or queue priority.
Input text limits
The input field accepts plain text up to 4096 characters. Spaces and punctuation count toward this limit. Requests exceeding this length will fail. To generate audio for longer texts, divide the content into chunks of 4096 characters or less and concatenate the output files.
- Maximum length: 4096 characters
- Characters include spaces and punctuation
- Split and join for longer texts
Voice and language
Select one of eight voice presets using the voice parameter. The language field is optional; if omitted, the system guesses the language from the script, defaulting to English for Latin text. For non-English Latin scripts, explicitly set the ISO code.
All voices support all 23 listed languages. If a language is not supported, synthesis will fail.
- 8 voice presets available
- Auto-detection defaults to English
- Set
languagefor non-English Latin text - Unsupported languages cause failure
Response Formats
The API returns binary audio data directly in the response body, with the format determined by your response_format parameter. Each file is a complete audio segment corresponding to the processed text input.
MP3 output
MP3 is the default format, offering a balance of quality and file size. It is suitable for most web-based players and mobile applications without requiring additional decoding libraries.
WAV output
WAV provides uncompressed, high-fidelity audio. Use this format when you need lossless quality for archival purposes or direct integration with audio editing software that prefers raw PCM data.
OPUS and FLAC
OPUS offers high compression efficiency, ideal for bandwidth-constrained environments. FLAC provides lossless compression, reducing file size without sacrificing audio quality.
OpenAI SDK Integration
Vocalia’s API mirrors the OpenAI speech structure, allowing developers to reuse existing client libraries with minimal configuration. By pointing the SDK’s base URL to our endpoint, you can integrate TTS capabilities into educational tools or accessibility readers without rewriting request logic.
Base URL configuration
Set your client’s base URL to https://api.aq777play.com/v1. This single change directs requests to the correct service while maintaining the standard POST /v1/audio/speech path. Ensure your Authorization header includes your Bearer token.
SDK compatibility
The official OpenAI SDKs work directly because the request shape is identical. You can continue using your preferred language client, simply updating the endpoint. This reduces integration time for teams already familiar with OpenAI’s patterns.
Code examples
Initialize your client with the new base URL and pass your model (tts-1 or tts-1-hd), voice, and input text. The SDK handles the JSON serialization and returns the audio file bytes for immediate playback or storage.

Curl Example
Use curl to verify your integration quickly. This example sends a simple request to the speech endpoint and saves the resulting audio file locally.
Adjust the voice and language parameters to match your specific use case before running the command.
Basic request command
Run the following command to generate speech. Replace YOUR_API_KEY with your actual token.
- curl -X POST https://api.aq777play.com/v1/audio/speech \
- -H "Authorization: Bearer YOUR_API_KEY" \
- -H "Content-Type: application/json" \
- -d '{"model": "tts-1", "input": "Hello world", "voice": "nova", "response_format": "mp3"}' \
- -o output.mp3
Header setup
The Authorization header requires the Bearer prefix followed by your key. The Content-Type must be application/json for the request body.
Response handling
The API returns the audio file directly. Use the -o flag to save it to disk. Check the HTTP status code to confirm success.
Error Handling
Error handling ensures your integration remains robust when the API encounters issues. Responses include standard HTTP status codes to indicate success, client errors, or server-side failures.
Common error codes
Use 401 for invalid or missing API keys, 400 for malformed JSON or unsupported parameters, and 500 for internal server errors. Check the response body for a descriptive message to debug quickly.
Rate limit errors
A 429 Too Many Requests error occurs when you exceed 60 requests per minute (or 10 per minute before the first top-up). Implement exponential backoff to retry after the limit resets.
Input validation
The API rejects inputs exceeding 4096 characters per request. Ensure your text fits within this limit, or split longer texts into smaller segments before sending. Invalid voice IDs or unsupported languages also trigger 400 errors.
Rate Limits
Vocalia enforces a strict rate limit of 60 requests per minute per API key. This ensures fair usage for all developers, particularly those building educational tools or accessibility readers that may batch process large volumes of text.
60 requests per minute
Each active API key is allowed a maximum of 60 requests per minute. New accounts start with a lower limit of 10 requests per minute until the first top-up is processed. Exceeding the limit returns a 429 error.
- Standard limit: 60 requests/minute
- New account limit: 10 requests/minute
- Limit resets every 60 seconds
Queue behavior
Requests exceeding the 60 RPM limit may be delayed or rejected. Under load, synthesis requests are processed sequentially, which can introduce latency for long texts. Short phrases typically complete within a few seconds.
Limits per key
Rate limits are applied per API key, not per account. If you use multiple keys, each key has its own independent limit. You can issue a new key at any time to reset limits, which stops the old key immediately.
- Limit applies per key
- Multiple keys have independent limits
- Key rotation resets limits instantly
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Mastering a new language unlocks global opportunities and deepens cultural connections for modern content creators.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- LibriTTS-R corpus (OpenSLR 141)
- LibriTTS-R paper (arXiv 2305.18802)
- OpenAI API reference: create speech
- Creative Commons Attribution 4.0
- Python documentation
- ISO 639 language codes
- MDN: Web Speech API
- LibriVox public-domain audiobooks
- openai-node on GitHub
- TRON developer hub: TRC-20
- W3C WAI: making audio and video accessible
