Start Using the Cloud TTS API Today for Your Projects

By SpotVoice editorial team · Updated 2026-11-18

This guide explains how to integrate the SpotVoice text-to-speech API into your agency’s production workflow. You will learn to generate consistent voiceovers for advertising and radio spots using standard JSON requests, supported by the official OpenAI SDKs. We cover key setup steps, from obtaining your API credential to handling rate limits and errors, ensuring your automation pipeline runs smoothly, though no SLA or uptime guarantee is provided.

Designed for teams producing high-volume audio content, this page provides concrete examples for every stage of integration. You will see exactly how to select voices, manage languages, and format output files like MP3 or WAV. All pricing, character limits, and technical constraints are stated clearly so you can estimate costs and plan your generation queue accurately before committing to a project.

Start Using the Cloud TTS API Today for Your Projects

Frequently asked questions

How do I get an API key?

Sign up on the /get-api-key/ page using Google or an email and password. The dashboard displays your active API key, which you use with the Authorization: Bearer header. You can issue a new key at any time, which immediately invalidates the previous one.

What is the base URL?

The API base URL is https://api.ak999apk.com/v1. You send POST requests to /audio/speech. Other endpoints like /voices and /models are also available under this base URL structure for retrieving voice details and model information.

Can I use the OpenAI SDK?

Yes. The request shape matches the OpenAI speech endpoint. You can use official OpenAI SDKs by changing the base_url to https://api.ak999apk.com/v1 and providing your SpotVoice API key. This allows you to integrate quickly without rewriting your client code.

What formats are supported?

You can choose from mp3, wav, opus, flac, or pcm. Specify the desired format in the response_format field of your JSON request body. This allows you to select the best balance between file size and audio quality for your advertising workflow.

What are the rate limits?

You are limited to 60 requests per minute per key. Before your first top-up, the limit is 10 requests per minute. These limits apply to your active API key and help manage server load during high-volume production periods.

How do I handle errors?

If synthesis fails, the charge is returned in full. Check the response status code and message to diagnose issues like invalid parameters or network errors. Failed requests do not consume your character balance, ensuring you only pay for successful audio generation.

Which voices are available?

Eight presets are available: aria, nova, luna, sage (female) and felix, milo, atlas, orion (male). Each voice has a distinct tone, from warm narration to deep documentary styles. Any voice can speak any of the 23 supported languages.

How do I set the speed?

Use the speed field in your request body. Valid values range from 0.25 to 4.0. A value of 1.0 is normal speed. Adjusting speed helps match the pacing of your radio spots or advertising content to your specific production needs.

How do I set the language?

Pass an ISO language code in the language field. If omitted, the system guesses the language, defaulting to English for Latin script. For non-English Latin text, explicitly setting the language ensures accurate pronunciation and avoids misidentification by the synthesis engine.

Is the API compatible with Python?

Yes. Since the endpoint matches the OpenAI standard, you can use the official OpenAI Python SDK. Simply configure the base_url to https://api.ak999apk.com/v1. This allows you to leverage existing Python libraries and code structures for your TTS integration.

Can I generate audio in bulk?

Yes. Split long texts into parts of up to 4096 characters. Generate audio for each part separately, then join the resulting audio files. This approach handles longer scripts efficiently while staying within the per-request character limit constraints of the API.

How long does a request take?

Generation is roughly real-time, about 25 characters of text per second of audio. Short phrases take a few seconds. Requests are processed sequentially, so under heavy load, a request may wait in a queue. Plan your production timeline accordingly for high-volume bursts.

What is the character limit per request?

Each request accepts up to 4096 characters of input text. Spaces and punctuation count toward this limit. For longer scripts, split the text into multiple requests, generate the audio files, and concatenate them to create the final broadcast-ready audio file.

How do I check my balance?

Log in to the /get-api-key/ dashboard page. The interface displays your current balance, trial status, characters remaining, and usage history. This real-time view helps you monitor spending against your $0.01 per 1,000 characters pricing model without hidden fees.

First request

curl

curl https://api.ak999apk.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.ak999apk.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.ak999apk.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 to generate your API credentials. You can sign up using your Google account for immediate trial credit, or create an account with an email and password which starts without trial credit.

Once registered, 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.

Sign Up with Google

Sign Up with Google

Signing in with Google provides $0.50 of trial credit, valid for 7 days. This allows you to test the API without immediate payment. Accounts created this way receive trial credit automatically.

  • Instant access to trial credit
  • 7-day validity period
  • Automatic credit application

Email Sign-Up

