API Documentation for Text-to-Speech Integration

By NewsRead editorial team · Updated 2026-11-19

This documentation provides a straightforward guide to integrating the NewsRead API into your call center infrastructure. You will learn how to generate natural-sounding IVR prompts, voicemail greetings, and accessibility audio using simple HTTP requests. The guide covers authentication, parameter configuration, and SDK compatibility, ensuring you can deploy voice features without complex engineering overhead.

Designed for startups building voice-powered applications, this reference details the exact request structure for the /v1/audio/speech endpoint. We cover rate limits, supported formats, and error handling to help you manage character quotas and maintain smooth call flows. Whether you are using the OpenAI SDK or raw cURL, you will find the specific endpoints and voice presets needed to launch your project quickly.

API Documentation for Text-to-Speech Integration

Frequently asked questions

What is the API endpoint?

Send a POST request to https://api.playrk555.cc/v1/audio/speech with a JSON body containing your text, voice, and model parameters. You can also retrieve available voices and models via GET requests to /v1/voices and /v1/models respectively.

How do I authenticate?

Include your API key in the request header as Authorization: Bearer tts-<your_key>. Each account has one active key; generating a new key immediately invalidates the previous one, so update your systems promptly after rotation.

Can I use the OpenAI SDK?

Yes. The request shape matches the OpenAI speech endpoint. Configure your SDK’s base_url to https://api.playrk555.cc/v1 and use your site’s key. This allows you to use official OpenAI SDKs without modifying the core request structure.

What models are available?

Two models are available: tts-1 and tts-1-hd. Both use the same engine and pricing. You can select either model in your API requests depending on your quality preference, though the output audio characteristics remain identical for both.

How do I set the voice?

Specify one of eight preset voices in the voice field: aria, nova, luna, sage, felix, milo, atlas, or orion. You can retrieve the full list of voices and their details by sending a GET request to /v1/voices.

What formats are supported?

You can request audio in mp3, wav, opus, flac, or pcm formats by setting the response_format field. Choose the format that best fits your call center infrastructure or IVR system requirements, with mp3 being a common standard.

What is the character limit?

Each API request accepts up to 4096 characters of input text. For longer texts, split them into chunks of this size, generate audio for each part, and join the resulting audio files to create a complete audio file.

How fast is the API?

Generation speed is roughly real-time, processing about 25 characters of text per second. Short phrases may take a few seconds. Requests are processed sequentially, so under load, your request may wait in a queue before synthesis begins.

What are the rate limits?

You are limited to 60 requests per minute per key. New accounts start with a limit of 10 requests per minute until the first top-up is completed. Exceeding these limits may result in delayed processing or errors.

How do I handle errors?

If synthesis fails, the charge is returned in full. Monitor your response status codes to detect failures. Failed requests do not consume your character balance, ensuring you are not billed for unsuccessful audio generation attempts.

Can I change the speed?

Yes, adjust the speed between 0.25 and 4.0 using the speed parameter. This allows you to customize the playback rate for IVR prompts or voicemail greetings to ensure clarity and appropriate pacing for your callers.

How do I get the voice list?

Send a GET request to /v1/voices to retrieve all available voices, languages, formats, and pricing details. This endpoint provides the comprehensive list of eight presets and their characteristics for integration into your application’s voice selection interface.

Is there a Python SDK?

There is no official SDK from us; you can use the official OpenAI Python SDK. Configure it with our base_url and API key to integrate seamlessly with your Python applications without needing a custom client library.

How do I regenerate my key?

Issue a new key from your account dashboard at /get-api-key/. The new key becomes active immediately, and the old key stops working at once. Update your systems promptly to avoid interruptions in your TTS service.

First request

curl

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

Authentication for the NewsRead API relies on a single active Bearer token per account. Include this key in the Authorization header of every request to https://api.playrk555.cc/v1.

Bearer Token Usage

Bearer Token Usage

Pass your key as Authorization: Bearer tts-... in every request. The API validates this token before processing text or checking balance.

API Key Management

API Key Management

Each account maintains exactly one active key. You can view and copy your current key on the /get-api-key/ dashboard page.

Key Regeneration

Issue a new key at any time via the dashboard. The previous key becomes invalid immediately, ensuring tight control over access for your call center infrastructure.

Quickstart with cURL

Sound wave illustration for: Quickstart with cURL

The API accepts text via a standard POST request. You send JSON containing the text, voice selection, and audio format preferences. The service processes the request and returns the generated audio file directly in the response body.

