Developer Documentation for Text-to-Speech API

By Dyslexia Tech Watch editorial team · Updated 2026-11-19

This documentation provides the technical specifications for the Dyslexia Tech Watch API, designed for developers integrating text-to-speech into accessibility-focused applications. You will find precise details on the OpenAI-compatible endpoint, including request shapes, supported voice presets, and output formats. The guide covers essential integration steps, such as authentication, rate limits, and error handling, ensuring you can reliably synthesize audio for users with dyslexia or reading difficulties.

The API accepts text input and returns audio files via a simple POST request, supporting standard libraries like the official OpenAI SDK. We detail the eight voice options, language compatibility across 23 languages, and pricing structures. Whether you are building screen readers or educational tools, this reference helps you evaluate the engine’s reliability, clarity, and cost efficiency for your product team’s needs.

Developer Documentation for Text-to-Speech API

Frequently asked questions

How do I get an API key?

Sign up on /get-api-key/ using Google or email plus password. Accounts are per site. The dashboard displays your active key, balance, and usage. One key is issued per account; a new key stops the old one immediately upon issuance.

What is the base URL for the API?

The API base URL is https://api.nwrplay.info/v1. Use POST https://api.nwrplay.info/v1/audio/speech for synthesis. Retrieve available voices and models via GET /v1/voices and GET /v1/models respectively.

Does the API support streaming?

No, the API does not support streaming, WebSockets, or real-time partial audio. You send a POST request with your text and receive the complete audio file in the response. For long texts, split input into 4096-character chunks and join the resulting files.

How do I use the OpenAI SDK?

Use the official OpenAI SDK by changing the base_url to https://api.nwrplay.info/v1. Pass your API key in the Authorization header. The request shape matches the OpenAI speech endpoint, allowing direct compatibility.

What happens if a request fails?

Failed requests are free. If synthesis fails, the charge is returned in full. The API returns an error status, but no characters are deducted from your balance. You can retry the request or adjust parameters like speed or voice without additional cost.

What are the rate limits?

Limits are 60 requests per minute per key. New accounts without top-ups start at 10 requests per minute. Requests process sequentially, so under load, a request may wait in a queue. Longer texts take time proportional to their length, affecting throughput.

Can I change my API key?

Yes, you can issue a new key at any time via the dashboard. The new key becomes active immediately, and the old key stops working at once. This allows secure rotation without downtime, ensuring your integrations continue using the valid credential.

What voices are available?

Eight presets are available: aria, nova, luna, sage (female); felix, milo, atlas, orion (male). All voices support 23 languages. Voices are based on licensed recordings from LibriTTS-R and LibriVox. Each generated file carries an inaudible watermark marking it as synthetic speech.

First request

curl

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

Access the TTS API using a Bearer token in the Authorization header. Each account holds one active key, which must be passed with every request to authenticate usage and track billing against your balance.

Bearer Token Format

Bearer Token Format

Include the header Authorization: Bearer tts-... in your requests. The token string starts with tts- and is unique to your account on nwrplay.info.

Generating API Keys

Generating API Keys

Keys are available immediately after signing up via Google or email on the /get-api-key/ page. The dashboard displays your current key, balance, and character limits.

Rotating Keys

Issue a new key at any time via the dashboard. The previous key stops working instantly, ensuring no overlap or duplicate usage charges during rotation.

Endpoints Overview

Sound wave illustration for: Endpoints Overview

The API exposes three primary endpoints for text-to-speech operations. The speech generation endpoint accepts your text payload and returns audio data. The voices and models endpoints provide metadata about available synthesis options without consuming credits.

These endpoints follow standard REST conventions. You can query available voices and model configurations before initiating audio generation to ensure your application aligns with the supported formats and language constraints.

Speech Generation Endpoint

