How Does Our Text-to-Speech API Work Exactly?

By LumiTales editorial team · Updated 2026-11-18

This page explains how the LumiTales text-to-speech API converts your scripts into expressive audio files for children’s games and interactive stories. We cover the core technology, voice selection, and technical details so indie developers can integrate narration without hiring voice actors or managing complex audio pipelines.

You’ll learn how to structure requests, choose from eight distinct voices, and handle 23 languages with automatic detection. We also detail our per-character pricing, free trial, and data privacy rules. Whether you need calm narration or energetic dialogue, this guide provides the concrete facts you need to build consistent, high-quality audio experiences.

How Does Our Text-to-Speech API Work Exactly?

Frequently asked questions

What is text-to-speech technology?

It is a cloud API where you send text and receive an audio file. You POST JSON to the speech endpoint, specifying model, voice, and format. It converts written words into synthetic speech files like MP3 or WAV, allowing developers to integrate narration directly into their applications without managing audio hardware.

How do TTS voices sound compared to human actors?

Voices are based on licensed recordings from LibriTTS-R and LibriVox. They sound natural but carry an inaudible watermark marking them as synthetic. They lack emotion tags but offer consistent, clear narration suitable for games and stories.

Are the voices synthetic or real recordings?

They are synthetic voices generated from licensed recordings. The audio is synthesized in real-time by the API engine. While the source material is human speech, the output is a new synthetic file, not a direct playback of the original recording, and includes a digital watermark.

Can one voice speak multiple languages?

Yes, every voice can speak any of the 23 supported languages. You can use Aria for English or Luna for French within the same voice preset. This allows consistent character voices across different linguistic versions of your game or story without needing to manage separate voice actors for each language.

How is the language detected in the text?

The API guesses the language from the script if you do not set the language field. Latin script defaults to English. For non-English Latin text, you should explicitly set the ISO language code. This ensures accurate pronunciation for languages like Spanish, German, or Portuguese without manual configuration.

What is the difference between tts-1 and tts-1-hd?

Both models use the same engine and have the same price. The only difference is the model identifier in your request. You can choose either "tts-1" or "tts-1-hd" for your synthesis jobs without any change in cost or character limits, allowing flexibility in your API configuration.

Do the voices have emotions or tone variations?

No, the voices do not have emotion tags or tone variations. They are preset styles like "warm" or "energetic" but remain consistent during generation. You control the overall speed (0.25–4.0) but cannot dynamically change the emotional tone of a specific sentence within a single audio file.

Is there a watermark in the generated audio?

Yes, every generated file carries an inaudible watermark that marks it as synthetic speech. This is embedded in the audio data itself. It helps identify the content as AI-generated without affecting the listening experience. The watermark is present in all output formats, including MP3, WAV, and FLAC.

How long does it take to generate audio?

Typical speed is roughly real time, about 25 characters per second. Short phrases take a few seconds. Requests are processed sequentially, so under load, a request may wait in a queue. Longer texts are split and joined, which may add slight latency compared to instant short clips.

Can I use the API for commercial projects?

Yes, the API is designed for developers to integrate into commercial products. The voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and LibriVox public-domain audiobook readings. You pay per character used, with no monthly plans or seats. Failed requests are free, ensuring you only pay for successful audio generation.

Are the voices based on public domain content?

The voices are based on licensed recordings from LibriTTS-R, which uses CC BY 4.0 data, and LibriVox public-domain audiobook readings. This foundation allows for consistent, high-quality voices.

What happens if the text contains special characters?

The API handles standard text input. Spaces and punctuation count as characters toward your limit. If the text exceeds 4096 characters, you must split it into parts. Special characters within the limit are processed normally, but complex formatting may not be preserved in the final audio output.

Can I control the speed of the narration?

Yes, you can set the speed parameter between 0.25 and 4.0. This allows you to slow down narration for clarity or speed it up for energetic scenes. The default speed is 1.0. Adjusting speed affects the duration of the generated audio file proportionally to the setting you choose.

Is the API suitable for real-time applications?

