Cloud Text-to-Speech API for Game NPC Dialogue Generation

By QuestVoice editorial team · Updated 2026-11-18

QuestVoice provides a reliable cloud Text-to-Speech API designed for game studios and indie developers who need high-quality NPC dialogue without the overhead of enterprise contracts. Generate character voices using our simple API that integrates into your existing engine workflow.

This page outlines how to generate audio at scale, manage costs with transparent per-character pricing, and integrate with standard tools like the OpenAI SDK. Whether you are prototyping or building a full release, we provide the technical details and pricing structures you need to start creating immersive game audio today.

Cloud Text-to-Speech API for Game NPC Dialogue Generation

Frequently asked questions

What is the character limit for a single request?

Each API request supports up to 4096 characters of input text. If your dialogue exceeds this limit, you can split the text into smaller parts, generate the audio for each segment, and join the resulting files. This ensures you can handle long NPC conversations or ambient narration without hitting a hard ceiling on a single call.

Which voices are best for male NPCs?

We offer four male voices: Felix (energetic, promo), Milo (friendly, conversational), Atlas (neutral, news), and Orion (deep, documentary). Each voice is a preset based on licensed recordings, allowing you to match specific character archetypes effectively. You can select any of these eight total presets for your NPC dialogue needs.

Which voices are best for female NPCs?

Available female voices are Aria (warm, clear narrator), Nova (bright, upbeat), Luna (soft, storytelling), and Sage (calm, instructional). Each voice is based on licensed recordings and can speak any of our 23 supported languages. Since all voices are equally high-quality, the best choice depends on your character’s personality and the specific tone you want to convey in your game.

How fast is the text to speech generation?

Generation speed is roughly real-time, processing about 25 characters of text per second for long texts. Short phrases may take a few seconds to generate. Requests are processed sequentially, so under heavy load, a request might wait in a queue. This predictable timing helps you estimate latency for your game’s audio pipeline.

Can I generate audio in multiple languages?

Yes, we support 23 languages including English, Spanish, French, German, Japanese, Chinese, and more. Any voice can speak any of these supported languages. You can optionally specify the language using an ISO code, or let the system guess it from the script, though setting it explicitly is recommended for non-English Latin-script text.

Do you support SSML for voice control?

No, we do not support SSML. Our API accepts plain text input and offers a speed parameter (0.25–4.0) to adjust the playback rate. If you need precise control over pauses or emphasis, you can split your text into separate requests or adjust the speed parameter to achieve the desired pacing for your NPC dialogue.

Is there a free trial available?

Yes, signing in with Google provides a $0.50 free trial credit, valid for 7 days, which covers about 50,000 characters. Accounts created with an email and password start without this trial credit. This allows you to test the API’s quality and integration with your game engine before committing to a top-up.

How do I top up my balance?

You can top up your balance using USDT on the TRON network (TRC-20). The minimum top-up amount is $5, and credits are automatically added to your account within minutes after the transfer is confirmed. There are no monthly plans or subscriptions, so you only pay for what you use as your game grows.

What payment methods do you accept?

We accept USDT on the TRON network (TRC-20) only. We do not accept credit cards, PayPal, or offer invoices with VAT. This streamlined payment method allows for quick top-ups without the overhead of traditional banking or subscription management, making it easy for indie developers to manage their audio production costs efficiently.

Do you offer voice cloning for characters?

No, we do not offer custom voice cloning. You cannot upload your own voice or design a new voice. You must choose from our eight preset voices, which are based on licensed recordings from LibriTTS-R and LibriVox. This ensures consistent quality and legal clarity for your game’s audio assets without the complexity of custom training.

Are the voices based on real people?

Yes, our voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and public-domain audiobook readings from LibriVox. Each generated audio file contains an inaudible watermark to mark it as synthetic speech. This approach provides high-quality, natural-sounding voices while maintaining clear licensing terms for your game’s commercial use.

Is there an SLA or uptime guarantee?

No, we do not offer an SLA or uptime guarantee. We also do not provide enterprise contracts, on-premise installations, or certifications like SOC 2 or HIPAA. Our service is designed for flexibility and ease of use, allowing you to integrate quickly without the overhead of formal service level agreements or complex support structures.

How is my text data used?

Your input text is used solely to produce the audio file and is not used for training our models. The generated audio is returned in the response and is not stored on our servers. We keep request metadata, such as time, character count, and status, strictly for billing purposes to ensure accurate charges for your usage.

Can I use the audio in my game commercially?

Yes, you can use the generated audio in your games commercially. The voices are based on licensed recordings, and each file includes an inaudible watermark to identify it as synthetic speech. You can use the generated audio in your games commercially.

First request

curl

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

Why game studios choose our TTS API

Sound wave illustration for: Why game studios choose our TTS API

QuestVoice enables rapid NPC dialogue generation, allowing studios to iterate on character lines without waiting for voice actor schedules. This API delivers high-quality synthetic speech directly into your game engine workflow, ensuring your dialogue assets are ready when you need them.

For indie developers and startups, speed matters. Our infrastructure processes requests at roughly real-time speed, generating long texts at a rate of about 25 characters per second. This speed allows you to test dialogue pacing and variations during development.

