Frequently asked questions
What is the endpoint URL for the API?
The synthesis endpoint is POST https://api.play77qq.com/v1/audio/speech. You send a JSON body containing your text, voice selection, and format preferences to this URL to receive the generated audio file directly in response.
How do I change the base_url for the OpenAI SDK?
Update your OpenAI SDK configuration by setting the base_url to https://api.play77qq.com/v1. This allows you to use the official SDKs seamlessly with our API key, ensuring compatibility with the standard request shape.
Which models are available for synthesis?
Two models are available: tts-1 and tts-1-hd. Both utilize the same engine and pricing structure. You can choose either model in your request without any difference in cost or voice quality, as they are functionally identical.
What is the maximum character limit per request?
Each request supports up to 4096 characters of input text. If your content exceeds this limit, you must split the text into smaller chunks, synthesize each part individually, and then join the resulting audio files together.
How do I specify the voice in the request?
Include the voice parameter in your JSON body with one of the eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. These voices cover various tones suitable for children's stories and interactive games.
Can I adjust the speaking speed of the audio?
Yes, you can adjust the speed using the speed parameter, which accepts values between 0.25 and 4.0. This allows you to fine-tune the narration pace to suit the rhythm of your children's stories or game dialogue.
What languages are supported in the API?
The API supports 23 languages, including English, Spanish, French, German, Japanese, and Chinese. Any voice can speak any supported language. If you omit the language field, it is guessed from the script (Latin text defaults to English).
How do I handle rate limits in my application?
You are limited to 60 requests per minute per key. Before your first top-up, this limit is 10 requests per minute. Monitor your usage and implement retry logic with exponential backoff to handle temporary queues during high load.
What happens if I exceed the request limit?
Requests are processed sequentially, so exceeding the limit may cause your request to wait in a queue. Ensure your application handles potential delays gracefully, as long texts may take time to generate due to the real-time processing speed.
Are failed requests charged to my balance?
No, failed requests are free. If synthesis fails, the charge is returned in full to your balance. This ensures you only pay for successfully generated audio files, protecting your budget during development and testing phases.
How do I split long texts for synthesis?
Split your text into parts of up to 4096 characters. Synthesize each part individually using the API, then join the resulting audio files. This approach ensures consistent quality and allows you to manage character limits effectively.
What audio formats are supported?
You can choose from mp3, wav, opus, flac, and pcm formats. Select the response_format parameter in your request to receive the audio in your preferred format, suitable for various game engines and interactive story platforms.
Is the API key single-use or can it be regenerated?
You have one active key per account, but you can issue a new key at any time. When you generate a new key, the old one stops working immediately, allowing you to rotate keys securely without downtime.
How do I authenticate my requests?
Include your API key in the Authorization header as a Bearer token: Authorization: Bearer tts-... . This key is generated when you sign up and is required for all API requests to verify your account and usage.
First request
curl
curl https://api.play77qq.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.play77qq.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.play77qq.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 |
Get Your API Key
Start by visiting the /get-api-key/ page on play77qq.com. You can sign up using your Google account for an instant $0.50 trial credit, valid for 7 days, or create an account with an email and password. This account is specific to this site and gives you access to your dashboard.
Once registered, your dashboard displays your unique API key, current balance, and usage statistics. You can generate a new key at any time, which immediately invalidates the previous one, ensuring your credentials remain secure as you build your children's game or interactive story.
Sign Up on Site
Navigate to the registration page to create your account. Use Google for quick access with trial credit, or email/password for standard access. This account is tied specifically to play77qq.com.
Generate Key
Your dashboard provides a single active API key starting with 'tts-'. You can issue a new key at any time; the old one stops immediately. Use this key in your Authorization header for all API requests.
Secure Your Key
Treat your API key like a password. It grants access to your billing and usage. Since each account has one active key, rotating it regularly is a simple way to maintain security without complex infrastructure.
First Request with cURL
Generate audio by sending a POST request to the speech endpoint. Use your API key in the Authorization header and provide the text, voice, and model in the JSON body.
Basic Synthesis Command
Use this cURL command to convert text into speech. Replace YOUR_API_KEY with your actual key and adjust the input text as needed.
- Endpoint: https://api.play77qq.com/v1/audio/speech
- Method: POST
- Format: JSON
Headers and Body
Include the Authorization header with your Bearer token. The body must contain the model (tts-1 or tts-1-hd), input text, and voice preset.
- Authorization: Bearer YOUR_API_KEY
- Content-Type: application/json
- Body: {model, input, voice}
Response Format
The API returns the audio file directly in the response body. Supported formats include mp3, wav, opus, flac, and pcm. Failed requests incur no charge.
OpenAI SDK Integration
The OpenAI SDKs already know how to call our speech endpoint. You only need to redirect the client to our API base URL instead of OpenAI’s servers. This lets you use the same familiar code you wrote for other services.
Our API accepts the exact same JSON structure for speech synthesis. By swapping the base URL, you can generate audio files using your preferred language SDK without rewriting your integration logic.
Change base_url
Point your SDK client to https://api.play77qq.com/v1 instead of the default OpenAI endpoint. This single change routes all requests to our infrastructure while preserving the standard request format.
Ensure you update your authentication header to use your tts-... key. The SDK will handle the rest of the communication seamlessly.
- Base URL: https://api.play77qq.com/v1
- Auth header: Authorization: Bearer tts-<your-key>
- No code changes needed for request bodies
Use Official SDK
Leverage the official OpenAI Python, Node.js, or other language SDKs. They handle retries and serialization automatically.
This approach is ideal for indie developers who want to keep their codebase clean and maintainable without building custom HTTP clients.
The SDK ensures consistent behavior across different environments, making deployment predictable for your children’s game or story app.
- Works with Python, Node.js, and other official SDKs
- Handles JSON serialization automatically
- Supports standard retry logic
Same Request Shape
Send a JSON body with model, input, voice, and response_format. The structure matches the OpenAI speech endpoint exactly.
You can specify speed, language, and model variants (tts-1 or tts-1-hd) just as you would with OpenAI. Our API processes these fields identically.
This compatibility means you can switch between providers or use multiple TTS services in parallel without changing your core logic.
- Fields: model, input, voice, response_format
- Optional: speed, language
- Supports tts-1 and tts-1-hd
Supported Voices and Models
LumiTales uses two models, tts-1 and tts-1-hd, which share the same engine and pricing. You can choose either without cost difference, as both support all eight voice presets and 23 languages. This consistency ensures your children’s game narration remains uniform regardless of the model chosen.
The API supports eight distinct voice presets designed for expressive storytelling. These voices are based on licensed recordings from LibriTTS-R and LibriVox, providing clear, licensable audio for interactive stories. Each generated file includes an inaudible watermark to identify synthetic speech.
tts-1 and tts-1-hd
Both models offer identical voice capabilities and pricing at $0.01 per 1,000 characters. The choice between them affects no functional aspect of your integration, allowing you to switch freely based on preference or future engine updates.
8 Voice Presets
Select from four female and four male voices, each with a distinct character suitable for game narration. Voices include aria, nova, luna, sage, felix, milo, atlas, and orion. Any voice can speak any of the 23 supported languages, including English, Spanish, and Japanese.
- aria: warm, clear narrator
- nova: bright, upbeat
- luna: soft, storytelling
- sage: calm, instructional
- felix: energetic, promo
- milo: friendly, conversational
- atlas: neutral, news
- orion: deep, documentary
Voice Selection
Pass the desired voice name in the voice field of your JSON request body. The API automatically detects the language from the text script, but you should explicitly set the language parameter for non-English Latin text to ensure accurate synthesis.
Audio Formats and Speed
For indie developers crafting children's games, choosing the right audio format balances quality and performance. The API supports MP3, WAV, OPUS, FLAC, and PCM, allowing you to optimize file sizes for interactive stories without sacrificing clarity.
MP3, WAV, OPUS, FLAC, PCM
Select formats based on your app's needs. MP3 offers efficient compression, while WAV and FLAC provide lossless quality for high-fidelity narration. Use PCM for raw data processing or OPUS for low-bandwidth environments.
Speed Control 0.25–4.0
Adjust the speed parameter between 0.25 and 4.0 to match the pacing of your narrative. Slower speeds suit bedtime stories, while faster rates work well for quick game instructions. This flexibility ensures consistent voice tone across different scenarios.
Format Selection
Pass your preferred format via the response_format field in the JSON body. The API returns the audio file directly in the specified format, ensuring seamless integration into your existing audio pipelines without additional conversion steps.

