Frequently asked questions
What is the endpoint URL?
Send your request to POST https://api.playd666.com/v1/audio/speech. The JSON body structure matches the OpenAI speech endpoint exactly. This compatibility allows you to use standard HTTP clients or the OpenAI SDK by simply adjusting the base URL to https://api.playd666.com/v1 for seamless integration with your WordPress plugins or scripts.
Do I need the OpenAI SDK?
No, you do not need the OpenAI SDK. You can use any standard HTTP client to send a POST request with a JSON body containing your text, voice, and model parameters. The OpenAI SDK works only if you configure it to point to our base URL, but plain HTTP requests are fully supported and often simpler for no-code users.
How do I handle errors?
If synthesis fails, the charge is returned in full, so you lose no money. You should check the HTTP status code and the JSON response body for error details. Failed requests do not consume your character balance. Implementing retry logic for transient errors is recommended, as the API processes requests sequentially and may queue them under load.
What is the rate limit?
You are limited to 60 requests per minute per API key. If you have not topped up your account, this limit is 10 requests per minute. Since requests are processed sequentially, long texts may wait in a queue. Plan your character volume accordingly, as each request handles up to 4096 characters of input text.
Can I use SSML?
No, the API does not support SSML. You send plain text in the input field, and the engine handles pronunciation and pacing automatically. There are no phoneme dictionaries or custom pronunciation lexicons available. If you need specific control over pauses or emphasis, you must split your text into multiple requests and adjust the timing in your audio player.
How do I set the language?
Include the language field in your JSON body with an ISO code, such as es for Spanish or fr for French. If omitted, the system guesses the language from the script, defaulting to English for Latin text. For non-English Latin-script text, always set the language explicitly to ensure correct pronunciation and avoid misidentification.
What formats are supported?
You can choose from mp3, wav, opus, flac, or pcm using the response_format field. MP3 is suitable for web playback, while WAV and FLAC offer lossless quality. PCM provides raw audio data. Select the format that best fits your WordPress media library or audio player requirements. All formats are generated upon successful synthesis.
Is the API synchronous?
Yes, the API is synchronous. You send a request and wait for the audio file to be generated and returned in the response. Processing takes roughly real-time speed for long texts, meaning a minute of audio takes about a minute to generate. Short phrases may take a few seconds. Requests are processed one after another, so load can cause delays.
How do I renew my key?
You can issue a new API key at any time from your account dashboard. When you generate a new key, the old one stops working immediately. This ensures that if your key is compromised, you can revoke access instantly. You do not need to wait for a renewal period; the change is effective at once.
What is the model ID?
Use tts-1 or tts-1-hd as your model ID. Both models use the same underlying engine and have the same pricing. The choice between them does not affect the voice quality or speed. You can switch between them without changing your integration logic, as the request shape remains identical for both options.
Can I change voice mid-sentence?
No, you cannot change the voice mid-sentence within a single request. Each request specifies one voice from the eight presets, such as Aria or Felix. To change voices, you must split your text into separate requests, generate the audio for each part, and then join the resulting audio files in your WordPress player or editor.
Does it support streaming?
No, the API does not support streaming or WebSocket connections. You receive the complete audio file only after synthesis finishes. There is no real-time partial audio generation. This synchronous approach simplifies integration for no-code WordPress creators, as you can simply store the returned file in your media library without managing stream buffers or chunked transfers.
How to split long texts?
Split your text into parts of up to 4096 characters each. Send each part as a separate request to the speech endpoint. Once you receive the audio files for all parts, join them together. This ensures you stay within the character limit per request while maintaining coherent audio output for your blog posts or articles.
Is authentication required?
Yes, authentication is required for every request. Include your API key in the header as Authorization: Bearer tts-.... You can find your key on the /get-api-key/ page after signing up. Each account has one active key, which you can renew anytime. Without a valid key, your requests will be rejected.
First request
curl
curl https://api.playd666.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.playd666.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.playd666.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
Obtaining access to the Linguist TTS API begins at the /get-api-key/ dashboard, designed for straightforward integration. You can register using either Google authentication or a standard email and password combination. This process generates your unique credential, allowing you to start generating audio files immediately.
The dashboard displays your active API key, current balance, and usage statistics. From this central hub, you can view your current key details and top up your balance without navigating away from your workflow.
Sign Up on /get-api-key/
Visit the /get-api-key/ page to create your account. The interface provides a clear overview of your API key, balance, and character usage. This single location serves as your control center for all API activities, from monitoring limits to initiating top-ups.
Upon registration, you receive immediate access to the API endpoints. The dashboard updates in real-time, showing your remaining characters and current key status, ensuring transparency as you begin integrating the service into your WordPress site or blog.
Google or Email Registration
You may sign up using your Google account for quick verification or opt for a traditional email and password registration. Accounts created with email do not include the $0.50 trial credit, whereas Google sign-ins receive it automatically.
This flexibility ensures that both technical developers and content creators can access the service with their preferred method. Your account is tied to the specific site domain, keeping your credentials secure and isolated from other platforms.
Key Management
Each account is issued one active API key at a time. You can generate a new key at any moment via the dashboard. When a new key is issued, the previous one becomes invalid immediately, ensuring tight security control.
The key is used in the Authorization header as Bearer tts-.... If you suspect a leak, revoking and issuing a new key is instant. This simplicity removes the complexity of managing multiple keys for different environments or projects.
- Generate a new key instantly if needed
- Old keys stop working immediately upon new issuance
- One active key per account
First Request with cURL
The API accepts text via a standard HTTP POST request. Send your JSON payload to https://api.playd666.com/v1/audio/speech with your bearer token. The service returns a binary audio file directly in the response body, ready for immediate playback or storage in your WordPress media library.
This direct approach ensures compatibility with any language library or no-code automation tool. You do not need a custom client; simply format the request correctly and handle the binary stream as the audio output.
Basic POST Request
Send a POST request to the speech endpoint. Include your API key in the Authorization header. The request body must contain the model, input text, and voice selection parameters.
- Endpoint:
POST https://api.playd666.com/v1/audio/speech - Header:
Authorization: Bearer YOUR_API_KEY - Content-Type:
application/json
Required JSON Fields
Your JSON body must include the model (e.g., tts-1 or tts-1-hd), the input text (up to 4096 characters), and the voice ID. You may also specify response_format, speed, and language for precise control over the output.
Ensure your text does not exceed the character limit. If it does, split the content and join the resulting audio files later.
Response Handling
On success, the API returns a 200 OK status with the audio file as the response body. Save this binary data to a file or stream it directly to your player.
If the synthesis fails, you receive an error code and the charge is returned in full. Check the response status to handle retries or notify users if the audio generation was unsuccessful.
Using the OpenAI SDK
Integrating with the official OpenAI SDK is straightforward for WordPress developers using Python or Node.js. You simply point the client to our API base URL instead of OpenAI’s, then use the standard speech creation method. This leverages existing libraries without requiring custom HTTP wrappers.
The request structure mirrors the OpenAI audio/speech endpoint exactly. By updating the base_url to https://api.playd666.com/v1, you can send text inputs and receive audio files using the same SDK methods you already know, ensuring a smooth transition for existing codebases.
Change base_url
Update your SDK client configuration to use https://api.playd666.com/v1 as the base URL. This directs all requests to our infrastructure while keeping the familiar OpenAI SDK interface intact.
Same Request Shape
Send a JSON body with model, input, voice, and response_format fields. The API accepts the exact same parameter structure as OpenAI’s TTS endpoint, allowing you to swap the provider without rewriting your request logic.
Official SDK Compatibility
Works with official OpenAI Python and Node.js SDKs. No custom client code is needed; just configure the base URL and authentication header with your tts-... key.
Supported Audio Formats
The API accepts five distinct audio formats via the response_format parameter: mp3, wav, opus, flac, and pcm. Each format serves different integration needs, from web compatibility to lossless archival. You can select the output type that best balances file size and quality for your WordPress blog or no-code platform.
MP3, WAV, OPUS, FLAC, PCM
MP3 provides universal compatibility for web players and mobile apps. WAV offers uncompressed, high-fidelity audio suitable for professional editing. OPUS delivers efficient compression with good quality for web playback. FLAC ensures lossless compression for archival storage. PCM returns raw, uncompressed audio data for direct processing.
Quality Differences
WAV and FLAC preserve the full audio quality generated by the engine. MP3 and OPUS apply lossy compression, which may slightly alter the sound but reduces data size. PCM retains the exact digital signal without any compression artifacts.
File Size Implications
Larger files like WAV and FLAC require more bandwidth for delivery. MP3 and OPUS are significantly smaller, making them ideal for fast-loading blogs. PCM files are raw and can be quite large depending on the bit depth and sample rate.
Error Handling and Status Codes
When your WordPress blog’s audio generation fails, the API returns clear HTTP status codes to help you diagnose the issue immediately. Understanding these responses ensures you can adjust your workflow without losing progress or paying for wasted requests.
This section outlines how to handle common errors, implement safe retry logic, and understand the refund policy for failed synthesis attempts, keeping your content pipeline reliable.
Common HTTP Errors
The API returns standard HTTP codes such as 400 for invalid JSON or missing fields, 401 for incorrect API keys, and 429 when you exceed the rate limit. A 500 error indicates a temporary server issue during synthesis.
- 400 Bad Request: Check your JSON structure and character limits.
- 401 Unauthorized: Verify your Bearer token is active.
- 429 Too Many Requests: Wait before retrying; see Rate Limits.
Retry Logic
For transient 5xx errors, implement exponential backoff rather than immediate retries. Since requests are processed sequentially under load, immediate retries may also fail. Wait a few seconds before attempting to re-send the same text.
- Retry only on 500 or 503 errors.
- Use exponential backoff (e.g., 1s, 2s, 4s).
- Do not retry 400 or 401 errors without code changes.
Failure Refunds
If synthesis fails completely, the charge is returned in full. You are not billed for failed requests, ensuring you only pay for successfully generated audio files. This applies to both free trial and paid balance usage.
- Failed requests are free.
- Charges are reversed automatically.
- No manual claim required.

