What is the TTS API and How Does It Work?

By ScriptEcho editorial team · Updated 2026-11-19

This page explains how our cloud text-to-speech API works, designed specifically for bloggers and WordPress creators who need to automate audio content. You will learn how to send plain text via a simple JSON request and receive an audio file, enabling accessible multi-channel workflows without enterprise overhead. We cover the technical basics, from voice selection to language detection, so you can integrate synthetic speech directly into your posts.

Readers will find clear details on pricing, performance, and data privacy. We break down the per-character billing model, the 4096-character input limit, and how our OpenAI SDK-compatible endpoint simplifies integration. Whether you are generating audio versions of long articles or ensuring accessibility compliance, this guide provides the concrete figures and workflows needed to build your audio workflow efficiently.

What is the TTS API and How Does It Work?

Frequently asked questions

What is the API?

ScriptEcho is a cloud text-to-speech API. Send text via a POST request and receive an audio file. It uses the same request shape as the OpenAI speech endpoint, so official OpenAI SDKs work by changing the base URL to https://api.n9999.info/v1.

Is it a browser extension?

No. ScriptEcho is a REST API accessed via HTTP requests. We do not offer a browser extension, mobile SDK, or WordPress plugin. You integrate it directly into your application or workflow using standard HTTP libraries or the OpenAI SDK.

How does it work?

Send a POST request to https://api.n9999.info/v1/audio/speech with your text, voice, and format. We return the generated audio file. For texts longer than 4096 characters, split the input into parts, generate each, and join the resulting audio files.

What is the input limit?

Each request accepts up to 4096 characters of input text. For longer content, you must split the text into chunks of this size, generate audio for each chunk, and then join the resulting audio files into a single file.

Can I use it for WordPress?

Yes. Since we provide a standard REST API compatible with OpenAI SDKs, you can easily integrate it into WordPress plugins or custom themes. There is no dedicated WordPress plugin, but the API works with any tool that can send HTTP requests.

Does it support all languages?

No. We support 23 languages including English, Spanish, French, German, Japanese, and Arabic. We do not support Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali, or other languages not listed. If the language is not set, it is guessed from the script.

Is the audio watermarked?

Yes. Every generated audio file carries an inaudible watermark that marks it as synthetic speech. This watermark helps identify the content as AI-generated without affecting the listening experience for your audience.

How is pricing calculated?

Pricing is $10 per 1 million characters, or $0.01 per 1,000 characters. Spaces and punctuation count as characters. Failed requests are free, and the charge is returned in full if synthesis fails. There are no monthly plans or minimum spends.

What is a character?

A character is any single unit of input text, including letters, numbers, spaces, and punctuation marks. For example, the phrase "Hello world" counts as 11 characters. Pricing is based on the total character count per request.

Can I use it commercially?

Yes. The API is available for commercial use. Generated audio is not stored, and input text is used only to produce the audio, not for training. You retain control over your generated content for your blog or WordPress site.

Is it fast?

Typical speed is roughly real time on long texts, generating about 25 characters per second. Short phrases may take a few seconds. Requests are processed sequentially, so under load, a request may wait in a queue before processing.

Do I need to install software?

No. ScriptEcho is a cloud API. You only need an internet connection and an API key. You can use the official OpenAI SDKs or standard HTTP libraries to send requests and receive audio files without installing any local software.

What happens to my text?

Input text is used only to produce the audio and is not used for training. Generated audio is returned in the response and not stored. We keep request metadata (time, characters, status) for billing purposes only.

Can I clone voices?

No. We offer 8 preset voices based on licensed recordings. We do not offer custom voice cloning, uploading your own voice, or voice design. You select from the available presets like Aria, Nova, or Felix for your content.

Definition of the API

Sound wave illustration for: Definition of the API

ScriptEcho provides a cloud-based text-to-speech API designed for content creators. Send a POST request to our endpoint, and we return an audio file, eliminating the need for local infrastructure or complex installations.

We use a standard JSON structure compatible with the OpenAI SDK. By pointing your client to our base URL, you can generate speech without managing servers or hardware.

Cloud-based text-to-speech

