Developer Guide to Artificial Voice Over API

By Speechora editorial team · Updated 2026-11-19

This guide helps freelance voice-over artists and indie podcasters integrate Speechora’s TTS API into their production workflows. You will learn how to send text and receive audio files using standard HTTP requests, compatible with existing OpenAI SDKs. We cover authentication, endpoint structures, and parameter tuning so you can generate synthetic narration that fits your creative vision without human booking overhead.

We detail the technical specifics of voice selection, language support, and speed controls, ensuring you can scale your audio output efficiently. Whether you are building a podcast automation tool or a dynamic content generator, this documentation provides the concrete examples and code snippets you need to start generating high-quality synthetic speech immediately.

Developer Guide to Artificial Voice Over API

Frequently asked questions

How do I get an API key?

Sign up on the /get-api-key/ page using Google or email plus password. The dashboard displays your single active API key, balance, and usage stats. You can issue a new key at any time; the old one stops immediately. Each account is tied to this specific site.

What is the base URL?

Your API base URL is https://api.bosspay99.cc/v1. All requests, including speech synthesis and voice listing, use this domain. Ensure your client library or HTTP requests point to this address to authenticate correctly with your Bearer token and access the TTS endpoints.

Can I use the OpenAI SDK?

Yes. The request shape matches the OpenAI speech endpoint exactly. You can use official OpenAI SDKs by changing the base_url to https://api.bosspay99.cc/v1 and providing your Speechora API key. This allows you to integrate our TTS engine into your existing workflows seamlessly.

What models are available?

Two models are available: tts-1 and tts-1-hd. Both use the same engine and pricing structure. You can specify either in your request body. The choice does not affect the cost, which remains $10 per 1 million characters regardless of the model selected.

What is the character limit?

Each request supports up to 4096 characters of input text. Spaces and punctuation count toward this limit. If your script exceeds this length, you must split it into smaller parts, generate audio for each, and join the resulting files to create the full narration.

How do I set the language?

Pass the optional language parameter as an ISO code in your request body. 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 accurate synthesis.

What voices are available?

Eight presets are available: Aria, Nova, Luna, Sage, Felix, Milo, Atlas, and Orion. These cover various tones from warm narration to energetic promo. Any voice can speak any of the 23 supported languages, allowing you to mix voices and languages freely in your projects.

How do I change the speed?

Use the speed parameter in your request, accepting values between 0.25 and 4.0. This allows you to slow down narration for clarity or speed up content for quick updates. The default speed is 1.0, providing a natural pacing suitable for most podcast segments.

What formats are supported?

You can choose from mp3, wav, opus, flac, and pcm formats via the response_format field. Select mp3 for web compatibility or wav/flac for high-quality archival. PCM is available for raw audio processing. Each format serves different workflow needs for your audio content production.

What is the rate limit?

You are limited to 60 requests per minute per API key. New accounts start with a lower limit of 10 requests per minute until the first top-up is processed. Requests are processed sequentially, so high volume may cause queuing delays during peak usage times.

What happens if I exceed the limit?

Requests are processed one after another, so exceeding capacity causes your request to wait in a queue. If synthesis fails for any reason, the charge is returned in full. Failed requests do not consume your character balance, ensuring you only pay for successful audio generation.

How do I split long texts?

Divide your text into chunks of up to 4096 characters. Send each chunk as a separate POST request to the speech endpoint. Once you receive the audio files for each part, join them sequentially to create the final continuous audio file for your podcast or video.

Is the audio watermarked?

Yes, every generated file carries an inaudible watermark marking it as synthetic speech. This helps identify AI-generated content without affecting the listening experience. The watermark is embedded in the audio file.

How do I track my usage?

The /get-api-key/ dashboard displays your current balance, trial status, and characters remaining. Request metadata, including time, character count, and status, is kept for billing purposes. You can monitor your consumption directly on the dashboard to manage your budget and plan your content production schedule.

First request

curl

curl https://api.bosspay99.cc/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.bosspay99.cc/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.bosspay99.cc/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

Authentication

Sound wave illustration for: Authentication

Secure your synthetic narration pipeline with a simple Bearer token. Include Authorization: Bearer tts-... in every request header to authenticate your account against the API.

Bearer Token Format

Bearer Token Format

Your API key starts with tts- and must be passed as a Bearer token in the Authorization header. This standard format ensures compatibility with the official OpenAI SDKs by simply adjusting the base URL.