This endpoint is designed for straightforward integration into call center workflows. You can generate IVR prompts or voicemail greetings with minimal code, ensuring natural-sounding news reader voices without complex infrastructure.

Basic Request Structure

Send a POST request to https://api.playrk555.cc/v1/audio/speech. The body must be valid JSON containing your input text and voice parameters. The API returns the audio file after synthesis completes; generation takes roughly real-time for long texts, so short phrases may take a few seconds.

Use this structure for simple text-to-speech tasks. For longer texts, split the input into chunks of up to 4096 characters and join the resulting audio files manually.

  • Endpoint: POST /v1/audio/speech
  • Content-Type: application/json
  • Max input: 4096 characters

Required Fields

The request body requires model (e.g., tts-1), input (your text string), and voice (one of the 8 presets). These fields are essential for generating the audio file.

You may optionally specify response_format (mp3, wav, opus, flac, pcm) and speed (0.25–4.0). If language is omitted, the system guesses it from the script, defaulting to English for Latin text.

  • model: "tts-1" or "tts-1-hd"
  • input: Your text string
  • voice: e.g., "aria", "atlas"

Response Format

On success, the API returns the audio file directly in the response body with the specified response_format. You can save this file to your server or play it directly in your application.

If the request fails, you receive an error code and message. Failed requests are free, and any charge is returned in full. Typical generation speed is roughly real-time for long texts (about 25 characters per second); short phrases take a few seconds.

  • Returns raw audio bytes
  • Format matches response_format param
  • No JSON wrapper for audio

OpenAI SDK Integration

Sound wave illustration for: OpenAI SDK Integration

Leverage existing OpenAI SDKs by simply overriding the base URL to point to https://api.playrk555.cc/v1. This allows your call center infrastructure to use familiar libraries by changing the base_url, though you must configure the authentication header manually. The request shape matches the standard speech endpoint, ensuring immediate compatibility with Python, Node.js, and Go SDKs.

This approach minimizes integration overhead for startups building voice-powered IVR systems. You retain the convenience of standard SDK methods while accessing our character-based pricing and voice presets.

Base URL Configuration

Update your SDK client configuration to direct requests to https://api.playrk555.cc/v1 instead of the default OpenAI endpoint. Ensure your authentication header uses the Bearer token issued from /get-api-key/.

SDK Compatibility

The official OpenAI SDKs work seamlessly because the API follows the same JSON structure. No custom client libraries are required. This ensures your team can use standard tools for error handling and retries.

Code Examples

Initialize the client with your API key and the new base URL. Pass the text, voice, and model parameters just as you would for OpenAI. The response returns the audio file directly, ready for playback in your IVR or voicemail system.

  • Set base_url to https://api.playrk555.cc/v1
  • Use standard tts-1 or tts-1-hd models
  • Pass voice presets like 'atlas' for news-style prompts

Request Parameters

Sound wave illustration for: Request Parameters

Define the generation engine and voice characteristics for your call center prompts. The API supports two models, tts-1 and tts-1-hd, which use the same underlying engine and pricing structure. Select tts-1-hd if you prefer the output of the HD model; both models use the same engine, price, and character processing.

Model Selection

Both models accept the same voice presets and speed parameters. There is no price difference between them, so choose based on your quality needs rather than cost. The engine handles character limits consistently across both options.

Voice Presets

Select one of eight presets optimized for different tones. Use atlas for neutral news delivery or felix for energetic promotional calls. Each voice supports all 23 languages; set the language field if the script uses non-English Latin scripts to ensure correct pronunciation.

  • Female: aria, nova, luna, sage
  • Male: felix, milo, atlas, orion

Speed Control

Adjust the speed parameter between 0.25 and 4.0 to match caller patience levels. Faster speeds reduce generation time but may affect clarity. Slower speeds improve comprehension for complex instructions but increase character processing time.

Supported Audio Formats

Sound wave illustration for: Supported Audio Formats

Choose the format that best fits your call center infrastructure. MP3 offers efficient compression for standard IVR prompts, while WAV provides uncompressed clarity for high-fidelity voicemail greetings. FLAC is available for archival or lossless needs.

All formats support the full range of speed adjustments and voices. The choice depends on your storage constraints and playback quality requirements, not on voice capability differences.

MP3 Compression

MP3 is a common format for most integrations. It balances file size and quality, making it ideal for web-based players and standard telephony systems that handle compressed audio well.

  • Efficient compression
  • Wide compatibility with IVR systems
  • Suitable for high-volume outbound calls

