TTS API for Advertisers: Quickstart & Integration

By VoxCast editorial team · Updated 2026-11-18

This guide shows freelance ad copywriters and audio producers how to generate human-sounding radio spots via the VoxCast API. You will learn to integrate our TTS engine into your workflow using standard HTTP requests or the OpenAI SDK, ensuring you can produce voiceovers for campaigns by sending text and receiving audio files directly in the response.

We cover practical steps from acquiring your API key to handling rate limits, selecting from eight preset voices, and managing long scripts. This documentation provides concrete cURL examples, character-based pricing details, and error handling strategies so you can automate high-volume audio generation efficiently and predictably.

TTS API for Advertisers: Quickstart & Integration

Frequently asked questions

How do I get my API key?

Navigate to /get-api-key/ and sign up using Google or an email and password. The dashboard displays your active API key, current balance, and usage statistics. You can issue a new key at any time, which immediately invalidates the previous one. Each account is tied to this specific site.

Can I use the OpenAI SDK?

Yes. The endpoint matches the OpenAI speech request shape. Simply change the SDK’s base_url to https://api.ll77apk.com/v1 and provide your site-specific key. This allows you to use the official OpenAI SDKs directly, as the request structure is identical, eliminating the need for a custom wrapper to handle the API communication.

What is the base URL?

The API base URL is https://api.ll77apk.com/v1. You send POST requests to /v1/audio/speech for generation. Use GET /v1/voices to list available voices and GET /v1/models to check model details. This structure ensures compatibility with standard HTTP clients and the OpenAI SDK.

How do I set the language?

Pass the optional language field with an ISO code in your JSON body. If omitted, the system guesses the language, defaulting to English for Latin script. For non-English Latin text, always set the language explicitly to ensure accurate synthesis across the 23 supported languages.

What happens if I hit the rate limit?

You are limited to 60 requests per minute per key (10 before the first top-up). Requests are processed sequentially, so exceeding limits or high load causes your request to wait in a queue. You will receive the audio once processed, but generation time increases under load.

Can I generate MP3 files?

Yes. Set the response_format field to mp3. You can also choose wav, opus, flac, or pcm. Each generated file includes an inaudible watermark marking it as synthetic speech. MP3 is ideal for radio spots due to its balance of quality and file size.

How do I handle long scripts?

Split your script into parts of up to 4096 characters. Send each part as a separate request and join the resulting audio files. This ensures compliance with the character limit per request while allowing you to generate full-length radio spots or longer voiceover content efficiently.

Are errors free?

Yes. If synthesis fails, the charge is returned in full. You only pay for successful generations. This protects your budget when testing voices or handling edge cases in your advertising workflow. Failed requests do not incur the $0.01 per 1,000 characters fee.

First request

curl

curl https://api.ll77apk.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.mp3

Python (openai)

from openai import OpenAI

