Frequently asked questions
Which voice is best for a narrator?
Aria is described as a warm, clear narrator. Sage is also suitable for instructional content. Both are female presets available in the API. You can test both to see which fits your game's tone best. The API allows you to switch voices easily between requests, so you can iterate on the perfect narrative voice for your project.
Can I use Nova for a cheerful NPC?
Yes, Nova is described as bright and upbeat, making it ideal for cheerful NPCs. You can send text to the API with the voice parameter set to 'nova'. The system generates audio quickly, allowing you to iterate on dialogue lines. You can adjust the speed between 0.25 and 4.0 to fine-tune the energy level.
Is Orion too deep for some games?
Orion is described as deep and documentary-style. While it may feel too serious for lighthearted games, it works well for gravitas. You can adjust the speed to 4.0 to make it sound faster, or choose a different voice like Felix for more energy. The choice depends on your game's specific tone and audience expectations.
How do I choose between Aria and Luna?
Aria is a warm, clear narrator, while Luna is soft and storytelling-focused. Choose Aria for clear exposition or Luna for immersive, soft narrative segments. Both are female presets. You can test both with the same text to hear the difference. Select the one that best matches the emotional tone of your game's story.
What voice works best for a shopkeeper?
Milo is described as friendly and conversational, making it ideal for shopkeepers. Felix is energetic and promo-focused, also suitable for sales pitches. Both male presets offer distinct tones. Use Milo for a warm interaction or Felix for a more dynamic sales pitch. Adjust speed to match the shopkeeper's personality in your game.
Can I mix and match voices?
Yes, you can use different voices for different NPCs or lines. Each API request specifies a single voice, but you can change it per request. This allows you to create a diverse cast of characters. Simply set the 'voice' parameter to the desired preset in each JSON body sent to the speech endpoint.
Do voices sound robotic?
Voices are based on licensed recordings from LibriTTS-R and LibriVox, providing natural speech. Each file includes an inaudible watermark marking it as synthetic. They are not as human as professional actors but are high-quality. The speed is roughly real-time, enhancing the natural feel.
How do I change voice speed?
Use the 'speed' parameter in your API request. It accepts values from 0.25 to 4.0. A value of 1.0 is normal speed. Increase it for faster dialogue or decrease it for slower, more deliberate speech. This allows you to fine-tune the pacing of each NPC's lines without re-recording.
Are the voices licensed for commercial use?
Voices are based on LibriTTS-R (CC BY 4.0) and LibriVox public-domain audiobook readings. This generally supports commercial use. However, you should verify specific license terms for your use case. The generated audio is yours to use in your game. No additional licensing fees are required beyond the API usage cost.
What is the difference between tts-1 and tts-1-hd?
Both models use the same engine and price. The only difference is the model identifier in your request. 'tts-1-hd' uses the same engine as 'tts-1', but the cost is identical. You can choose either based on preference. The API accepts both, and they are interchangeable for standard text-to-speech generation.
Can I use the API for RPGs?
Yes, the API is ideal for RPGs. You can generate dialogue for multiple NPCs using different voices. Support 23 languages, including English, Japanese, and Spanish. Handle long quests by splitting text into 4096-character chunks. The low cost allows you to generate extensive dialogue trees without breaking the budget.
How do I handle multiple languages?
Set the 'language' parameter to an ISO code (e.g., 'de' for German). If omitted, the system guesses from the script, defaulting to English for Latin text. Supported languages include Arabic, Chinese, French, and more. Ensure you specify the language for non-English Latin-script text to avoid incorrect pronunciation.
Is there a limit to voice changes?
There is no limit to how many times you can change voices. You can use any of the 8 presets in any order. Each request is independent. You can switch voices for every line of dialogue. The only constraint is the rate limit of 60 requests per minute per key.
Can I get a refund if I don't like the voice?
Refunds are not explicitly mentioned for dissatisfaction. Failed requests are free, and charges are returned in full if synthesis fails. For successful generations, you pay per character. There is no subscription or minimum spend. You can stop using the API if you don't like the results, paying only for what you use.
Introduction to NPC Voices
Voice breathes life into your characters, transforming static text into memorable interactions. In indie games, audio often defines the emotional connection between player and NPC, yet high-quality voice acting can quickly drain your limited budget. Hiring human actors for every dialogue line is often prohibitive for small teams.
The TTS API solves this by delivering high-quality speech on demand. You iterate on audio without breaking the budget, ensuring your NPC dialogue feels professional and engaging without the high upfront costs of traditional recording sessions.
Why Voice Matters
Audio transforms text into personality. Players connect more deeply with characters who speak with distinct tone and rhythm. Well-executed voice lines enhance immersion, making your game world feel alive and responsive to player choices.
Conversational tone guides the player through the narrative. Subtle shifts in voice can convey urgency, warmth, or mystery, adding depth to simple dialogue trees without needing complex animation or script changes.
- Enhances player immersion
- Adds emotional depth
- Supports narrative pacing
Indie Budget Constraints
Indie developers often lack the funds for full voice casts. Recording sessions require studios, talent, and editing time. TTS allows you to generate unlimited lines from a single API call, keeping costs predictable and low.
You avoid the overhead of managing voice actors for minor characters. With our API, you can generate hundreds of lines instantly, ensuring every NPC has a distinct voice without straining your development budget.
- No studio rental
- No actor management
- Predictable costs
TTS as a Solution
Our API delivers speech on demand, integrating directly into your game engine. Send text, receive audio, and iterate quickly. This workflow lets you test different voice styles and languages without re-recording.
With 8 preset voices and 23 languages, you can create diverse casts. The API handles the heavy lifting, allowing you to focus on gameplay and story while maintaining high audio quality.
- Instant generation
- 8 unique voices
- 23 languages supported
Female Voices Overview
NPC dialogue drives immersion, and female voices often anchor your game's emotional tone. SpriteVoice provides four distinct presets, each built from licensed recordings. These voices deliver consistent quality without the overhead of hiring actors.
Choose the right persona for your characters. Our female options cover warm narration, bright energy, and soft storytelling, ensuring your dialogue fits any genre from cozy sims to epic fantasy.
Aria: Warm Narrator
Aria offers a warm, clear tone ideal for exposition or guiding players through tutorials. Her voice cuts through background noise without sounding robotic.
Use Aria for quest-givers or inventory narrators who need to convey information clearly.
- Perfect for tutorials and lore dumps
- Clear enunciation aids readability
Nova: Bright and Upbeat
Nova brings high energy and brightness to your game. She sounds enthusiastic and engaging, perfect for lively characters or upbeat companion dialogue.
Her tone works well in casual games or scenes requiring positive reinforcement.
- Great for companion dialogue
- High energy, engaging tone
Luna: Soft Storytelling
Luna’s soft, storytelling voice creates an intimate atmosphere. She is ideal for mysterious characters, night scenes, or emotional monologues.
Her gentle delivery draws players into the narrative without overwhelming them.
- Ideal for emotional monologues
- Gentle, intimate delivery
Male Voices Overview
Male voices in SpriteVoice cover distinct personality archetypes essential for diverse NPC roles. Felix brings high energy to promotional quests or battle cries, while Milo excels as a friendly shopkeeper or companion. Atlas provides a neutral, authoritative tone perfect for news broadcasts or quest givers.
These presets are engineered for clarity and consistency, ensuring your dialogue sounds professional without requiring a large voice cast. Each voice supports all 23 languages, allowing you to localize your game efficiently.
Felix: Energetic Promo
Felix is ideal for high-energy characters, such as enthusiastic merchants or excited quest givers. His tone is bright and engaging, making him suitable for dynamic dialogue that needs to capture attention quickly.
Use Felix for scenes requiring urgency or excitement, ensuring the player feels the character's enthusiasm through clear, crisp audio delivery.
- Best for: energetic quests, shopkeepers, hype NPCs
- Tone: upbeat, clear, engaging
- Language support: all 23 languages
Milo: Friendly Conversational
Milo offers a warm, approachable tone perfect for companions or local guides. His conversational style makes interactions feel natural and relatable, helping players connect with the game world.
Ideal for long dialogue trees where a consistent, friendly voice maintains engagement without sounding robotic.
- Best for: companions, guides, casual NPCs
- Tone: warm, natural, relatable
- Language support: all 23 languages
Atlas: Neutral News
Atlas delivers a clear, neutral tone suitable for news broadcasts, quest announcements, or authoritative figures. His voice is consistent and professional, ensuring important information is communicated clearly.
Use Atlas for characters who need to sound impartial or informative, such as town criers or system announcers.
- Best for: news, announcements, authoritative NPCs
- Tone: neutral, professional, clear
- Language support: all 23 languages
Deep Voice Options
Orion delivers a deep, resonant voice ideal for documentary-style narration or authoritative NPC dialogue. His tone adds weight to quest descriptions, lore entries, or villain monologues, ensuring your game’s audio stands out without the cost of professional voice actors.
Orion: Deep Documentary
Orion’s rich timbre brings gravitas to any character. Whether narrating ancient history or delivering a final boss’s decree, his voice commands attention and enhances immersion.
Use Cases for Deep Voices
Deep voices excel in roles requiring authority or mystery. Use Orion for wise mentors, ancient spirits, or intimidating guards to create distinct auditory identities for your NPCs.
- Quest narrators
- Ancient spirits
- Intimidating guards
- Villain monologues
Matching Character Traits
Align Orion’s calm, documentary style with characters who are knowledgeable or stoic. Adjust speed to match their personality, ensuring consistent tone across your game’s dialogue.
Language Support for NPCs
Voice acting is often the most expensive part of indie game development, but language support doesn't have to be. Our API supports 23 distinct languages, allowing you to localize your NPC dialogue without hiring multiple voice actors for each region. This capability ensures your game feels authentic whether it’s set in Tokyo, Berlin, or Cairo.
23 Languages Available
We support Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. Any voice can speak any of these languages, giving you flexibility in character casting regardless of their assigned voice preset.
Arabic and Indonesian
Arabic is fully supported. However, Indonesian is not currently supported; if your game requires Javanese or Sundanese, you may need to handle that separately. Always check the language list to ensure your target markets are covered.
- Arabic: Fully supported with multiple voice presets.
- Indonesian: Not supported in the current API.
Consistent Voice Quality
Every generated file carries an inaudible watermark marking it as synthetic speech, ensuring transparency while maintaining professional quality. If the language is not set, the system guesses it from the script, defaulting to English for Latin text. For non-English Latin-script text, you must explicitly set the language parameter to avoid mispronunciation.
Choosing the Right Format
Selecting the correct audio format is a balance between file size, sound quality, and your game’s loading constraints. Our API supports MP3, WAV, OPUS, FLAC, and PCM, letting you tailor the output to your specific engine needs.
MP3 for Size
MP3 is the default choice for most indie projects. It offers significant compression while maintaining good clarity, keeping your game’s install size manageable. This is ideal for dialogue lines that are generated on demand but stored locally for quick replay.
- Small file size reduces download and storage costs
- Universal compatibility across all major game engines
- Best balance between quality and performance
WAV for Quality
Choose WAV when audio fidelity is critical, such as for main quest dialogues or high-impact NPC interactions. It provides uncompressed, lossless audio, ensuring that every nuance of the voice actor’s performance is preserved without any data loss.
- Lossless, high-fidelity audio
- No compression artifacts
- Ideal for premium or key narrative moments
OPUS for Streaming
OPUS provides efficient compression. The API returns the audio file directly, allowing you to cache it within your game loop.
- High efficiency for bandwidth-limited scenarios
- Supports variable bitrates
- Modern standard for web and mobile audio
Speed and Tone Adjustments
Adjust your NPC’s speech rhythm by tweaking the speed parameter between 0.25 and 4.0. This allows you to precisely match the energy level of your character, from a slow, thoughtful elder to a hurried shopkeeper.
Use speed adjustments to convey personality without changing voices. A faster pace can indicate excitement or anxiety, while a slower rate suggests calmness or authority, helping players instantly grasp character traits through audio cues alone.
Adjustable Speed Range
The API accepts speed values from 0.25 to 4.0. This wide range lets you fine-tune delivery, ensuring voices sound natural regardless of the script's density. You can push boundaries to create unique, stylized NPC interactions.
Matching Character Energy
Pair high-energy voices like Felix with faster speeds for promotional dialogue or battle cries. Conversely, use Atlas or Orion with slower rates for serious news or documentary-style lore drops. Aligning speed with voice preset enhances emotional resonance.
Adjusting speed also helps balance pacing in dialogue-heavy scenes. Faster NPCs can deliver exposition quickly, keeping gameplay moving, while slower voices allow players time to absorb complex narrative details without feeling rushed.
Testing Different Speeds
Experiment with multiple speed settings for the same voice to find the perfect fit. What sounds natural for one character might feel too fast for another. Small adjustments often make the difference between robotic and engaging speech.
Use the free trial to test various speeds across different voices. Generate short clips and listen in your game engine. This hands-on approach ensures your NPCs sound distinct and appropriate for their roles before full integration.