WAV Quality

WAV provides uncompressed PCM audio. Use this when your telephony platform requires raw audio data or when maximum fidelity is needed for critical customer communications.

  • Uncompressed, high-quality audio
  • Immediate playback without decoding latency
  • Larger file sizes than MP3

FLAC Lossless

FLAC offers lossless compression, preserving every detail of the generated speech. This format is suitable for archival purposes or systems that decompress audio locally before playback.

  • Bit-perfect audio reproduction
  • Smaller than WAV, larger than MP3
  • Ideal for quality assurance storage
Supported Audio Formats

Rate Limits

Sound wave illustration for: Rate Limits

Rate limits ensure fair usage and stable synthesis performance. Each API key is capped at 60 requests per minute, preventing sudden spikes from overwhelming the generation queue.

60 Requests Per Minute

Your standard limit is 60 requests per minute (10 per minute before the first top-up). This allows steady volume for IVR prompts or voicemail greetings without throttling.

10 Requests Before Top-Up

New accounts start with a restricted limit of 10 requests per minute. This applies before the first top-up. Once you top up, the limit increases to the standard 60 requests per minute.

Queue Behavior

Requests are processed sequentially. If you exceed the limit or the server is busy, requests wait in a queue rather than failing. Short phrases take a few seconds, while longer texts generate at roughly real-time speed (25 characters per second).

Error Handling

Sound wave illustration for: Error Handling

The API returns standard HTTP status codes to indicate request outcomes. Most errors are immediate and descriptive, allowing your call center application to handle failures gracefully without unnecessary delays. Understanding these codes ensures your IVR system remains stable during high-volume periods or when input constraints are violated.

Common Error Codes

Use 400 for invalid parameters, 401 for authentication issues, 429 for rate limit exceeded, and 500 for server errors. Each error response includes details enabling precise debugging in your integration layer.

  • 400: Invalid request body or missing required fields.
  • 401: Unauthorized; check your Bearer token.
  • 429: Rate limit exceeded; wait and retry.
  • 500: Internal server error; retry with backoff.

Retry Logic

Implement exponential backoff for 500 and 429 errors. Since requests are processed sequentially, transient congestion may cause temporary delays. A simple retry strategy with increasing delays prevents overwhelming the API during peak usage periods.

Character Limits

Each request supports up to 4096 characters. Exceeding this limit returns a 400 error. Split longer texts into smaller chunks and join the resulting audio files client-side to maintain natural flow in your IVR prompts.

Voices Endpoint

Sound wave illustration for: Voices Endpoint

The GET /v1/voices endpoint returns the full list of available voices, languages, and supported formats. Use this to dynamically populate your IVR menus or voice selection interfaces without hardcoding values.

List Available Voices

Retrieve all 8 voice presets with their metadata. The response includes voice ID, gender, and associated language capabilities. This data helps you match voice personality to specific call center use cases, such as using Atlas for news updates or Luna for storytelling prompts.

  • Returns JSON object with voice details
  • Includes 8 presets: Aria, Nova, Luna, Sage, Felix, Milo, Atlas, Orion
  • Metadata includes gender and style hints

Language Codes

The API supports 23 languages. Pass the ISO code in the language field for precise control. If omitted, the system guesses the language from the text script, defaulting to English for Latin script. Explicitly setting the language prevents mispronunciation in mixed-language IVR flows.

  • Supported: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish
  • Not supported: Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali
  • Default guess is English for Latin text

Preset Descriptions

Voices are based on licensed recordings from LibriVox. Each preset offers a distinct tone suitable for different call center roles. For example, use Felix for energetic promo calls or Milo for friendly conversational greetings. All audio files contain an inaudible synthetic watermark.

  • Aria: Warm, clear narrator
  • Felix: Energetic, promo
  • Atlas: Neutral, news
  • Orion: Deep, documentary
  • Milo: Friendly, conversational
  • Luna: Soft, storytelling

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Selecting the right audio format balances file size, quality, and compatibility for your call center infrastructure.

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. FFmpeg documentation
  3. LibriTTS-R paper (arXiv 2305.18802)
  4. OpenAI API reference: create speech
  5. Tether (USDT)
  6. openai-python on GitHub
  7. TRON developer hub: TRC-20
  8. LibriVox public-domain audiobooks
  9. Node.js documentation
  10. curl documentation
  11. ISO 639 language codes
  12. IETF RFC 7845: Ogg Opus

More on this site