Send text to this endpoint to receive synthesized audio. The request shape matches the OpenAI speech endpoint, allowing you to use existing OpenAI SDKs by simply updating the base URL. Each request processes up to 4096 characters of input text.

  • Endpoint: POST /v1/audio/speech
  • Returns: Audio file in requested format
  • Input: JSON body with model, input, voice, and format

Voices Listing Endpoint

Retrieve the full list of available voices, their associated languages, supported formats, and pricing details. This endpoint helps you verify compatibility before making synthesis requests, ensuring your selected voice supports the target language and audio format.

  • Endpoint: GET /v1/voices
  • Returns: Voice ID, name, gender, languages, formats
  • No credit consumption for queries

Models Listing Endpoint

View available model configurations. The API currently supports two models: 'tts-1' and 'tts-1-hd'. Both models use the same underlying engine and pricing structure, offering flexibility in audio quality settings without affecting cost.

  • Endpoint: GET /v1/models
  • Returns: Model ID, name, status
  • Supported models: tts-1, tts-1-hd

Request Parameters

Sound wave illustration for: Request Parameters

The API accepts model values of "tts-1" or "tts-1-hd", both using the same engine and pricing tier. Specify input as the text to synthesize, limited to 4096 characters per request. Longer texts require client-side splitting and audio concatenation.

Model Selection (tts-1)

Both tts-1 and tts-1-hd map to the same underlying engine and price. The choice does not affect audio quality or cost, allowing consistent integration across environments.

  • tts-1: Standard model identifier
  • tts-1-hd: High-definition identifier
  • Same engine, same price

Input Text Limit

Each request supports up to 4096 characters. Spaces and punctuation count toward this limit. For longer content, split the text into chunks, generate audio for each, and join the files client-side.

  • Max 4096 characters per request
  • Includes spaces and punctuation
  • Split and join for longer texts

Voice Parameter

Select one of eight preset voices using the voice field. Voices are designed for clarity and accessibility, with distinct tones for narration, instruction, or conversation. Choose based on your user interface's tone requirements.

  • aria: Warm, clear narrator
  • nova: Bright, upbeat
  • luna: Soft, storytelling
  • sage: Calm, instructional
  • felix: Energetic, promo
  • milo: Friendly, conversational

Response Formats

Sound wave illustration for: Response Formats

The API returns audio files in multiple formats to suit different playback environments. You specify the desired output using the response_format parameter in your request body. This flexibility allows you to balance file size, quality, and compatibility without needing external conversion tools.

MP3 Output

MP3 is the default format, offering broad compatibility across web players and mobile devices. It provides efficient compression with acceptable quality for most speech applications, making it a reliable choice for standard delivery pipelines.

  • Default response format
  • Wide player compatibility
  • Efficient storage size

WAV Output

WAV delivers uncompressed, high-fidelity audio ideal for editing or archival purposes. This format preserves the full audio detail generated by the TTS engine, ensuring no data loss during playback or further processing.

  • Uncompressed audio
  • High fidelity
  • Editing friendly

OPUS and FLAC Options

OPUS provides efficient compression for streaming and web contexts, balancing quality with low bandwidth usage. FLAC offers lossless compression, reducing file size while maintaining exact audio quality, suitable for storage-efficient archival needs.

  • OPUS: efficient compression
  • FLAC: lossless compression
  • Supports low bandwidth

Integration Examples

Sound wave illustration for: Integration Examples

Integrate the TTS API using standard HTTP requests or the OpenAI SDK. The endpoint accepts JSON payloads with text, voice, and format parameters, returning audio files directly in the response body.

Curl Command Example

Use a standard POST request to generate speech. Replace YOUR_API_KEY with your token from the dashboard.

  • curl -X POST "https://api.nwrplay.info/v1/audio/speech" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Hello world", "voice": "nova", "response_format": "mp3"}' \ -o speech.mp3

OpenAI SDK Setup

