Frequently asked questions
Can I use the OpenAI Python SDK with this API?
Yes. The endpoint matches the OpenAI speech endpoint shape. You can use the official OpenAI SDKs by changing the base_url to https://api.ja5play.com/v1 and providing your site-specific key. This allows you to leverage existing code and libraries without writing custom HTTP clients from scratch.
What is the base URL for the API?
The API base URL is https://api.ja5play.com/v1. You send POST requests to https://api.ja5play.com/v1/audio/speech for audio generation. Use GET /v1/voices to list available voices and languages, and GET /v1/models to check model details. Authentication is handled via a Bearer token in the header.
How do I handle text longer than 4096 characters?
Split your input text into chunks of up to 4096 characters. Send each chunk as a separate request to the speech endpoint. Once you receive the audio files for each part, join them sequentially to create the final audio file. This ensures compliance with the single-request character limit.
Is the API compatible with standard HTTP clients?
Yes. You can use any standard HTTP client or library to send POST requests with JSON bodies. The API accepts standard fields like model, input, voice, and response_format. You do not need a proprietary client; standard tools like curl, Python requests, or Node.js fetch work perfectly.
Can I specify a language for Latin-script text?
Yes. If you send Latin-script text that is not English, you must set the language parameter to the appropriate ISO code. Otherwise, the system defaults to English. This ensures correct pronunciation for languages like Dutch, German, or French when using Latin characters.
What happens if the API returns a 429 error?
A 429 error indicates you have exceeded the rate limit of 60 requests per minute per key. You should wait before sending more requests. If you are new, the limit is 10 requests per minute until you top up your account. Implement exponential backoff in your integration.
Are the audio files returned as base64 or URLs?
The API returns the audio file directly in the response body. It does not provide a URL or require base64 decoding if you handle the binary data. The response format matches the standard speech endpoint, delivering the audio bytes immediately upon successful synthesis.
Do I need to install a specific SDK?
No. We do not provide an official SDK. You can use the OpenAI SDK by adjusting the base URL, or use any standard HTTP library. There is no mobile SDK, WordPress plugin, or browser extension required. Plain HTTP requests work for all integrations.
How do I know which voice supports which language?
Send a GET request to /v1/voices. This endpoint returns a list of all available voices, their associated languages, and supported formats. All eight voices can speak any of the 23 supported languages, so you can choose any voice for any supported language.
Can I stream the audio directly to a player?
No. The API does not support streaming or WebSocket connections. You receive the complete audio file after synthesis is finished. For long texts, you must split the text, generate each part, and then join the files.
Is there a webhook for long-running jobs?
No. The API is synchronous. You send a request and wait for the response containing the audio file. There are no webhooks or background job statuses. If synthesis takes time due to queue load, your client simply waits for the final response.
How do I test the API before going live?
Sign up via /get-api-key/ with Google to receive a free trial credit of $0.50. Use this balance to test voice selection, speed, and formats. Failed requests are free, so you can test error handling without cost. Check your dashboard for usage details and available keys.
What is the maximum speed setting?
The maximum speed setting is 4.0. You can adjust the speed between 0.25 and 4.0 to control the playback rate. This allows you to create faster voiceovers for quick summaries or slower ones for detailed explanations, all within the same API request.
First request
curl
curl https://api.ja5play.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.ja5play.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.ja5play.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 and Keys
Audius requires a Bearer token for API authentication. Include your unique API key in the HTTP header as Authorization: Bearer tts-.... This single key authenticates all requests sent to the API endpoint.
Each account maintains one active key. You can generate a new key at any time through the dashboard. The previous key stops working immediately, ensuring secure access control without downtime.
Bearer token format
Place your API key in the Authorization header using the Bearer scheme. The format is Authorization: Bearer tts-<your-key>. This standard header ensures the API identifies your account and applies your current balance and rate limits.
- Use the
tts-prefix provided in your dashboard. - Include the full key string without extra spaces.
- Pass this header with every
POSTrequest.
One active key per account
Your account is linked to a single active API key. This simplifies tracking usage and billing, as all requests are attributed to one identity. If you suspect a leak or need a fresh start, you can rotate keys instantly.
Regenerate keys instantly
Generate a new key via your dashboard at any time. The old key becomes invalid immediately upon creation of the new one. This allows you to revoke access for old integrations or scripts without waiting for a manual review or delay.
Endpoint: Generate Audio
The core of your workflow is the POST /v1/audio/speech endpoint. You send a JSON payload containing your script and preferences, and receive a synthesized audio file. This endpoint handles the heavy lifting, ensuring your podcast voiceovers are generated quickly and consistently.
To start, you need a valid Bearer token from your account dashboard. The API accepts standard text input, allowing you to integrate directly into your existing podcast production pipeline without managing complex infrastructure.
POST /v1/audio/speech
Send your text to this endpoint to generate audio files. The API processes requests sequentially, so under heavy load, you might experience slight delays.
Use the official OpenAI SDK by setting the base_url to https://api.ja5play.com/v1 for seamless integration with your existing tools.
- Endpoint: POST https://api.ja5play.com/v1/audio/speech
- Method: POST
- Content-Type: application/json
JSON body structure
The request body is a simple JSON object. It includes the model choice, your text input, voice selection, and output format preferences.
Keep your JSON structure clean to ensure smooth delivery. The API returns the audio file directly in the response body.
- model: "tts-1" or "tts-1-hd"
- input: string (up to 4096 characters)
- voice: one of 8 presets
- response_format: mp3, wav, opus, flac, or pcm
- speed: 0.25–4.0
Required input fields
You must provide the model, input text, and voice. The language is optional but recommended for non-English Latin text to ensure correct pronunciation.
Failed requests are free, so you can retry with confidence if something goes wrong.
- model: tts-1 or tts-1-hd
- input: your podcast script text
- voice: e.g., aria, nova, felix
- response_format: mp3 (default for web)
Supported Voice Models
Both models use the same underlying engine, so audio quality differences are subtle. The choice depends on your editing workflow and storage needs rather than a significant gap in realism.
tts-1 standard model
The standard model processes text quickly, making it ideal for rapid prototyping or bulk generation of podcast segments. It handles the full range of 23 languages and 8 voice presets effectively.
- Fast processing speed for high-volume scripts
- Compatible with all 8 voice presets
- Supports 23 languages including English, Spanish, and Japanese
tts-1-hd high definition
The HD model offers slightly more detailed audio texture, which can be preferable for final master files where clarity is paramount. Use this when you need the highest fidelity for direct broadcast.
- Enhanced audio detail for final masters
- Same voice selection as standard
- Ideal for premium podcast episodes
Identical pricing for both
You pay $0.01 per 1,000 characters regardless of which model you choose. There is no premium tier for HD audio, so you can test both and switch based on your editorial preference without changing your budget.
- $10 per 1 million characters for both models
- No extra cost for HD quality
- Simple, predictable billing structure
Response Formats for Podcasts
Choose the right audio format based on your production workflow. MP3 offers universal compatibility for web players, while WAV provides uncompressed quality for professional editing software. OPUS delivers the smallest file size for efficient distribution.
Each format serves a specific step in your podcast agency’s pipeline, from initial editing to final publishing. Select the format that matches your toolchain without unnecessary conversion overhead.
MP3 for web streaming
MP3 is the standard for web playback. It balances quality and file size, making it ideal for embedding audio players on your client websites or podcast directories.
Most podcast platforms accept MP3 files directly, ensuring broad compatibility across devices and streaming services without requiring additional encoding steps.
- Widely supported by all major podcast players
- Compressed format reduces bandwidth usage
- Ideal for final delivery to listeners
WAV for editing software
WAV provides uncompressed, high-fidelity audio. This format preserves all audio details, making it perfect for importing into your editing software like Adobe Audition or Audacity.
Use WAV when you need to apply effects, adjust levels, or perform detailed edits before finalizing the episode.
Audio quality remains intact without compression artifacts, ensuring professional-grade results during the post-production phase.
- Uncompressed lossless quality
- Ideal for professional editing workflows
- Preserves all audio details for post-production
OPUS for efficient size
OPUS offers superior compression with minimal quality loss. This format is perfect for distributing episodes where bandwidth efficiency is critical.
Smaller file sizes mean faster uploads and downloads, reducing storage costs and improving load times for your audience.
Use OPUS when you need to minimize data usage without sacrificing intelligibility, especially for mobile listeners or low-bandwidth environments.
- Highly efficient compression
- Smallest file size options
- Ideal for bandwidth-constrained environments
Speed and Voice Selection
Control pacing and tone precisely with the speed parameter, accepting values between 0.25 and 4.0. This allows you to match the natural rhythm of your podcast host or adjust for tighter ad slots without re-recording. Faster speeds work well for quick updates, while slower rates suit emotional storytelling.
Adjust speed 0.25 to 4.0
Use speed adjustments to fine-tune delivery. Standard narration typically sits near 1.0, but you can slow it down for emphasis or speed it up for time-sensitive content. The API processes requests sequentially, so extreme speeds may slightly affect generation time on long scripts.
Select from 8 presets
Choose from eight distinct voices, ranging from the warm narrator Aria to the deep documentary tone of Orion. Each voice supports all 23 languages, so you can maintain brand consistency across international episodes. Select the voice that best fits your show's personality.
- Female: aria, nova, luna, sage
- Male: felix, milo, atlas, orion
Voice consistency tips
Stick to one voice per series to build listener recognition. Since voices are based on licensed recordings, they carry a synthetic watermark, ensuring clear attribution if needed. Avoid switching voices randomly within a single episode unless it serves a specific narrative purpose.