One Active Key Per Account

One Active Key Per Account

Each account maintains exactly one active key. This simplifies integration for freelance voice-over artists who need a single, reliable credential for their podcast automation scripts.

Revoking Old Keys

Issuing a new key instantly invalidates the previous one. Use this feature immediately if you suspect your key was exposed in a log or client-side script.

Endpoints Overview

Sound wave illustration for: Endpoints Overview

The Speechora API provides three core endpoints to manage your synthetic voice-over workflow. The Speech endpoint generates audio from text, while the Voices and Models endpoints allow you to inspect available presets and technical specifications without generating audio.

These endpoints use standard JSON bodies and respond with standard HTTP status codes, making integration straightforward for freelance developers and indie podcasters using the OpenAI SDK or plain HTTP requests.

Speech Endpoint ['POST /v1/audio/speech converts your input text into synthetic audio. You send a JSON body with parameters like model, voice, and input text, and receive an audio file in your chosen format.', 'This is the primary endpoint for generating narration for podcasts, audiobooks, or voice-overs. It handles the synthesis logic, respecting your character limits and rate limits.', {'h3': 'Voices List Endpoint', 'paras': ['GET /v1/voices returns a list of all available voice presets, their associated languages, and supported output formats, along with pricing information. Use this to discover options like Aria, Nova, or Felix before making synthesis requests.', 'You can filter voices by language or tone to find the perfect match for your content.', {'h3': 'Models Endpoint', 'paras': ['GET /v1/models lists the available TTS models, including tts-1 and tts-1-hd. Both models use the same engine and price.', 'Check this endpoint to ensure you are using the correct model identifier for your desired output quality.']}]}]

image

A clean, modern illustration of a laptop screen displaying JSON code snippets next to a waveform audio visualization, symbolizing the connection between text input and audio output for podcast production.

Request Parameters

Sound wave illustration for: Request Parameters

The API accepts text input up to 4096 characters per request, where spaces and punctuation count toward the limit. For longer scripts, split your text into chunks and join the resulting audio files to ensure consistent playback.

Model Selection

Choose between "tts-1" for standard quality or "tts-1-hd" for higher fidelity. Both engines share the same voice presets and pricing structure, so you can switch seamlessly without adjusting your integration logic.

  • "tts-1": Standard quality
  • "tts-1-hd": High quality

Input Text Limits

Each request supports a maximum of 4096 characters. If your narration exceeds this, split the text into parts, generate each segment, and concatenate the audio files for a complete track.

Voice Selection

Select from eight distinct presets, ranging from warm narrators like Aria to deep documentary voices like Orion. Every voice supports all 23 languages, allowing you to maintain a consistent brand tone across multilingual content.

  • Female: Aria, Nova, Luna, Sage
  • Male: Felix, Milo, Atlas, Orion

Response Formats

Sound wave illustration for: Response Formats

The API returns synthesized audio directly in the response body, eliminating the need for separate download steps. You select the desired format via the response_format parameter, which determines the file type and compression characteristics of the generated audio file.

MP3 Output

MP3 is the default format, offering broad compatibility with podcast players, video editors, and web players. It provides efficient compression for easy distribution while maintaining good audio quality for spoken content.

WAV Output

WAV provides uncompressed, high-fidelity audio ideal for professional voice-over workflows where maximum quality is required. Use this format when you plan to process the audio further in a digital audio workstation without losing generational quality.

Opus, FLAC, PCM

Opus is a supported output format. FLAC provides lossless compression for archival purposes. PCM returns raw uncompressed audio data, useful for specific hardware integrations or custom processing pipelines.

Speed Control

Sound wave illustration for: Speed Control

Adjust the pacing of your synthetic narration with the speed parameter, which accepts values from 0.25 to 4.0. This allows you to fine-tune the delivery for different content types, from slow, instructional guides to rapid-fire podcast intros.

Speed Range 0.25-4.0

Set the speed factor to control how fast the AI reads your text. A value of 1.0 represents normal speech. Lower values create a slower, more deliberate tone, while higher values increase the pace for concise updates or energetic promos.

Real-Time Generation

Generation typically runs at roughly real-time speed, processing about 25 characters of text per second. For short phrases, expect a few seconds of latency. Longer texts are split into 4096-character chunks, synthesized, and joined seamlessly.

Queue Handling