Our API processes text on our servers, ensuring consistent quality regardless of your local machine. This server-side approach allows bloggers to scale audio generation for entire posts without taxing their own resources.

JSON request structure

Requests follow a familiar JSON format. You specify the model, input text, voice, and optional parameters like speed or language. This structure allows easy integration into existing WordPress workflows or custom scripts.

  • Send text via input field
  • Select voice and model
  • Optional speed and language parameters

Audio file delivery

After processing, the API returns the generated audio file directly in the response. You receive the file in formats like mp3, wav, or opus, ready to embed in your blog posts or distribute via RSS.

How It Differs from Browser Extensions

Sound wave illustration for: How It Differs from Browser Extensions

Browser extensions often rely on local system resources or browser-specific engines, which can vary in quality and availability depending on the user’s device. Our cloud-based API eliminates this dependency by processing text on our servers, ensuring consistent audio quality regardless of the reader’s browser or operating system.

No local installation required

Users do not need to install additional software or manage local voice files. Your blog visitors simply access the audio directly through standard web players, reducing friction for accessibility compliance.

  • No browser extensions to download or update
  • Works across all modern browsers without plugins
  • Reduces device storage usage for readers

Server-side processing

All text-to-speech conversion happens on our servers via a simple HTTP POST request. This offloads CPU-intensive synthesis from your visitor’s device, ensuring smooth playback even on older smartphones or tablets commonly used by blog audiences.

  • Centralized processing ensures uniform audio quality
  • Consistent performance regardless of client device
  • No local voice engine dependencies

Scalability for blogs

Unlike local extensions that may struggle with large texts, our API handles up to 4,096 characters per request automatically. For longer blog posts, the system splits and joins audio seamlessly, allowing you to scale content generation without worrying about local memory limits.

  • Handles long-form content via character splitting
  • No local memory constraints for readers
  • Ideal for high-traffic blog architectures

Use Cases for Bloggers

Sound wave illustration for: Use Cases for Bloggers

Bloggers can convert long-form articles into listenable content, allowing audiences to consume posts during commutes or while multitasking. This workflow transforms static text into dynamic audio without requiring specialized media production teams.

Audio versions of posts

Generate MP3 or WAV files directly from your blog content using our API. Each request processes up to 4096 characters, returning an audio file that can be embedded in WordPress posts or downloaded by readers.

  • Convert text posts into playable audio files instantly.
  • Embed audio players directly into blog themes.
  • Supports multiple formats including MP3, WAV, and OPUS.

Accessibility compliance

Providing audio alternatives helps meet Web Content Accessibility Guidelines (WCAG) standards. Synthetic speech ensures readers with visual impairments or reading difficulties can access your content without relying on manual transcription services.

  • Enhances readability for visually impaired users.
  • Supports diverse language needs with 23 available languages.
  • Includes inaudible watermarks to identify synthetic origin.

Multi-channel content

Repurpose blog posts for podcast-style distribution or social media clips. The API’s character-based pricing means you only pay for what you generate, making it cost-effective to expand your content reach across different platforms.

  • Create audio snippets for social media sharing.
  • Expand content reach without additional production costs.
  • Scale audio generation alongside your blog growth.

Technical Requirements

Sound wave illustration for: Technical Requirements

Bloggers need a stable internet connection because audio generation happens server-side, not in the browser. This removes the need for local processing power or installing extensions, allowing you to generate audio for long posts directly from your content management system.

Internet connection needed

Since processing occurs on our cloud, your WordPress site or blog must be online to trigger synthesis. This ensures consistent performance regardless of your local hardware, making it ideal for automating content at scale.

API key authentication

Access is secured via a unique Bearer token sent in the request header. You obtain this key by signing up at /get-api-key/, where you can also monitor your character usage and balance in real-time.

  • Use Authorization: Bearer tts-... for every request.
  • One active key per account; replace it anytime.

HTTP POST requests

Send text data via standard POST requests to https://api.n9999.info/v1/audio/speech. The endpoint accepts JSON bodies, making it easy to integrate with existing WordPress plugins or custom scripts without learning a proprietary protocol.

Supported Input Text

Sound wave illustration for: Supported Input Text