Licensing and Rights
SpriteVoice voices are built on licensed recordings from the LibriTTS-R dataset, which uses public-domain audiobook readings from LibriVox under CC BY 4.0. This foundation ensures that the core vocal timbres are legally cleared for commercial integration without complex rights management.
Commercial Use Allowed
You can use generated NPC lines in your indie game without worrying about recurring voice actor fees or union restrictions. The synthetic nature of the output means you own the final audio file for your project's distribution.
No Royalties
Since the voices are synthesized from licensed datasets rather than tied to specific living performers, you pay only for the characters you generate. There are no backend royalty clauses or ongoing payments required for your game’s sales or downloads.
Licensed Recordings
The eight presets (Aria, Nova, Luna, Sage, Felix, Milo, Atlas, Orion) derive from high-quality, cleared source material. This means consistent quality and legal safety across all 23 supported languages, from Arabic to Turkish.
- Source: LibriTTS-R (CC BY 4.0)
Technical Integration
Integrate NPC dialogue into your game engine with a single POST request to our TTS API. Send text, select a voice, and receive an audio file in your preferred format. The endpoint matches the standard OpenAI speech structure, making it familiar for developers already using those tools.
API Integration
Send a JSON payload with your text, chosen voice, and desired audio format to https://api.ab777game.com/v1/audio/speech. The API returns the audio file directly, allowing you to cache it within your game loop.
- Support for MP3, WAV, OPUS, FLAC, and PCM formats
- Simple JSON request body with standard fields
- Instant audio file return for immediate playback
OpenAI SDK Compatibility
Our API mirrors the OpenAI speech endpoint structure. By updating the base_url in your existing OpenAI SDK to https://api.ab777game.com/v1, you can reuse your current code with minimal changes. This ensures a smooth transition if you are already familiar with OpenAI’s client libraries.
Easy Setup
Get started quickly by signing up and generating an API key. Use the provided cURL example to test your first voice line. With just a few lines of code, you can replace placeholder audio with high-quality NPC speech.
- Get API key at /get-api-key/
- Test with ready-made cURL example
- Minimal code changes for existing projects
Cost Efficiency
Indie game development often means tight margins, making per-character pricing a vital tool for budgeting NPC dialogue. Our API charges just $0.01 per 1,000 characters, ensuring that even extensive dialogue trees remain affordable. This transparent model lets you estimate audio costs directly from your script length without hidden fees or minimum spend requirements.
You can generate voice lines for dozens of characters and iterate rapidly during prototyping. Since pricing scales linearly with text volume, you only pay for what you use, allowing you to allocate more of your budget to art or level design while keeping audio production costs predictable and low.
$0.01 per 1000 Characters
Every character, including spaces and punctuation, counts toward the total. This precise measurement means you can accurately forecast expenses for your entire game’s dialogue. Whether you have 500 characters for a quest giver or 50,000 for a main storyline, the cost remains consistent and easy to calculate.
This flat rate applies to all models, including tts-1 and tts-1-hd. You do not need to pay extra for higher quality or different voices. The simplicity of this pricing structure removes financial friction from the creative process, encouraging experimentation with different voice combinations for your NPCs.
- No monthly plans or subscriptions required.
- Space and punctuation count as characters.
- Consistent rate for all voice models.
Free Trial Included
Sign up with Google to receive $0.50 in free trial credit, valid for 7 days. This provides approximately 50,000 characters, enough to generate substantial dialogue for testing. You can evaluate voice quality, speed settings, and integration workflows without any upfront financial commitment.
Email-based accounts start without trial credit, so consider using Google sign-in if you want to test the service immediately. This trial allows indie developers to verify that the TTS output meets their game’s aesthetic before investing in a top-up.
Pay Only for Success
If a synthesis request fails, you are not charged. The fee is returned in full, ensuring you only pay for successful audio generation. This protects your budget from wasted credits due to network issues or invalid parameters. You can retry requests confidently, knowing that errors do not cost extra.
Top-ups via USDT on the TRON network are processed automatically within minutes. There are no invoices, no VAT, and no minimum spend requirements. Your balance never expires, so you can pause development and resume later without losing your funds.
Common Mistakes to Avoid
Integrating NPC dialogue is straightforward, but small oversights can break immersion or waste credits. Avoid these common pitfalls to keep your game's audio pipeline smooth and cost-effective.
Ignoring Language Settings
Even though our voices speak all 23 languages, default detection isn't perfect. Latin-script text defaults to English, so set the language parameter explicitly for non-English dialogue. Without this, your French or German NPCs might sound oddly accented.
Overloading Requests
Each request handles up to 4096 characters. Sending longer scripts without splitting them will truncate your audio. Also, respect the 60 requests-per-minute limit. Process dialogue sequentially or queue requests to avoid rate-limit errors during bulk generation.
Not Testing Audio
Speed dramatically changes character personality. A 2.0x speed might sound frantic for a goblin but robotic for a calm elder. Always test different speed settings (0.25–4.0) with your specific voice presets before hardcoding them into your game engine.
Conclusion and Next Steps
SpriteVoice gives indie developers a practical way to fill dialogue trees with consistent NPC voices. By combining eight distinct presets with support for 23 languages, you can prototype audio rapidly without managing complex voice actor schedules or studio bookings.
Start with Free Trial
Sign up with Google to receive $0.50 in free credit, valid for seven days. This provides about 50,000 characters to test voice quality and integration speed before committing funds.
Explore All Voices
Review the full list of eight voices, from Aria’s warm narration to Orion’s deep documentary tone. Each voice is designed for specific character archetypes, helping you match tone to personality quickly.
Integrate into Your Game
Use the standard OpenAI SDK or plain HTTP to send text and receive audio files. With simple parameters for speed and format, you can drop NPC audio directly into your engine.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. We need the voice actor to capture the subtle shift in tone when the NPC realizes the player has betrayed their trust.
23 languages
Any voice speaks any of these languages.