It is not suitable for strict real-time streaming because requests are processed sequentially. While generation is fast, there is no WebSocket or streaming endpoint. You receive the full audio file after processing. For games, pre-generating audio assets is recommended over on-the-fly generation during gameplay.

Understanding TTS Technology

Sound wave illustration for: Understanding TTS Technology

LumiTales transforms your written text into natural-sounding audio through cloud-based synthesis. You send a JSON payload via POST to our API endpoint, and we return the synthesized audio file. This request-based model ensures that each synthesis job is processed independently, though requests are handled sequentially, meaning heavy loads may cause slight queuing delays.

The system processes up to 4096 characters per request, making it ideal for splitting longer fairy tales or game dialogues into manageable segments. You simply concatenate the resulting audio files to create your final asset, keeping your pipeline simple and predictable.

Text to Audio Conversion

Our API accepts plain text and returns high-quality audio files. You can choose from formats like MP3, WAV, OPUS, FLAC, or PCM. The engine uses licensed recordings from LibriTTS-R, ensuring consistent quality without the need for complex audio pipelines or hiring voice actors.

  • Supports up to 4096 characters per request
  • Multiple output formats including MP3 and WAV
  • Sequential processing ensures consistent output quality

Cloud-Based Processing

All synthesis happens on our servers, so you don’t need local GPU power. You just send a standard HTTP request with your API key. The server handles the heavy lifting and returns the audio file directly in the response.

  • No local hardware required
  • Standard HTTP POST endpoint
  • Automatic audio return in response

Request-Based Synthesis

Each call is treated as a discrete job. While jobs are processed one after another, ensuring no single request blocks others indefinitely, high traffic may result in queuing. This model keeps costs predictable based on character count rather than compute time.

  • Processed sequentially under load
  • Predictable character-based billing
  • No blocking of other API calls

Voice Characteristics and Styles

Sound wave illustration for: Voice Characteristics and Styles

LumiTales provides eight distinct voice presets designed to bring your indie games and interactive stories to life without the need for hiring voice actors. Each voice offers a specific preset style, ensuring consistent narration across your project.

Warm and Clear Narrators

For children's stories, aria delivers a warm, clear narrative style perfect for bedtime tales. Luna offers a soft, storytelling approach that keeps young listeners engaged without overwhelming them.

Upbeat and Energetic

Felix brings high energy to promotional content or action scenes, while nova provides a bright, upbeat tone ideal for lively game interactions. These voices keep the pace exciting for players.

Calm and Instructional

Sage is designed for calm, instructional narration, making it ideal for tutorials or gentle fairy tale endings. Milo offers a friendly, conversational tone that feels like a companion guiding the player.

Language Support Capabilities

Sound wave illustration for: Language Support Capabilities

LumiTales supports 23 languages, including English, Spanish, Japanese, and Arabic. Our voices are versatile and can speak any supported language naturally. This makes it easy to create content for global audiences without needing multiple voice actors.

23 Supported Languages

We cover a wide range of languages suitable for children's stories and games. The list includes Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. If a language is not listed, it is not supported.

Automatic Language Detection

The API guesses the language from your text script. Latin script text defaults to English. For other languages using Latin characters, you must set the language parameter explicitly. This ensures accurate pronunciation for non-English stories.

Multilingual Storytelling

Any voice can speak any of the 23 languages. You can mix languages within a single project. This is useful for interactive stories where characters might speak different languages. The same high quality applies across all supported languages.

Audio Quality and Formats

Sound wave illustration for: Audio Quality and Formats

LumiTales delivers clear, high-fidelity audio generated by licensed recordings from LibriTTS-R and LibriVox. Each file includes an inaudible watermark marking it as synthetic speech, ensuring transparency for your indie game or children's story projects.

High-Fidelity Output

Our engine produces natural-sounding narration suitable for interactive stories. The audio is generated at roughly real-time speed, allowing you to hear results quickly even during development.

Multiple Format Options

Choose from mp3, wav, opus, flac, or pcm via the response_format field. This flexibility lets you pick the best balance of quality and file size for your game engine.