Rate Limits and Quotas
The API enforces a strict rate limit of 60 requests per minute per active key. This ensures fair usage for indie developers integrating narration into children’s games and interactive stories without overloading the service.
60 Requests per Minute
Each account key allows up to 60 synthesis requests every minute. This limit applies uniformly regardless of text length, making it predictable for batch processing short phrases or long dialogues.
10 Requests Before Top-Up
New accounts start with a reduced limit of 10 requests per minute. This applies until you add your first top-up. Once credited via USDT (TRC-20), the limit increases to the full 60 requests per minute.
Queue Processing
Requests are processed sequentially. Under heavy load, additional requests may wait in a queue before synthesis begins. Expect slight delays during peak times, but all requests are completed in order.
Handling Long Texts
Children's stories often exceed the 4096-character limit per request. Your client must split the input text into manageable chunks, ensuring no chunk exceeds this limit. This prevents truncation and ensures every part of the narrative is synthesized.
Split into 4096 Chunks
Divide your input string into segments of up to 4096 characters. Each segment becomes a separate API call. Split the input text into segments of up to 4096 characters. Join the resulting audio files to create a continuous narrative.
- Maximum 4096 characters per request
- Count spaces and punctuation
- Send sequential requests
Join Audio Files
Receive each audio file sequentially. Concatenate the resulting audio files in the exact order of the text chunks. This creates a continuous narrative track without gaps, suitable for interactive stories or audiobook-style game narration.
- Maintain chunk order
- Concatenate audio files
- Ensure seamless transitions
Client-Side Logic
Implement logic to manage the queue of requests. Since requests are processed one after another, long texts may wait in line. Monitor rate limits (60 requests/minute) to avoid throttling during batch synthesis of your game's dialogue.
Error Handling and Status
Errors during synthesis are common but clearly defined. When a request fails, the API returns a standard JSON error object with a code and message, ensuring you can programmatically handle issues like invalid input or temporary service unavailability.
Understanding these status codes allows you to build robust retry mechanisms, preventing wasted characters and ensuring your children's game narration flows smoothly even under load or network instability.
Common Error Codes
The API returns standard HTTP status codes. A 400 indicates invalid JSON or missing fields like input. A 401 means your bearer token is invalid. A 429 signals you have exceeded the 60 requests per minute limit.
A 500 or 503 error indicates a temporary server issue. In these cases, the request was not processed, so no characters are consumed from your balance.
- 400: Bad Request – check your JSON structure and character limits.
- 401: Unauthorized – verify your API key is correct.
- 429: Too Many Requests – you have hit the 60 req/min limit.
- 500/503: Server Error – try again later; no charge incurred.
Retry Logic
Implement exponential backoff for 429 and 5xx errors. Since requests are processed sequentially, short waits often resolve queue congestion quickly.
For 400 errors, do not retry automatically; fix the input data first. Always check the error object in the response to determine if a retry is appropriate.
- Wait briefly before retrying on 429 errors.
- Use exponential backoff for server errors (5xx).
- Fix input data immediately for 400 errors.
Billing on Failure
Failed requests are free. If synthesis fails due to a server error or invalid input, the charge is returned in full or not applied.
You only pay for successfully generated audio files. This ensures you are not penalized for temporary glitches or your own input errors.
Check your balance regularly via the dashboard to track exact usage and verify that failed requests did not deduct credits.
- Failed requests incur no charge.
- Credits are returned if synthesis fails.
- Balance updates reflect only successful generations.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. We weave magic into every frame to captivate young imaginations with timeless wonder.
23 languages
Any voice speaks any of these languages.
