Frequently asked questions
How do I get my API key?
Sign up on our /get-api-key/ page using Google or an email and password. Your unique key appears immediately on the dashboard, where you can also view your balance, usage, and a ready-to-use curl example. You can issue a new key at any time, which instantly invalidates the previous one.
What is the base URL for the API?
The API base URL is https://api.playbd777.com/v1. You send POST requests to https://api.playbd777.com/v1/audio/speech for speech generation. Other endpoints like /v1/voices and /v1/models are also available under this base path for retrieving voice details and model information.
Can I use the OpenAI SDK with this API?
Yes. The request shape matches the OpenAI speech endpoint exactly. You can use the official OpenAI SDKs by simply changing the base_url to https://api.playbd777.com/v1 and providing your SpotVoice key. This allows you to integrate our TTS engine directly into your existing OpenAI-based workflows.
What is the maximum character limit per request?
Each request supports up to 4096 characters of input text. Spaces and punctuation count toward this limit. For longer scripts, you should split the text into chunks of 4096 characters or less and join the resulting audio files to create a complete broadcast-ready spot.
How do I specify the language?
Include the optional 'language' field with an ISO code in your JSON body. If omitted, the system guesses the language from the script, defaulting to English for Latin text. For non-English Latin-script content, always set the language explicitly to ensure accurate synthesis.
What are the supported response formats?
You can choose from mp3, wav, opus, flac, or pcm via the 'response_format' field. These formats cover most broadcasting and digital distribution needs. Select the format that best fits your production pipeline, keeping in mind that file size and quality vary by format.
What happens if I exceed the rate limit?
The limit is 60 requests per minute per key. If you exceed this, requests may queue or fail. New accounts start with a 10 requests per minute limit until the first top-up. Failed requests are free, but exceeding limits may delay your audio generation.
Can I change the voice after sending a request?
No. The voice is specified in the request body before synthesis begins. Once the request is sent, the specified voice (e.g., aria, nova, atlas) is locked for that generation. To use a different voice, you must send a new request with the desired voice parameter.
How do I handle long texts?
Split your text into parts of up to 4096 characters. Send each part as a separate request and then join the resulting audio files. This ensures you stay within the character limit per request while maintaining high-quality synthesis for your entire script or commercial.
Is the API synchronous or asynchronous?
The API is synchronous. You send a POST request and wait for the audio file in the response. Requests are processed one after another, so under load, your request may wait in a queue. Typical speed is roughly real-time for long texts.
What is the 'tts-1-hd' model?
The 'tts-1-hd' model uses the same engine and pricing as 'tts-1'. It is one of two available model options for generating speech. Both models offer the same voice presets and features, allowing you to choose based on your specific quality or compatibility preferences.
How do I authenticate my requests?
Include your API key in the 'Authorization' header as a Bearer token: 'Authorization: Bearer tts-...'. Each account has one active key. You can generate a new key on your dashboard, which instantly invalidates the old one for security.
What is the speed range?
You can adjust the speech speed between 0.25 and 4.0 using the 'speed' parameter. This allows you to fine-tune the pacing of your ads or radio spots. Faster speeds reduce generation time, while slower speeds may enhance clarity for complex scripts.
Can I use the API for batch processing?
Yes, you can send multiple requests to generate audio for different lines or spots. However, requests are processed sequentially, so under load, they may queue. For large batches, monitor your rate limit of 60 requests per minute to ensure efficient processing.
First request
curl
curl https://api.playbd777.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.playbd777.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.playbd777.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
To generate audio, include your unique API key in the Authorization header of every request. This key is the sole credential for your SpotVoice account on playbd777.com. You can find it on the /get-api-key/ dashboard after signing in with Google or your email.
API Key
Your API key identifies your account and tracks usage against your balance. It appears as a string starting with "tts-". Keep this value secure, as anyone with the key can generate audio charges against your account.
Bearer Token
Use the standard HTTP Bearer authentication scheme. Include the header "Authorization: Bearer tts-<your-key>" in all POST requests to /v1/audio/speech. This ensures your requests are authenticated and billed correctly to your SpotVoice account.
Key Management
You have one active key per account. You can issue a new key at any time via the dashboard. When you generate a new key, the old one stops working immediately, ensuring tight control over your ad agency's production pipeline.
- One active key per account
- Revoke old keys instantly
- Manage keys on /get-api-key/
Endpoint Overview
SpotVoice provides three core REST endpoints to integrate text-to-speech into your ad production workflow. The Speech endpoint handles audio generation, while the Voices and Models endpoints expose available configurations for your scripts.
Speech Endpoint
Send text to POST https://api.playbd777.com/v1/audio/speech to receive an audio file. This endpoint accepts JSON bodies similar to the OpenAI speech endpoint, allowing you to use official SDKs by updating the base URL.
- Endpoint:
POST /v1/audio/speech - Returns audio files in MP3, WAV, OPUS, FLAC, or PCM formats.
Voices Endpoint
Use GET https://api.playbd777.com/v1/voices to retrieve the list of 8 voice presets, supported languages, and formats. This helps you select the right tone for your commercial before generating audio.
- Endpoint:
GET /v1/voices - Returns available voices, languages, and supported audio formats.
Models Endpoint
Query GET https://api.playbd777.com/v1/models to confirm the available model identifiers. Both tts-1 and tts-1-hd map to the same engine and price, simplifying your integration logic.
- Endpoint:
GET /v1/models - Returns available model IDs for your requests.
Request Parameters
Each request must specify the model, input text, and voice. The API accepts plain text and returns synthesized audio, allowing you to integrate voice generation directly into your creative workflow for commercials and radio spots.
Model Selection
Choose between "tts-1" for standard quality or "tts-1-hd" for higher fidelity. Both use the same engine and price, so select based on your final delivery requirements.
Input Text
Send your script in the input field, limited to 4096 characters per request. Longer texts should be split into parts of up to 4096 characters and the resulting audio files joined.
Voice Choice
Select one of eight presets, such as "aria" for warm narration or "atlas" for neutral news delivery. Each voice supports all 23 languages, but you may optionally specify the language code to ensure correct pronunciation.
- 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
Response Formats
SpotVoice returns audio files in the format you specify, allowing you to choose the best balance between file size and quality for your ad campaigns. You can select from MP3, WAV, OPUS, FLAC, or PCM to suit your production pipeline.
MP3 Output
MP3 is the default and most versatile format for web playback and most audio editors. It offers a compact file size while maintaining high audio quality, making it ideal for quick review and integration into digital advertising workflows.
- Default response format
- Optimal for web playback
- Small file size for fast transfer
WAV Output
Choose WAV for uncompressed, broadcast-ready audio that preserves every detail of the generated speech. This format is perfect for final master files used in radio spots or professional editing software where no compression artifacts are acceptable.
- Uncompressed audio quality
- Ideal for broadcast masters
- No loss of fidelity
OPUS and FLAC
OPUS provides efficient compression, while FLAC offers lossless compression. Select these formats based on your specific storage or transmission needs.
- OPUS: efficient compression
- FLAC: lossless compression
- Options for specialized workflows
Rate Limits
Rate limits protect the stability of our synthesis engine during high-volume campaign launches. Your API key allows 60 requests per minute under normal conditions, ensuring consistent throughput for your ad scripts.
60 Requests Per Minute
Once your account is established, you can process up to 60 synthesis requests per minute. This limit applies per API key, so manage your keys carefully if you are running multiple parallel generation pipelines for different voiceovers.
- Limit: 60 requests/minute
- Applies per active key
10 Requests Initial
New accounts start with a reduced limit of 10 requests per minute. This ensures fair usage during the initial trial phase. You can increase this limit by topping up your balance with USDT (TRC-20), which is processed automatically.
- Initial limit: 10 requests/minute
- Increase via USDT top-up
Queue Behavior
Requests are processed sequentially. If you exceed the limit, additional requests wait in a queue rather than failing immediately. Long texts may take longer to synthesize, so plan your API calls to avoid bottlenecks during peak ad production hours.
- Sequential processing
- Requests queue if over limit