client = OpenAI(base_url="https://api.ll77apk.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.ll77apk.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
ariafemale
novafemale
lunafemale
sagefemale
felixmale
milomale
atlasmale
orionmale
language
arالعربية
zh中文
daDansk
nlNederlands
enEnglish
fiSuomi
frFrançais
deDeutsch
elΕλληνικά
heעברית
hiहिन्दी
itItaliano
ja日本語
ko한국어
msBahasa Melayu
noNorsk
plPolski
ptPortuguês
ruРусский
esEspañol
swKiswahili
svSvenska
trTürkçe

Get Your API Key

Sound wave illustration for: Get Your API Key

Access the /get-api-key/ page on ll77apk.com to create your account. The platform tracks usage per site, so ensure you are registering on the correct domain for your advertising workflow.

Sign up with Google

Select the Google sign-in option for immediate account creation. This method grants you a $0.50 free trial credit, valid for 7 days, allowing you to generate approximately 50,000 characters of audio without immediate payment setup.

Sign up with email

Use the email and password registration if you prefer standard credentials. Accounts created this way start without trial credit and require a manual top-up via USDT (TRC-20) before generating audio.

Find your key in dashboard

Once registered, your unique API key appears on the dashboard. Use this key in the Authorization header for all API requests. You can issue a new key at any time, which instantly invalidates the previous one.

First Request with cURL

Sound wave illustration for: First Request with cURL

Send your first synthesis request to verify connectivity and audio quality. This basic call confirms your key works and previews output quality, though results are not instantaneous due to queue processing.

Basic speech generation

Use the following cURL command to generate speech. Replace YOUR_API_KEY with your key from the dashboard. The endpoint expects a JSON body with the model and input fields.

Setting voice and language

Specify the voice parameter (e.g., nova or atlas) to control tone. Optionally set the language ISO code (e.g., en, de) to prevent guessing errors for non-English Latin text. If omitted, the system guesses the language, defaulting to English for Latin scripts.

  • Supported voices include aria, nova, luna, sage, felix, milo, atlas, orion.
  • Language codes must match the 23 supported languages.

Response format options

Choose the response_format from mp3, wav, opus, flac, or pcm. MP3 is standard for web ads, while WAV offers high quality. The API returns the audio file directly in the response.

  • mp3: Compressed, ideal for web.
  • wav: Uncompressed, high quality.
  • opus: Smallest file size.
First Request with cURL

OpenAI SDK Integration

Sound wave illustration for: OpenAI SDK Integration

The VoxCast API mirrors the OpenAI speech endpoint structure, allowing you to integrate our text-to-speech service into existing workflows with minimal code changes. By simply adjusting the base URL, you can leverage the official OpenAI SDKs to generate radio spots and voiceovers without learning a new client library.

This compatibility ensures that standard methods like audio.create work seamlessly. You only need to point the client to our API endpoint and provide your VoxCast API key, maintaining familiar request shapes while accessing our specific voice presets and pricing model.

Change base_url

Update your SDK client configuration to use https://api.ll77apk.com/v1 as the base URL. This single change routes all requests through our infrastructure while maintaining compatibility with standard OpenAI client methods. You do not need to modify the endpoint paths or request bodies, which remain identical to the OpenAI speech endpoint format.

  • Base URL: https://api.ll77apk.com/v1
  • Endpoint: /v1/audio/speech
  • Request shape: JSON body with model, input, voice

Use official SDKs

Leverage the official OpenAI SDKs (Python, Node.js, etc.) for reliable integration. The request shape matches the OpenAI speech endpoint exactly, so your existing code structure for text-to-speech generation remains valid. This allows freelance ad copywriters to quickly prototype audio assets using tools they already know.

  • Python SDK
  • Node.js SDK
  • cURL compatibility

Authenticate with Bearer token

Pass your API key in the Authorization header as Bearer tts-.... Ensure your key is active and has sufficient balance. Failed requests are free, but successful generations are charged based on character count. Use the dashboard to monitor usage and generate new keys if needed.

  • Header: Authorization: Bearer tts-...
  • Key format: tts- prefix
  • One active key per account

Supported Audio Formats

Sound wave illustration for: Supported Audio Formats

Selecting the right audio format ensures your radio spots and voiceovers deliver the intended quality without unnecessary data overhead. The API supports four standard formats, allowing you to optimize files for web playback, archival, or raw processing.

MP3 for web ads

MP3 is the default choice for most web-based advertising campaigns. It offers a balance of file size and acceptable audio quality, making it ideal for embedding in HTML5 players or sending to digital ad platforms.

  • Small file size for fast loading
  • Broad compatibility with web players
  • Suitable for standard ad delivery

WAV for high quality

WAV provides uncompressed, high-fidelity audio perfect for professional radio broadcasts or archival purposes. Use this format when you need the highest possible sound quality for on-air spots or further editing in production software.

  • Uncompressed audio quality
  • Ideal for professional radio spots
  • Best for post-production editing

Opus for small file size

Opus delivers excellent audio quality at very low bitrates, resulting in significantly smaller files than MP3 or WAV. This is useful for mobile-first campaigns or when bandwidth constraints are a priority.

  • Very small file sizes
  • High quality at low bitrates
  • Optimal for mobile delivery

Voice Selection

Sound wave illustration for: Voice Selection

VoxCast provides eight preset voices derived from licensed LibriTTS-R recordings, ensuring a consistent base for your audio assets. These voices are not specially engineered for advertising clarity but offer distinct tonal qualities suitable for various copywriting needs.

You can select any voice for any supported language, allowing flexible localization without hiring additional talent. Each voice carries an inaudible watermark marking it as synthetic speech.

8 preset voices

The API supports eight distinct presets, ranging from warm narrators to deep documentary tones. You can rotate voices between campaigns to maintain listener interest.

Each voice is based on public-domain audiobook readings, providing a natural, human baseline without the need for custom voice cloning.

  • Aria, Nova, Luna, Sage
  • Felix, Milo, Atlas, Orion

Female and male options

Four female voices (Aria, Nova, Luna, Sage) and four male voices (Felix, Milo, Atlas, Orion) cover standard advertising demographics. There is no strict gender assignment to specific languages; any voice can speak any of the 23 supported languages.

This flexibility allows you to match the vocal tone to your brand identity rather than being constrained by traditional gendered voice assignments.

Voice characteristics

Felix offers an energetic, promo style ideal for quick radio spots. Atlas provides a neutral, news-like tone for straightforward information.

Luna delivers a soft, storytelling vibe, while Orion adds depth for documentary-style intros. Nova is bright and upbeat, and Sage is calm and instructional.

Aria serves as a warm, clear narrator, and Milo offers a friendly, conversational approach. Choose based on the emotional context of your copy.

Voice Selection

Rate Limits

Sound wave illustration for: Rate Limits

Rate limits are enforced per API key, not per account or user tier. This means your generation capacity is strictly tied to the single active key associated with your dashboard, regardless of how many team members or projects share that credential. Understanding this boundary is essential for maintaining consistent throughput during high-volume campaigns.

If you require higher throughput for multiple concurrent ad spots, you can issue a new key at any time. The previous key stops immediately, ensuring no duplicate charges or conflicting sessions, while the new key begins its own rate limit cycle from zero.

60 requests per minute

Once your account is active, you can send up to 60 synthesis requests per minute. This limit applies to the specific API key in use. Since each request generates a distinct audio file, this cap allows for rapid iteration on short voiceovers without waiting for the next minute window.

  • Limit is calculated per API key, not per user or project.

10 requests before top-up

New accounts or those without a current balance start with a limit of 10 requests per minute. This lower threshold ensures system stability before you add funds. Once you top up via USDT (TRC-20), your limit increases to the standard 60 requests per minute within minutes.

  • Initial limit: 10 requests/minute.

Queue behavior under load

Requests are processed sequentially. If you exceed the per-minute limit or if the server is busy, new requests may wait in a queue. For short phrases, this adds only a few seconds. For longer texts, which take roughly real-time to generate, queuing can extend total processing time significantly during peak usage.

  • Requests are processed one after another.

Handling Long Texts

Sound wave illustration for: Handling Long Texts

Since the API enforces a strict 4096-character limit per request, generating longer radio scripts or voiceovers requires splitting the source text into manageable chunks. Each segment is sent as an individual POST request to the speech endpoint. This client-side splitting ensures you maintain control over the segmentation logic, allowing you to insert precise pauses or handle punctuation boundaries that might otherwise be truncated.

Split into 4096 characters

Divide your script into segments, ensuring each stays under the 4096-character limit. Spaces and punctuation count toward this total. You may split by sentences or logical phrases, but the API does not perform server-side concatenation, so you must preserve the order of your segments.

  • Count all characters, including spaces and punctuation.
  • Split at natural pause points to avoid awkward cuts.

Join audio files

After receiving the audio files for each segment, you must concatenate them locally using your preferred audio library or tool. Since the API returns separate files, the seamless playback of a long ad depends on your client-side processing. Ensure there are no unintended gaps between segments by aligning the audio files precisely during assembly.

Manage request batches

Process multiple segments concurrently to save time, but respect the rate limits. You are allowed 60 requests per minute, or 10 before your first top-up. If you exceed this, requests may queue or fail. Monitor your balance and timing to ensure all parts of a single script are generated without delay.

  • Respect the 60 requests per minute limit.
  • Queue behavior may cause delays under load.
Handling Long Texts

Error Codes and Handling

Sound wave illustration for: Error Codes and Handling

Synthesis errors are free. If the API returns an error, the character count is not deducted from your balance, and no charge is applied. This applies to transient network issues or temporary service unavailability, ensuring you only pay for successfully generated audio files.

Common error types

Errors typically stem from invalid request parameters, such as exceeding the 4096-character input limit or using an unsupported format. Authentication failures occur if the Bearer token is missing or incorrect. Since the API does not guarantee specific HTTP status codes for all failure modes, always check the response body for a clear error message.

Retry failed requests

Implement exponential backoff for transient errors like 429 (Rate Limit Exceeded) or 5xx server errors. Since failed requests are free, you can safely retry without worrying about double-charging for the same audio generation, provided the original request did not succeed.

Check balance status

If requests fail due to insufficient funds, the API will return an error indicating payment is required. You can top up via USDT on the TRON network (TRC-20) to restore service. Balance does not expire, so you can add funds whenever needed.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Craft your script with rhythm and emotion for a compelling radio spot.

Avatar of the voice aria
ariafemale
Avatar of the voice nova
novafemale
Avatar of the voice luna
lunafemale
Avatar of the voice sage
sagefemale
Avatar of the voice felix
felixmale
Avatar of the voice milo
milomale
Avatar of the voice atlas
atlasmale
Avatar of the voice orion
orionmale

23 languages

Any voice speaks any of these languages.

Sources and further reading

  1. Wikipedia
  2. openai-node on GitHub
  3. OpenAI API reference: create speech
  4. ISO 639 language codes
  5. FFmpeg documentation
  6. Creative Commons Attribution 4.0
  7. Tether (USDT)
  8. LibriTTS-R corpus (OpenSLR 141)
  9. curl documentation
  10. TRON developer hub: TRC-20
  11. IETF RFC 7845: Ogg Opus
  12. LibriVox public-domain audiobooks

More on this site