Requests are processed sequentially. Under heavy load, your synthesis job may wait in a queue before processing begins. This ensures stability but means generation time may exceed the real-time estimate during peak usage periods.

Speed Control

Language Support

Sound wave illustration for: Language Support

The API supports 23 specific languages, including English, Spanish, French, German, Japanese, and Arabic. You can explicitly set the language using standard ISO codes in the request body. This ensures consistent pronunciation and accent behavior regardless of the input text's origin.

Our voices are trained to speak any of these languages natively. Whether you are producing content for the Brazilian market or recording a German podcast, the same engine handles the nuances without requiring separate model calls.

ISO Language Codes

Pass the language parameter with a valid ISO 639-1 code (e.g., en, es, de, ja). This forces the engine to use the correct phonetic rules for that language.

If you omit this field, the system attempts to guess the language based on the script. For Latin script text that isn't English, explicitly setting the language is recommended to avoid mispronunciation.

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

Automatic Detection

When the language field is empty, the API analyzes the input text's characters to determine the most likely language. Cyrillic text defaults to Russian, while Latin text defaults to English.

This feature simplifies quick integrations where you know the content is primarily English or when you are unsure of the source language.

Non-English Latin Script

Be aware that Latin script is assumed to be English by default. If you send French or German text without the language parameter, it may be pronounced with an English accent.

Always specify the language code for non-English Latin text to ensure accurate articulation and natural flow.

Rate Limits

Sound wave illustration for: Rate Limits

Understanding rate limits helps you plan your audio generation workflow without unexpected interruptions. Speechora enforces limits on a per-key basis, ensuring fair usage for all developers scaling their podcast or voice-over content.

60 Requests Per Minute

Once your account is fully funded, you can send up to 60 requests per minute. This allows for rapid generation of short phrases or batch processing of longer scripts, provided you split them into 4096-character chunks.

10 Requests Before Top-Up

New accounts or those with zero balance are limited to 10 requests per minute. This ensures your free trial or initial credits are used efficiently before you need to top up via USDT on the TRON network.

Per Key Limit

Rate limits apply to each API key individually. Since you have one active key per account, your total throughput is capped by this single key. If you need higher concurrency, issue a new key to stop the old one immediately.

  • Use one key at a time for consistent throughput.
  • Generate a new key to instantly invalidate the old one.
  • Monitor your dashboard for real-time usage stats.

Error Handling

Sound wave illustration for: Error Handling

When synthesis fails, the API returns a non-200 status code and your balance is refunded in full. You are never charged for audio that never arrives, making failed requests cost nothing to retry.

Errors typically stem from invalid parameters or temporary queue congestion. Since requests process sequentially during high load, a timeout might indicate the queue is full rather than a system failure.

Failed Request Refunds

Any request that does not return a 200 OK status results in a full credit refund. This includes cases where the text exceeds 4096 characters, the voice ID is unknown, or the server times out while waiting in the queue.

You do not need to manually claim these refunds. The system automatically restores the character count to your balance immediately upon receiving the error response.

Common Error Codes

["400 Bad Request: The JSON body is malformed or a field like 'voice' or 'model' is missing. Check your payload structure against the specification."]

['429 Too Many Requests: You have exceeded the 60 requests per minute limit for your key, or the 10 requests per minute limit if you are on the free trial.']

['503 Service Unavailable: The queue is currently full. Wait a few seconds and retry; requests are processed in order.']

Debugging Tips

Always log the request ID and timestamp returned in the error response to help support identify the issue. Ensure your text does not contain hidden control characters that might break the JSON parser.

If you receive a 429 error, consider implementing exponential backoff in your client code. For long texts, split your input into chunks under 4096 characters to reduce the chance of a single large request timing out.

  • Verify your Authorization header uses the correct Bearer prefix.
  • Check that your input text is under 4096 characters.
  • Ensure the voice ID matches one of the 8 available presets.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. This compatibility means you can use any HTTP client library in your preferred programming language.

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. W3C WAI: making audio and video accessible
  3. Python documentation
  4. Creative Commons Attribution 4.0
  5. MDN: Web Speech API
  6. LibriTTS-R paper (arXiv 2305.18802)
  7. IETF RFC 7845: Ogg Opus
  8. openai-python on GitHub
  9. Node.js documentation
  10. LibriVox public-domain audiobooks
  11. openai-node on GitHub
  12. curl documentation

More on this site