Error Handling
API errors are designed to be clear and actionable. Most issues stem from input validation or temporary network hiccups, ensuring you can quickly resolve problems without losing your billing credit.
When a request fails, the charge is returned in full. This includes cases where synthesis fails due to server issues, so you never pay for incomplete audio.
Common Errors
The most frequent error is exceeding the 4096-character limit for the input field. Ensure your script splits long texts into smaller chunks before sending them to the endpoint.
Invalid voice names or unsupported languages will also trigger an error. Always verify your voice ID against the /v1/voices endpoint before generating audio.
400 Bad Request: Invalid JSON, missing fields, or text exceeding 4096 characters.401 Unauthorized: Invalid or expired API key. Check yourAuthorizationheader.429 Too Many Requests: You have exceeded the 60 requests per minute limit.500/503 Server Errors: Temporary service issues; the charge is refunded if synthesis fails.
Retry Logic
Implement exponential backoff for transient errors like 503 or 429. Start with a short delay and increase it progressively to avoid overwhelming the server during high load.
Since requests are processed sequentially, a 429 error might indicate you are approaching your limit. Reduce your request frequency or split your text into smaller batches.
- Retry on 429 and 5xx errors with exponential backoff.
- Do not retry on 400 errors as they indicate a client-side mistake.
- Check your balance and usage stats via the dashboard if retries persist.
Status Codes
Standard HTTP status codes are used to indicate the result of your request. A 200 OK response means the audio file is ready in the response body.
Non-200 responses include an error object with a message describing the issue. Use this message to adjust your parameters or check your key validity.
- 200: Success. Audio data returned.
- 400: Bad Request. Check your input format.
- 401: Unauthorized. Verify your API key.
- 429: Rate Limit. Wait and retry.
- 500: Internal Server Error. Retry with backoff.
Code Examples
Generate radio spots instantly by pointing your SDK to our endpoint. The interface mirrors the OpenAI standard, allowing you to use familiar libraries with a simple base URL change.
cURL Example
Send a POST request to https://api.playbd777.com/v1/audio/speech. Include your Bearer token and select a voice like nova for upbeat ads or atlas for news-style reads. The API returns the audio file directly.
Python SDK
Use the OpenAI Python SDK. Configure the base_url to https://api.playbd777.com/v1 and provide your API key. This allows you to generate speech files programmatically within your content pipeline.
Node.js SDK
Import the OpenAI Node.js package. Set the baseURL to https://api.playbd777.com/v1 in your client configuration. You can then call the speech endpoint to create audio assets for your campaigns.
Troubleshooting
Troubleshooting common issues involves understanding character limits and processing queues. If your script exceeds 4096 characters, split it into smaller parts and join the resulting audio files. Short phrases may take a few seconds to generate, while longer texts process at roughly real-time speed.
Under load, requests are processed sequentially, so some may wait in a queue. Failed requests are free, ensuring you only pay for successful synthesis.
Common Issues
Ensure your text stays under 4096 characters per request. If generation fails, no charge is applied. For long scripts, manually split the text and concatenate the output files.
- Limit input to 4096 characters per request
- Split long texts and join audio files
- Failed requests incur no cost
Speed Settings
Adjust speed between 0.25 and 4.0 to fit your ad timing. Faster speeds reduce generation time but may alter natural pacing. Test different speeds with your specific voice preset to find the best fit for your commercial.
- Range: 0.25 to 4.0
- Affects generation time and pacing
- Test with your chosen voice
Language Codes
Set the language parameter for non-English Latin-script text to ensure accurate pronunciation. Without it, Latin text defaults to English. Supported languages include Arabic, Chinese, French, German, Spanish, and 19 others.
- Default: English for Latin script
- Set
languagefor non-English Latin text - 23 supported languages total
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Capture their attention instantly with a warm, inviting tone that resonates deeply with the modern creator community.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- W3C WAI: making audio and video accessible
- ISO 639 language codes
- Creative Commons Attribution 4.0
- FFmpeg documentation
- MDN: Web Speech API
- LibriTTS-R paper (arXiv 2305.18802)
- openai-python on GitHub
- LibriTTS-R corpus (OpenSLR 141)
- LibriVox public-domain audiobooks
- IETF RFC 7845: Ogg Opus
- OpenAI API reference: create speech