Email Sign-Up

You can register using a standard email and password. This method does not include trial credit. You must top up your balance using USDT (TRC-20) on the TRON network to begin generating audio.

  • No trial credit included
  • Requires manual top-up
  • Standard account creation

Key Management

Each account has one active API key. You can generate a new key at any time from the dashboard. The old key stops working immediately when the new one is issued. Use the key in the Authorization: Bearer header.

  • One active key per account
  • Instant invalidation of old keys
  • Generate new keys anytime

First Request with Curl

Sound wave illustration for: First Request with Curl

Send your first audio file with a simple HTTP POST. The endpoint accepts a JSON body containing the text, model, and voice settings. You receive an audio file directly in the response, ready for insertion into your radio spot timeline.

This method requires no external libraries. It works with any tool that can send JSON, making it ideal for quick integration into your agency’s existing production pipeline without complex setup.

Basic JSON Body

The request uses standard JSON fields. You must provide the text input (up to 4096 characters) and select a model. The API returns the audio file upon successful synthesis, though processing may take time as requests are queued.

Ensure your text fits the character limit. If your script is longer, split it into chunks and join the resulting audio files later in your editing software.

  • POST https://api.ak999apk.com/v1/audio/speech
  • Include model, input, voice, and response_format in the JSON body
  • Use Authorization: Bearer tts-... header with your API key

Voice Selection

Choose from eight presets that cover various advertising tones. Select a voice that matches the mood of your spot, whether it is a warm narrator or an energetic promo read.

Each voice is consistent across requests. This ensures brand consistency across multiple spots without needing to hire different talent for each campaign.

Response Format

Select your preferred audio format from mp3, wav, opus, flac, or pcm. MP3 is suitable for web delivery, while WAV or FLAC may be preferred for high-quality radio broadcast masters.

The API returns the audio file directly in the response body. No additional download steps are required; save the output directly to your local drive or server.

OpenAI SDK Integration

Sound wave illustration for: OpenAI SDK Integration

The SpotVoice API mirrors the OpenAI speech endpoint structure, allowing you to reuse existing client code with minimal adjustments. By simply updating the base URL, your agency’s automation tools can route requests to our infrastructure without rewriting core logic.

This compatibility ensures that teams familiar with the OpenAI SDK can integrate SpotVoice immediately, reducing onboarding time for new voiceover projects and maintaining consistency across your production pipeline.

Change Base URL

Point your SDK client to https://api.ak999apk.com/v1 instead of the default OpenAI endpoint. This single configuration change directs all subsequent speech synthesis requests to the SpotVoice infrastructure while preserving the standard JSON request shape.

Ensure your authentication header uses your SpotVoice API key (tts-...) in the Authorization field. The endpoint path /v1/audio/speech remains identical to the OpenAI standard.

  • Base URL: https://api.ak999apk.com/v1
  • Endpoint: POST /v1/audio/speech
  • Auth: Bearer tts-<your-key>

Use Official SDKs

Leverage the official OpenAI SDKs for Python, Node.js, or other supported languages. Since the request schema matches exactly, you can import the standard libraries and configure them to point at our base URL.

This approach allows you to maintain your current codebase structure. You do not need to learn a proprietary SDK or install additional packages specific to SpotVoice.

  • Official OpenAI SDKs work directly
  • No custom client library required
  • Standard JSON request format

Easy Migration

Switching from your current provider involves updating the base URL and API key in your configuration. Because the request fields (model, input, voice, response_format) align with the OpenAI standard, your existing voiceover scripts will function as expected.

Verify your integration by generating a short test audio file. This confirms that your agency’s automated workflow can successfully receive and process audio responses from the SpotVoice API.

  • Update base URL and key
  • Test with a short audio file
  • Resume standard workflow

Supported Formats

Sound wave illustration for: Supported Formats

Choose the audio format that best fits your production pipeline. MP3 and WAV are standard for broadcast and archival, while Opus and FLAC offer efficient compression without quality loss.

MP3

MP3 is a common choice for web and mobile applications. It provides a good balance between file size and audio quality, making it ideal for streaming or quick delivery.

WAV

WAV offers uncompressed audio. Use this format for professional radio spots where peak quality is required before further mixing or mastering.

Opus, FLAC, PCM

Opus provides excellent compression for low-bandwidth environments. FLAC offers lossless compression, while PCM delivers raw, uncompressed audio data for specialized processing needs.

Rate Limits

Sound wave illustration for: Rate Limits

Efficient workflow management requires understanding your API limits. The SpotVoice API enforces a standard rate limit of 60 requests per minute per key, ensuring consistent performance for your production pipelines.