Input text is the raw material for synthesis, processed directly from your blog content or CMS export. The API accepts standard character strings without requiring complex markup, allowing seamless integration into automated workflows for WordPress or static sites.

4096 character limit

Each API request supports a maximum of 4096 characters, including spaces and punctuation. For longer articles, split the content into chunks of this size and join the resulting audio files sequentially. This ensures consistent generation speed and avoids timeout errors during processing.

  • Count every character, including spaces and punctuation.
  • Split texts exceeding 4096 characters into segments.
  • Join generated audio files for full articles.

Unicode support

The system handles Unicode characters across all 23 supported languages, including non-Latin scripts like Arabic, Chinese, and Japanese. This allows creators to publish multilingual content without encoding issues, ensuring accurate pronunciation for diverse audiences.

Plain text input

The system accepts plain text input without requiring HTML tags, SSML, or custom formatting. This simplicity reduces preprocessing overhead for developers, as the API processes raw strings directly, making it ideal for automated blog-to-audio pipelines.

Output Audio Characteristics

Sound wave illustration for: Output Audio Characteristics

The audio output is a synthetic speech file containing an inaudible watermark that marks it as machine-generated. This watermark remains in the final MP3, WAV, Opus, FLAC, or PCM files without affecting playback quality, providing a clear distinction between human and artificial voices for your blog listeners.

Synthetic speech watermark

Every generated file carries an inaudible watermark that marks it as synthetic speech. This ensures transparency for your audience while maintaining high audio fidelity across all supported formats like MP3, WAV, Opus, FLAC, and PCM.

Real-time generation

Audio is generated at roughly real-time speed, averaging about 25 characters of text per second of output. Longer texts are split into parts and joined seamlessly, while short phrases may take a few seconds to process. Requests are handled sequentially, so high load may introduce slight queue delays.

No storage of audio

Generated audio is returned in the response and not stored on our servers. Input text is used only to produce the audio and is not used for training. Only request metadata (time, characters, status) is kept for billing purposes.

Voice Selection Process

Sound wave illustration for: Voice Selection Process

We offer eight preset voices designed for clear, professional narration, ranging from warm narrators to deep documentary tones. Each voice is engineered to handle long-form blog content without sounding robotic, ensuring your audience stays engaged.

8 preset voices

Our library includes aria, nova, luna, and sage for female tones, alongside felix, milo, atlas, and orion for male voices. These presets cover everything from upbeat promotions to calm instructional guides, giving you precise control over your blog's audio personality.

  • 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 and tone options

Select voices based on the mood of your post. Use Felix for energetic product reviews or Orion for serious documentary-style deep dives. The consistent tone across all voices ensures a uniform listening experience for your readers.

Language matching

All eight voices speak all 23 supported languages fluently. While the API guesses the language from Latin script (defaulting to English), you should explicitly set the language parameter for non-English texts to ensure accurate pronunciation and intonation.

Voice Selection Process

Language Detection

Sound wave illustration for: Language Detection

Language handling balances automation with precision, ensuring audio matches your content’s intent. The API guesses the language from the script, but explicit control prevents mismatches for mixed-language posts.

Automatic detection

The system identifies language from the input script automatically. This works reliably for distinct scripts like Cyrillic or Hanzi.

Latin script default

Text in Latin characters defaults to English if no language is specified. This simplifies setup for English blogs but requires care for other languages using the same script.

  • Latin text without a language code generates English audio.

Manual language override

Set the language field with an ISO code (e.g., de, fr, es) to force the correct voice. This ensures accurate pronunciation for non-English content using Latin letters.

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

Cost Structure

Sound wave illustration for: Cost Structure

ScriptEcho charges $0.01 per 1,000 characters, with spaces and punctuation included in the count. This transparent model scales directly with your content volume, making it ideal for blogs with fluctuating traffic. Failed requests incur no charge, ensuring you only pay for successful audio generation.

Per-character billing

Costs are calculated strictly by character count. At $10 per million characters, you can generate substantial audio libraries without unexpected fees. Long articles are split into 4,096-character segments, and the resulting audio files are joined seamlessly.

  • Rate: $0.01 per 1,000 characters
  • Spaces and punctuation count as characters
  • Failed requests are free

No fixed monthly cost