Consistent Quality

Requests are processed sequentially, which may introduce slight delays under load but ensures stable output. Failed requests incur no charge, protecting your budget while you iterate.

Integration for Indie Developers

Sound wave illustration for: Integration for Indie Developers

LumiTales is built for indie developers who need expressive, licensable voices for children's games and interactive stories. Get consistent, high-quality narration without hiring voice actors or managing complex audio pipelines.

Easy API Setup

Start by creating an account at /get-api-key/ to receive your Bearer token. Send a POST request to https://api.play77qq.com/v1/audio/speech with your text and chosen voice. The API returns the audio file directly, ready for immediate use in your project.

  • No complex onboarding required
  • Simple JSON request body
  • Instant audio delivery

SDK Compatibility

Use the official OpenAI SDKs by simply changing the base_url to https://api.play77qq.com/v1. Your existing code logic remains intact, making integration into Unity, Godot, or web-based stories seamless without learning a new proprietary system.

Scalable Solution

Process up to 60 requests per minute with a single key. For longer narratives, split text into 4096-character chunks and join the resulting audio files. This ensures reliable performance even during peak load times in your interactive story.

Pricing and Accessibility

Sound wave illustration for: Pricing and Accessibility

LumiTales uses a simple per-character billing model: $10 per 1 million characters, or $0.01 per 1,000 characters. Spaces and punctuation count toward this total, making costs predictable for long fairy tales or extensive dialogue trees. Failed requests are free, so you only pay for successful audio generation.

This transparent structure eliminates surprises. You can easily estimate costs for your indie game’s narration needs without managing complex tiers or minimum spend requirements.

Affordable Per-Character Rate

At $0.01 per 1,000 characters, you can generate substantial content for your interactive stories without breaking the budget. This rate applies regardless of voice model, as both tts-1 and tts-1-hd share the same engine and price point.

  • $10 per 1 million characters
  • $0.01 per 1,000 characters
  • Spaces and punctuation count

Free Trial Available

Sign up with Google to receive $0.50 in free credit, valid for 7 days. This allows you to generate approximately 50,000 characters of audio to test voice quality and integration before committing funds.

  • $0.50 initial credit
  • 50,000 characters of audio
  • 7-day validity

No Hidden Fees

There are no monthly plans, seats, or subscriptions. Top-ups are handled via USDT on the TRON network, with automatic crediting within minutes. Your balance never expires, and you only pay for what you use.

Failed requests are refunded in full, ensuring you never pay for errors. Support is via email only, with no hidden costs for assistance.

  • No monthly plans
  • No minimum spend
  • Balances never expire
Pricing and Accessibility

Use Cases in Gaming and Stories

Sound wave illustration for: Use Cases in Gaming and Stories

LumiTales lets indie developers replace voice actors with consistent, licensable narration. By sending text to our API, you generate character dialogue or story segments in seconds, keeping production costs predictable without hiring talent or managing complex audio pipelines.

This approach ensures every character sounds distinct and professional, from warm narrators to energetic prompts, all within a single integration workflow.

Character Dialogue

Assign distinct personalities to NPCs using our eight voice presets. Use Aria’s clear narration for exposition or Felix’s energetic tone for promo-style interactions, ensuring each character feels unique without re-recording lines.

  • Distinct voices for different character archetypes
  • Consistent tone across game sessions
  • No need for voice actor contracts

Narration for Fairy Tales

Generate long-form story content efficiently. Split texts exceeding 4096 characters into parts, join the audio files, and maintain a seamless listening experience. Luna’s soft storytelling voice works perfectly for classic tales.

  • Automatic handling of long texts
  • Seamless audio joining
  • Ideal for bedtime story apps

Interactive Stories

Support 23 languages to reach global audiences. The API detects language from script or accepts explicit ISO codes, enabling multilingual branching narratives without managing separate voice tracks for each language variant.

  • Support for 23 languages
  • Automatic language detection
  • Scalable content localization

Technical Specifications

Sound wave illustration for: Technical Specifications