Handling Long Podcast Scripts
Podcast scripts often exceed the 4096-character limit per request. You must manually split your input text into segments, ensuring each part stays within this boundary.
Send each segment as a separate POST request to the speech endpoint. The API does not handle splitting or joining automatically, so you manage the workflow.
4096 character limit
Each API call accepts a maximum of 4096 characters, including spaces and punctuation. If your script is longer, you must divide it manually before sending requests.
Short phrases typically take a few seconds to generate. Longer texts generate at roughly real-time speed, so plan your queue accordingly.
Split and join logic
Split your input text into segments of up to 4096 characters. Send each segment as a separate POST request to /v1/audio/speech.
Concatenate the resulting audio files in order to create the final file. This approach ensures you stay within limits while preserving the narrative flow.
Seamless audio joining
After receiving all audio files, join them in the correct sequence. Since requests are processed sequentially, ensure your code waits for each response before sending the next.
Use standard audio libraries to merge MP3, WAV, or Opus files. The resulting file will contain the full voiceover without manual editing gaps.
Error Codes and Handling
Even with well-formed requests, API calls can fail. Understanding these standard HTTP responses helps you debug quickly without guessing what went wrong.
400 Bad Request
This error indicates a problem with your request structure or input data. Common causes include missing required fields like input or voice, or providing an invalid voice name.
- Check that
inputis under 4096 characters. - Verify the
voiceID matches one of the 8 available presets. - Ensure
modelis eithertts-1ortts-1-hd.
429 Rate Limit
You have exceeded the allowed request frequency. New accounts start with a limit of 10 requests per minute. Once you top up your balance, this increases to 60 requests per minute.
- Implement exponential backoff in your automation scripts.
- Monitor your usage dashboard to anticipate limits.
- Top up via USDT (TRC-20) to increase your limit immediately.
500 Internal Errors
An unexpected server issue occurred while processing your audio request. These are rare but can happen during high load or engine maintenance.
- Retry the request after a short delay.
- If the error persists, contact support via email.
- Failed requests during these errors are not charged.
Rate Limits for Agencies
Agencies generating voiceovers at scale need predictable throughput. Audius allocates a steady 60 requests per minute to each active API key, ensuring your batch jobs run smoothly without unpredictable bottlenecks.
60 requests per minute
This limit applies per key, not per account. If you need higher throughput, simply create additional API keys. Each key maintains its own independent rate limit, allowing you to parallelize generation across multiple voices or languages.
10 requests initially
New accounts start with a lower limit of 10 requests per minute. This ensures stability while you test integration and verify that your scripts fit within the 4,096-character constraint without overwhelming the queue.
Increase after top up
Once you add funds via USDT (TRC-20), your limit automatically increases to the full 60 requests per minute. Credits are applied instantly, allowing you to scale production immediately after your first top-up.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Your next podcast should sound like a conversation, not a broadcast, to truly captivate your agency audience.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- Creative Commons Attribution 4.0
- Python documentation
- Tether (USDT)
- W3C WAI: making audio and video accessible
- OpenAI API reference: create speech
- openai-python on GitHub
- openai-node on GitHub
- TRON developer hub: TRC-20
- LibriTTS-R paper (arXiv 2305.18802)
- MDN: Web Speech API
- LibriVox public-domain audiobooks