There are no subscriptions, seats, or minimum spends. You top up via USDT on the TRON network (TRC-20) with a $5 minimum. Credits do not expire, allowing you to build a balance over time for consistent publishing schedules.

  • No monthly plans or subscriptions
  • Balance never expires
  • Top-up via USDT (TRC-20) only

Trial credit availability

New accounts signed in with Google receive $0.50 in trial credit, valid for 7 days. This covers approximately 50,000 characters, allowing you to test voice quality and integration workflows before committing to paid usage.

  • $0.50 credit for Google sign-ins
  • Valid for 7 days
  • Email/password accounts start without trial

Integration Complexity

Sound wave illustration for: Integration Complexity

The API follows a straightforward HTTP POST structure, sending JSON bodies to generate audio files. Developers can use standard cURL commands or any HTTP client to submit text and receive audio responses. This simplicity reduces integration time for blog workflows.

The API mirrors the OpenAI speech endpoint shape. By adjusting the base_url to https://api.n9999.info/v1, you can use official OpenAI SDKs directly. This compatibility allows developers to leverage familiar libraries for authentication and request handling without learning a new proprietary protocol.

Simple API calls

Integration requires only an API key and a standard HTTP POST request. Send your text payload to the speech endpoint and receive a binary audio file in seconds. This minimal overhead fits easily into existing content management systems.

Authentication is handled via a Bearer token in the Authorization header. One active key per account ensures secure access. Rate limits are set at 60 requests per minute, which is sufficient for most blog publishing schedules without complex queuing logic.

  • - Standard HTTP POST requests
  • - JSON input format
  • - Binary audio response

OpenAI SDK compatibility

The API endpoint structure matches the OpenAI speech endpoint exactly. This means you can switch the base_url to https://api.n9999.info/v1 and use the official OpenAI SDKs with minimal code changes. Existing integrations can often be adapted without rewriting the core logic.

This compatibility extends to library support, allowing you to use tools already familiar to your team. You do not need to install a proprietary client library. The standard SDK handles retries and authentication, reducing boilerplate code in your application.

Custom plugin options

While we do not provide a dedicated WordPress plugin, the simple API design allows developers to build custom plugins that auto-generate audio for new posts. This approach gives you full control over when and how audio is created, ensuring it fits your specific editorial workflow.

You can trigger synthesis when a post is published or scheduled. The plugin can handle character splitting for long articles and manage the audio file storage locally. This flexibility ensures the solution scales with your content volume without relying on third-party themes or pre-built widgets.

Data Privacy

Sound wave illustration for: Data Privacy

When you generate audio for your blog, your input text is processed solely to create the audio file and is never used to train our models. This ensures your original content remains distinct from our training data, preserving your intellectual property without hidden usage rights.

No text training

Your input text is used exclusively for synthesis and is not retained for model improvement. This separation means your unique blog posts or WordPress content do not contribute to the underlying voice engine's training set, keeping your source material private and distinct.

No audio storage

Generated audio is returned directly in the API response and is not stored on our servers after delivery. You retain full control over where the audio file is saved, whether on your WordPress media library or another hosting service, ensuring no duplicate copies linger in our cloud.

Metadata retention

We retain request metadata, including timestamp, character count, and status, strictly for billing and usage verification. This data is minimal and necessary only to ensure accurate charges based on the character-based pricing model and to support troubleshooting if a request fails.

Performance Metrics

Sound wave illustration for: Performance Metrics

The API generates audio at roughly real-time speed, processing about 25 characters per second for long texts. Short phrases may take a few seconds to synthesize. Requests are processed sequentially, meaning under heavy load a request might wait in a queue before starting.

Real-time speed

Long-form content is generated at a pace close to actual playback time. This allows for predictable hosting costs and bandwidth planning when creating audio versions of blog posts.

Queue handling

Since requests are processed one after another, high concurrency can lead to queuing delays. The rate limit is 60 requests per minute per key, with a lower 10 requests per minute limit before the first top-up.

Character processing rate

Speed is measured in characters processed per second, averaging 25 chars/sec. This metric helps you estimate the total time required to convert a full article into speech.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Each voice maintains a consistent accent profile regardless of the language selected.

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

More on this site