Rate Limits Explained
The TTS API enforces a standard rate limit of 60 requests per minute for each active API key. This ceiling ensures stable performance for WordPress blogs and content creators generating audio at scale, preventing sudden spikes from degrading synthesis quality for other users.
60 Requests Per Minute
Once your account is active, you can send up to 60 synthesis requests within any 60-second window. This throughput is sufficient for most blog workflows, allowing you to batch-generate intros, summaries, or full articles without hitting bottlenecks.
Initial 10 Requests Limit
New accounts start with a reduced limit of 10 requests per minute. This applies until you complete your first top-up. The restriction helps manage initial load while you configure your integration or test the API with short text samples.
- Limit resets to 60 req/min after first successful USDT top-up.
- Applies per API key, not per IP address.
Queue Behavior
Requests are processed sequentially. If you exceed the limit, new requests may enter a queue rather than failing immediately. Under heavy load, generation times increase as requests wait for their turn, but you will not lose data or incur charges for queued items.
Voice Selection Parameters
Selecting the right voice is straightforward: the API offers eight distinct presets, each crafted for specific content styles. Whether you need a warm narrator for long-form blogs or an energetic tone for promotional snippets, there is a preset that matches your workflow. You simply pass the correct voice ID in your request payload.
These voices are derived from licensed recordings and public-domain audiobook readings, ensuring a natural listening experience. Each generated audio file carries an inaudible watermark, clearly marking it as synthetic speech for transparency. Understanding these nuances helps you maintain consistency across your WordPress content without needing complex voice design tools.
8 Preset Voices
The API provides eight preset voices: Aria, Nova, Luna, and Sage for female tones; Felix, Milo, Atlas, and Orion for male tones. Each voice has a distinct character, from the calm instructional style of Sage to the deep, documentary feel of Orion. You can mix and match these voices across different posts to keep your audio engaging.
These voices support all 23 supported languages, including English, Spanish, German, and Japanese. If you do not specify a language, the system guesses it from the script, but setting it explicitly is recommended for non-English Latin text. This ensures accurate pronunciation and natural flow regardless of the voice selected.
- Female: aria (warm narrator), nova (bright/upbeat), luna (soft/storytelling), sage (calm/instructional)
- Male: felix (energetic/promo), milo (friendly/conversational), atlas (neutral/news), orion (deep/documentary)
Gender and Tone Variations
Each voice is designed to serve a specific editorial purpose. For example, use Atlas for neutral news updates or Felix for high-energy promotional content. The tone variations are baked into the audio generation, so you do not need to add SSML markers. This simplicity aligns well with no-code WordPress workflows where you just want reliable, clear audio.
The gender and tone differences are subtle but distinct. While all voices can speak any supported language, their inherent cadence and pitch vary. This allows you to maintain brand voice consistency across your site. For instance, using Nova for light-hearted blog posts creates a brighter atmosphere compared to the softer Luna for storytelling.
Voice ID Usage
To use a voice, include the voice field in your JSON payload with the preset name (e.g., "voice": "nova"). The API accepts these IDs directly, making integration easy. You can test different voices in your development environment before committing to a specific tone for your live content.
Ensure you use the exact preset name as listed. The system does not support custom voice IDs or cloning. If you need a different tone, you must switch to another preset. This limitation keeps the API simple and cost-effective.
Text Input Limits
The API accepts a maximum of 4096 characters per request. This limit applies to the entire input string, including spaces and punctuation marks. If your content exceeds this threshold, you must process it in chunks to ensure successful synthesis.
4096 Characters Max
Each POST request to the speech endpoint handles up to 4096 characters. This constraint is strict; exceeding it will result in an error. Count your characters carefully, as spaces and punctuation contribute to the total.
Splitting Long Texts
For longer articles or blog posts, divide the text into segments no larger than 4096 characters. Send each segment as a separate request. This ensures that each chunk is processed independently without hitting the input limit.
Joining Audio Files
Once you receive the audio files for each chunk, concatenate them into a single continuous file. This approach allows you to produce long-form audio content while staying within the per-request character constraints.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Failed requests are free, ensuring you only pay for successful audio generation without hidden fees or monthly subscriptions.
23 languages
Any voice speaks any of these languages.