Be aware of the initial threshold: new accounts start with a limit of 10 requests per minute until the first top-up is processed. This allows you to test integration without immediate high-volume pressure.

60 Requests Per Minute

Once your account is funded, the limit increases to 60 requests per minute. This capacity is sufficient for most agency workflows, allowing you to generate multiple voiceovers for radio spots or advertising campaigns in quick succession.

10 Requests Before Top-Up

Before your first top-up, you are restricted to 10 requests per minute. This lower limit is designed for testing and validation purposes. You can generate a few sample files to verify voice quality and format compatibility before scaling up production.

Top-ups via USDT on the TRON network are credited automatically within minutes. Once the transaction is confirmed, your rate limit updates immediately, allowing you to resume higher-volume generation without waiting for manual support intervention.

Queued Processing

Requests are processed sequentially. Under normal load, generation is near real-time, but during peak usage, requests may enter a queue. This ensures that each audio file is generated with consistent quality, even if you are sending multiple files in rapid succession.

Plan your API calls accordingly. If you are generating a long campaign with many variations, consider spacing out your requests slightly to avoid queue delays, especially during the initial 10-request limit phase.

  • Requests are processed one after another.
  • Queuing may occur under heavy load.
  • Ensures consistent generation quality.
Rate Limits

Error Handling

Sound wave illustration for: Error Handling

Errors are straightforward: failed synthesis returns your credit in full, so you only pay for successful audio generation. The API provides clear feedback when a request cannot be completed.

You can integrate standard HTTP status codes into your agency’s automation pipeline to handle retries or alerts efficiently without guessing the cause.

Failed Request Refund

If synthesis fails, the charge is returned in full. You are not billed for requests that do not produce audio.

This ensures you are not billed for failed requests.

Common Errors

Most errors stem from exceeding the 4096 character limit or invalid voice IDs. Check your input payload before resubmitting.

Rate limits (10 req/min initially, 60 req/min after top-up) will also trigger errors if exceeded.

  • 400 Bad Request: Invalid JSON or missing fields
  • 429 Too Many Requests: Exceeded per-minute limit
  • 500 Internal Server Error: Temporary synthesis failure

Status Codes

The API uses standard HTTP status codes. 200 indicates success with audio data in the body.

4xx codes indicate client-side issues like authentication or input errors. 5xx codes indicate temporary server issues.

Use these codes to automate retry logic in your radio spot generation workflow.

Voice Selection

Sound wave illustration for: Voice Selection

Choose from eight distinct voice presets optimized for advertising and radio production. Each voice has a specific tonal quality.

8 Preset Voices

Our library includes eight distinct presets, each grounded in licensed recordings from LibriTTS-R and LibriVox. These voices are based on licensed recordings and provide a consistent sound.

  • 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.

Gender Options

Select voices based on gender preferences to match your brand identity. The four female voices (Aria, Nova, Luna, Sage) and four male voices (Felix, Milo, Atlas, Orion) are available.

Tone Descriptions

Each voice carries a specific tonal character. Use Felix for high-energy product launches or Milo for conversational brand stories. Atlas provides a neutral baseline for news-style updates, while Orion suits deep, documentary-style narrations.

Speed and Language

Sound wave illustration for: Speed and Language

Adjust the speaking pace between 0.25 and 4.0 to match your spot’s timing needs. Slower speeds clarify complex instructions, while faster rates fit tight radio slots. Generation remains roughly real-time, producing about 25 characters of text per second of audio.

Speed Range 0.25–4.0

Use this control to fine-tune delivery without re-recording. Requests process sequentially, so adjust speed to balance queue wait times against final audio length.

Language Code ISO

Specify the ISO language code in the request to ensure accurate pronunciation. This is critical for non-English Latin-script text, as the system defaults to English otherwise.

  • Supported: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish.

Auto-Detection

If you omit the language field, the API guesses based on the script. Latin characters default to English. Explicitly setting the code prevents errors in mixed-language productions.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Our campaign captures attention instantly, turning fleeting moments into memorable brand connections for modern audiences.

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. IETF RFC 7845: Ogg Opus
  3. FFmpeg documentation
  4. OpenAI API reference: create speech
  5. ISO 639 language codes
  6. curl documentation
  7. Tether (USDT)
  8. Python documentation
  9. openai-node on GitHub
  10. TRON developer hub: TRC-20
  11. Creative Commons Attribution 4.0
  12. W3C WAI: making audio and video accessible

More on this site