Install the official OpenAI Python or Node SDK. Initialize the client by pointing the base URL to our API domain.

  • import openai client = openai.OpenAI(base_url="https://api.nwrplay.info/v1", api_key="YOUR_API_KEY") response = client.audio.speech.create(model="tts-1", voice="nova", input="Test text")

Base URL Configuration

All API calls route through https://api.nwrplay.info/v1. This ensures compatibility with existing OpenAI SDK configurations without code changes.

Integration Examples

Rate Limits

Sound wave illustration for: Rate Limits

The API enforces a standard rate limit of 60 requests per minute per active key. This capacity is sufficient for most batch processing and moderate-volume applications without requiring complex retry logic.

Requests Per Minute

Each API key allows up to 60 requests per minute. This limit applies uniformly across all endpoints, including speech generation and voice listing.

Pre-Top-Up Limit

Accounts without a top-up are restricted to 10 requests per minute. This lower limit helps manage resource usage during the free trial or initial testing phase before financial commitment.

Queue Behavior

Requests are processed sequentially. Under load, additional requests may wait in a queue before synthesis begins. This can increase latency for short phrases, though long-text generation typically proceeds at roughly real-time speed (25 characters per second).

Error Handling

Sound wave illustration for: Error Handling

Synthesis failures trigger an immediate, full refund to your account balance. Unlike partial failures, the entire request cost is reversed, so you are never charged for audio that was not delivered. This ensures accurate billing even when the queue causes timeouts or engine errors.

Common Error Codes

The API returns standard HTTP status codes. A 401 indicates an invalid or expired Bearer token. A 429 signals you have exceeded the 60 requests per minute limit. Other 5xx errors indicate temporary server-side issues during synthesis.

Refund on Failure

When synthesis fails, the charge is returned in full. The refund appears in your dashboard immediately, allowing you to retry without waiting for manual processing. Failed requests do not consume your monthly character quota.

Retry Strategy

Implement exponential backoff for 429 and 5xx errors. Since requests are processed sequentially, brief delays often resolve queue congestion. Retry up to three times before alerting the user, ensuring you do not hit rate limits again.

Voice Selection

Sound wave illustration for: Voice Selection

Selecting the right voice ensures your text-to-speech output matches the intended user experience. Our API provides eight distinct presets, categorized by tone and gender, allowing product teams to fine-tune audio clarity for accessibility needs.

Every generated file carries an inaudible watermark that marks it as synthetic speech. The selection process is straightforward: specify the voice ID in your request payload to generate audio that aligns with your application’s voice.

For non-English Latin script text, explicitly setting the language parameter prevents incorrect language guessing, which defaults to English. This precision is critical for accurate pronunciation in multilingual applications.

Female Voices List

We offer four female presets designed for different auditory preferences.

Aria provides a warm, clear narration style suitable for long-form content. Nova delivers a bright, upbeat tone ideal for engaging, short messages. Luna offers a soft, storytelling quality, while Sage presents a calm, instructional demeanor.

  • Aria: warm, clear narrator
  • Nova: bright, upbeat
  • Luna: soft, storytelling
  • Sage: calm, instructional

Male Voices List

Our male voices cover a range of professional and casual tones.

Felix is energetic, perfect for promotional content. Milo sounds friendly and conversational for user interactions. Atlas provides a neutral, news-like delivery, and Orion offers a deep, documentary-style voice for authoritative content.

  • Felix: energetic, promo
  • Milo: friendly, conversational
  • Atlas: neutral, news
  • Orion: deep, documentary

Language Compatibility

All eight voices can speak all 23 supported languages, including Arabic, Chinese, English, and Spanish. This flexibility allows a single voice model to serve diverse user bases without switching engines.

If the language parameter is omitted, the system guesses based on the script, defaulting to English for Latin text. For mixed-language content, explicitly defining the language ensures accurate pronunciation and avoids errors.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. The voices do not distort at higher rates, which is essential for users who rely on TTS for reading comprehension.

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

More on this site