Our API follows a standard JSON structure, making it easy for indie developers to integrate. You send a POST request with your text, chosen voice, and desired format. The system processes each request sequentially, ensuring consistent quality for your game’s audio assets.

Request Body Structure

Send a JSON payload containing the model (tts-1 or tts-1-hd), input text (max 4096 characters), voice preset, and response_format. Optional fields include speed (0.25–4.0) and language ISO code. Authentication requires a Bearer token in the header.

Response Format

The endpoint returns the audio file directly in the requested format (mp3, wav, opus, flac, or pcm). Failed requests incur no charge and return the full credit. For long texts, split into chunks and join the resulting audio files.

Rate Limits

Each API key allows 60 requests per minute. New accounts start with a limit of 10 requests per minute until the first top-up is processed. Requests are queued if the system is under load, processing them one after another.

Voice Selection Guide

Sound wave illustration for: Voice Selection Guide

Selecting the right voice ensures your children's games and interactive stories feel authentic. Each preset has a distinct character, from warm narrators to energetic promo styles, helping you match the tone of your fairy tales or dialogue scenes without hiring voice actors.

Choosing the Right Voice

Match the voice to your narrative mood. Use calm voices for instructional segments and bright ones for upbeat adventures. Since any voice can speak any supported language, you can maintain consistent character voices across different linguistic contexts.

Female Voice Options

Aria offers a warm, clear narration style ideal for classic storytelling. Nova brings a bright, upbeat energy perfect for lively game dialogue. Luna provides a soft, storytelling tone for gentle fairy tales, while Sage delivers calm, instructional clarity for educational content.

Male Voice Options

Felix adds energetic, promo-style enthusiasm for dynamic scenes. Milo offers a friendly, conversational tone suitable for character dialogue. Atlas provides a neutral, news-like delivery for clear exposition, and Orion delivers a deep, documentary-style voice for immersive narratives.

Data Privacy and Usage

Sound wave illustration for: Data Privacy and Usage

When you send text to LumiTales, it is used exclusively to generate your audio file. 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.

Text Not Used for Training

Your input text is processed solely to create the audio response. We do not use your stories, games, or dialogue to train our models or improve the voice engine. This ensures that your unique narrative content remains private and is not repurposed to enhance other customers' experiences.

No Audio Storage

Once the audio file is delivered to your client, it is not stored on our servers. Each request is independent, and we do not maintain a library of your generated sounds. This keeps your game assets light and ensures that your specific voice outputs are only accessible where you place them.

Secure Processing

Request metadata, such as timestamp and character count, is retained strictly for billing accuracy. All data handling is secure and transparent, allowing indie developers to trust LumiTales with their creative workflow without worrying about long-term data retention or unexpected usage of their story content.

Common Questions About TTS

Sound wave illustration for: Common Questions About TTS

This FAQ section addresses the most frequent technical questions about our TTS engine, focusing on language versatility, voice origins, and synthetic markers to help indie developers make informed integration choices.

Can voices speak multiple languages?

Yes. Any of our 8 voice presets can speak any of the 23 supported languages. If the language field is omitted, the system guesses based on the script, defaulting to English for Latin text.

Are voices cloned from real people?

No. Our voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and public-domain audiobook readings from LibriVox. They are not cloned from specific modern celebrities or actors.

Is there a watermark in the audio?

Every generated file carries an inaudible watermark that marks it as synthetic speech. This helps identify AI-generated audio in your children's games or interactive stories without affecting playback quality.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. We weave magic into every frame to captivate young imaginations with timeless wonder.

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. LibriVox public-domain audiobooks
  3. Node.js documentation
  4. W3C WAI: making audio and video accessible
  5. TRON developer hub: TRC-20
  6. Python documentation
  7. LibriTTS-R paper (arXiv 2305.18802)
  8. LibriTTS-R corpus (OpenSLR 141)
  9. curl documentation
  10. Creative Commons Attribution 4.0
  11. OpenAI API reference: create speech
  12. MDN: Web Speech API

More on this site