Instant NPC dialogue generation

Generate dialogue on the fly or pre-render bulk assets. The API accepts standard JSON payloads, making it easy to integrate with Unity, Unreal, or custom engines. Choose from eight distinct voice presets, from warm narrators to energetic promo tones, to give your characters unique identities.

  • 8 distinct voice presets for varied character types
  • Simple JSON request body compatible with standard engines
  • Support for 23 languages with automatic detection

Fast processing for real-time prototyping

Requests are processed sequentially, so under load a request may wait in a queue. Short phrases generate in seconds, while longer texts process at approximately 25 characters per second. This speed allows you to test dialogue pacing and emotional delivery during development without significant delays.

  • Roughly real-time generation speed
  • Quick turnaround for short phrases
  • Queue-based processing ensures stability under load

Cost-effective bulk audio creation

At $10 per 1 million characters, generating thousands of NPC lines is affordable. You only pay for successful requests; failed attempts are refunded. With no monthly plans or minimum spend, you can scale your audio production exactly to your project’s needs.

  • $0.01 per 1,000 characters
  • Pay only for successful requests
  • No monthly subscriptions or hidden fees

8 Distinct AI Voices for Your Characters

Sound wave illustration for: 8 Distinct AI Voices for Your Characters

QuestVoice provides eight distinct voice presets designed to cover the full spectrum of character archetypes in game development. Each voice is based on licensed recordings from LibriTTS-R and LibriVox.

Warm narrator and bright upbeat tones

Aria delivers a warm, clear narration style ideal for lore descriptions or calm interface prompts. Nova brings a bright, upbeat energy perfect for shopkeepers, quest givers, or high-energy combat announcers.

  • Aria: warm, clear narrator
  • Nova: bright, upbeat

Deep documentary and neutral news styles

Atlas offers a neutral, news-like delivery suitable for exposition, world-building logs, or objective narration. Orion provides a deep, documentary-style tone that adds gravity to cutscenes, history lessons, or serious narrative beats.

  • Atlas: neutral, news
  • Orion: deep, documentary

Friendly conversational and soft storytelling

Milo sounds friendly and conversational, making it perfect for companion dialogue or casual interactions. Luna offers a soft, storytelling voice that excels in emotional scenes or intimate character moments.

  • Milo: friendly, conversational
  • Luna: soft, storytelling
8 Distinct AI Voices for Your Characters

Support for 23 Languages and Formats

Sound wave illustration for: Support for 23 Languages and Formats

QuestVoice supports 23 languages, including English, Spanish, French, German, Japanese, and Arabic. Any voice can speak any supported language, making it easy to localize NPC dialogue for global releases without hiring multiple voice actors.

English, Spanish, French, German, and more

We support 23 languages: 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 the language field is omitted, the system guesses the language from the script (defaulting to English for Latin text), so set it explicitly for non-English Latin scripts.

  • Not supported: Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali.

MP3, WAV, OPUS, FLAC, and PCM outputs

Generate audio in MP3, WAV, OPUS, FLAC, or PCM formats via the response_format parameter. This flexibility allows you to choose the best balance of quality and file size for your game engine.

Automatic language detection or manual ISO codes

You can specify an optional ISO language code for precise control. If omitted, the API infers the language from the input text.

Simple API Integration

Sound wave illustration for: Simple API Integration

QuestVoice uses the same request shape as the OpenAI speech endpoint, making integration straightforward for game studios already familiar with modern TTS workflows. You send text and receive audio files without learning a proprietary format.

Same request shape as OpenAI speech endpoint

Your API calls use standard JSON fields like model, input, voice, and response_format. This consistency means you can use the official OpenAI SDKs by changing the base_url.

Use official OpenAI SDKs with custom base_url

Leverage existing OpenAI SDKs by simply changing the base_url to https://api.playa555.com/v1. Authenticate with your unique tts-... key via the Authorization header. This approach keeps your codebase clean and reduces dependency overhead.

Easy cURL examples for immediate testing

Test your integration instantly with ready-to-run cURL commands. Paste your API key and desired voice to generate NPC dialogue or ambient narration in seconds.

Transparent Pricing for Startups

Sound wave illustration for: Transparent Pricing for Startups

QuestVoice charges $10 per 1 million characters, making it affordable for indie developers and small studios. Spaces and punctuation count toward the total, and failed requests are free with a full refund. You only pay for successful audio generation.

There are no monthly plans, no seats, and no minimum spend. Your balance never expires, and you can top up exactly when you need to scale your NPC dialogue output.

$10 per 1 million characters

Pricing is straightforward: $0.01 per 1,000 characters. This rate applies to both tts-1 and tts-1-hd models, which use the same engine and price. Failed synthesis requests incur no charge, ensuring you only pay for usable audio.

Input text up to 4096 characters is billed per request. For longer scripts, split the text into parts, join the audio files, and keep costs predictable based on character count.

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

No monthly plans or minimum spend

Unlike enterprise contracts, we offer no monthly subscriptions or seat limits. You can generate a few lines of dialogue or thousands of hours without penalty. This flexibility suits startups with variable audio needs.

There is no minimum spend requirement. Start with the free trial credit or top up as needed. Unused balance remains available indefinitely, allowing you to manage cash flow efficiently.

Pay with USDT on the TRON network

Top-ups are processed via USDT on the TRON (TRC-20) network only. The minimum top-up amount is $5, and credits are added automatically within minutes of transfer confirmation.

We do not accept credit cards, PayPal, or issue VAT invoices. This crypto-only model keeps overhead low and ensures instant, borderless payments for global game developers.

  • USDT on TRON (TRC-20)
  • Minimum top-up: $5
  • Automatic credit within minutes
  • No cards or PayPal
Transparent Pricing for Startups

Technical Limits You Should Know

Sound wave illustration for: Technical Limits You Should Know

Understanding these technical constraints helps you design robust dialogue systems that avoid unexpected errors or latency spikes during gameplay.

Keep these limits in mind when batching requests for large voice lines or managing concurrent NPC interactions in your engine.

4096 characters per request

Each API call accepts a maximum of 4096 characters for the input field. This limit includes spaces and punctuation, so longer monologues or complex dialogue trees must be split into smaller chunks before sending.

  • Split long texts into parts of up to 4096 characters.
  • Join the resulting audio files in your engine for seamless playback.

60 requests per minute rate limit

Your API key allows up to 60 requests per minute once funded. New accounts start with a lower limit of 10 requests per minute until the first top-up is processed.

Roughly real-time processing speed

Generation takes roughly real-time, about 25 characters of text per second of generation for long texts. Short phrases may take a few seconds to process. Requests are handled sequentially, so heavy load may cause queueing delays.

Audio Quality and Licensing

Sound wave illustration for: Audio Quality and Licensing

QuestVoice delivers high-fidelity NPC dialogue by leveraging licensed recordings from the LibriTTS-R dataset (CC BY 4.0). These sources include public-domain audiobook readings, ensuring professional audio quality for your game’s ambient narration and character voices without the overhead of enterprise contracts.

Every generated audio file contains an inaudible watermark, clearly marking it as synthetic speech. This helps maintain transparency in your production pipeline while ensuring the audio remains distinct from human-recorded assets.

Licensed recordings from LibriTTS-R

Our engine uses licensed data from LibriTTS-R, which is released under the CC BY 4.0 license. This foundation provides a consistent, high-quality base for all eight voice presets, from the warm narrator Aria to the deep documentary style of Orion.

Inaudible watermark on synthetic audio

Each audio output includes a subtle, inaudible watermark. This marker identifies the file as AI-generated, which is useful for internal tracking and metadata purposes within your game engine or audio middleware.

No training on your input text

Your input text is used solely to generate the immediate audio response. We do not store or use your scripts for training our models, ensuring your original content remains private and distinct from our dataset.

Get Started in Minutes

Sound wave illustration for: Get Started in Minutes

Create your account via Google or email to access your dashboard. You will receive a single active API key immediately, allowing you to start generating audio right away without waiting for approval.

Sign up with Google or email

Visit the /get-api-key/ page to register. Google sign-in includes a $0.50 trial credit for 7 days, while email accounts start with zero balance. Both methods grant instant access to your unique credentials.

Receive your API key instantly

Your dashboard displays your API key, balance, and usage stats. The key follows the tts-... format and authenticates all requests. You can issue a new key at any time, invalidating the old one immediately.

Start generating audio immediately

Use the provided cURL example to test your first request. Send text to the /v1/audio/speech endpoint and receive audio files directly. With no monthly plans, you can begin production at any scale.

Get Started in Minutes

Frequently Asked Questions

Sound wave illustration for: Frequently Asked Questions

Clear answers for common integration questions. Our API is built for production use, offering straightforward handling of long scripts and reliable error management so you can focus on game logic rather than audio infrastructure.

The pricing model scales with your needs, ensuring you only pay for what you generate. Failed requests do not consume your balance, providing predictable costs for iterative development and bulk asset creation.

Can I use this for commercial games?

Yes, the generated audio is royalty-free for use in commercial products. The input text is used solely to produce the audio and is not used for training, ensuring your script data remains private. Each file includes an inaudible watermark marking it as synthetic speech.

How do I handle long dialogue scripts?

Split scripts into parts of up to 4096 characters per request. Generate the audio for each segment and join the resulting files. This approach handles long narration while respecting the API's character limits and rate constraints.

What happens if a request fails?

If synthesis fails, the charge is returned in full. You can retry the request or adjust parameters like speed or voice. Failed requests do not count against your character balance, ensuring you only pay for successful audio generation.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Craft immersive game worlds where NPCs feel truly alive and responsive to player choices.

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. ISO 639 language codes
  4. MDN: Web Speech API
  5. openai-python on GitHub
  6. Tether (USDT)
  7. openai-node on GitHub
  8. Creative Commons Attribution 4.0
  9. Python documentation
  10. W3C WAI: making audio and video accessible
  11. TRON developer hub: TRC-20
  12. Node.js documentation

More on this site