Frequently asked questions
What is the base URL for the API?
The API base URL is https://api.wau88.cc/v1. You send POST requests to https://api.wau88.cc/v1/audio/speech to generate audio files from text inputs.
How do I authenticate my requests?
Include your API key in the Authorization header using the format: Authorization: Bearer tts-... . Each account has one active key; issuing a new key immediately invalidates the old one.
Can I use the OpenAI Python SDK?
Yes. The endpoint shape matches OpenAI’s speech endpoint. Simply change the base_url to https://api.wau88.cc/v1 and use your API key. The official OpenAI SDKs work directly with this configuration.
What is the maximum characters per request?
Each request supports up to 4096 characters in the input field. For longer texts, split your script into parts of this size and join the resulting audio files in your pipeline.
Which models are available?
Two models are available: tts-1 and tts-1-hd. They use the same engine and pricing. Select the one that best fits your quality requirements for your game audio assets.
How do I change the voice speed?
Use the speed parameter in your request, accepting values between 0.25 and 4.0. This allows you to adjust the pacing of character dialogue without needing post-processing in your audio editor.
What happens if I exceed the rate limit?
The limit is 60 requests per minute per key (10 before the first top-up). Requests are processed sequentially, so excess requests may wait in a queue until capacity becomes available.
Do I need to install a specific SDK?
No. We do not provide an official SDK. You can use the OpenAI SDK, plain HTTP libraries, or any tool that supports JSON over HTTPS. Just update the base URL accordingly.
Can I use WebSocket for streaming?
No. We do not support streaming, WebSockets, or real-time partial audio. The API returns the complete audio file in the response after synthesis is finished. Use this for batch generation pipelines.
How do I handle audio file formats?
Specify the response_format field with mp3, wav, opus, flac, or pcm. The API returns the audio file directly in the response, ready for integration into your game engine or LMS system.
Is the API compatible with Unity or Unreal?
Yes. Since the API works over standard HTTP with JSON, you can integrate it into Unity or Unreal using their built-in HTTP clients or any third-party HTTP library. No specific plugin or extension is required.
How do I specify the language?
Use the optional language parameter with an ISO code. If omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicitly setting it ensures accuracy for non-English voices.
What is the response format for errors?
Errors are returned as standard HTTP responses. Failed requests are free, and the charge is returned in full if synthesis fails. Check the HTTP status code and response body for details.
Can I use this API in a browser?
Yes, you can call the API directly from a browser using JavaScript. Just ensure you handle CORS and securely manage your API key, as browser-based usage exposes the key to the client.
First request
curl
curl https://api.wau88.cc/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.mp3Python (openai)
from openai import OpenAI
client = OpenAI(base_url="https://api.wau88.cc/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.wau88.cc/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 | |
|---|---|
aria | female |
nova | female |
luna | female |
sage | female |
felix | male |
milo | male |
atlas | male |
orion | male |
| language | |
|---|---|
ar | العربية |
zh | 中文 |
da | Dansk |
nl | Nederlands |
en | English |
fi | Suomi |
fr | Français |
de | Deutsch |
el | Ελληνικά |
he | עברית |
hi | हिन्दी |
it | Italiano |
ja | 日本語 |
ko | 한국어 |
ms | Bahasa Melayu |
no | Norsk |
pl | Polski |
pt | Português |
ru | Русский |
es | Español |
sw | Kiswahili |
sv | Svenska |
tr | Türkçe |
Get Your API Key
Obtaining your API key is straightforward whether you use Google Sign-In or a standard email account. Visit the /get-api-key/ page to create your account. Google sign-ins receive a $0.50 free trial valid for seven days, while email accounts start with zero balance. Once registered, your unique key appears on the dashboard alongside your current usage and balance.
The key format is tts-... and is used for authentication in all requests. You can issue a new key at any time from the dashboard. When a new key is generated, the old one stops immediately, ensuring seamless transitions during pipeline updates without needing to update your environment variables retroactively.
Sign Up Process
Go to /get-api-key/ to create your account. You can sign in with Google or use an email and password. Google sign-ups include a $0.50 trial credit (about 50,000 characters) valid for 7 days. Email accounts start without trial credit.
Your API key is displayed on the dashboard after registration. It appears alongside your current balance, trial status, and character usage statistics. You can copy the key directly from this interface for immediate use in your game engine or LMS.
- Google Sign-In: Includes $0.50 trial credit (7 days)
- Email/Password: Standard account creation, no trial credit
- Dashboard: Shows key, balance, and usage stats
Key Management
Each account holds one active key at a time. The key is displayed on your dashboard alongside your current balance and usage metrics. You can copy the key directly from this interface for immediate use in your game engine or LMS.
The key format is tts-... and is used for authentication in all requests. You can issue a new key at any time from the dashboard. When a new key is generated, the old one stops immediately, ensuring seamless transitions during pipeline updates.
- One active key per account
- New keys stop old keys immediately
- Key format:
tts-...
Revoke Old Keys
When you generate a new key from the dashboard, the previous key becomes invalid instantly. This ensures that if a key is compromised or you rotate credentials during a game build, no stale credentials remain active.
This immediate revocation means you do not need to update your environment variables retroactively. Simply update your pipeline to use the new key, and the old one ceases to function, maintaining security for your audio production workflow.
You can generate a new key as many times as needed. Each generation invalidates the prior key, providing a simple way to manage access without complex token management systems.
First Request with cURL
Once you have your key, sending your first audio request is straightforward. The API accepts standard JSON payloads, making it easy to integrate into your existing game audio pipelines without learning a new protocol.
Below is a minimal example using cURL. It demonstrates the required authentication header and the basic structure needed to convert text into speech.
Note that the input field is limited to 4,096 characters. For longer scripts, you will need to split the text and join the resulting audio files later.
Authentication Header
Include your API key in the Authorization header. The format must be Bearer followed by your key, which starts with tts-.
Example: Authorization: Bearer tts-xxxxxx
- Use
Bearerprefix - Key starts with
tts-
JSON Body Structure
The request body contains the text to synthesize, the model version, the voice preset, and the desired audio format.
Example: model: tts-1, input: "Hello world", voice: nova, response_format: mp3.
You can also specify speed (0.25–4.0) or language (ISO code) if needed.
- model: tts-1 or tts-1-hd
- input: max 4,096 chars
- voice: one of 8 presets
- response_format: mp3, wav, opus, flac, pcm
Response Format
A successful request returns an audio file directly in the response body with a Content-Type matching your chosen format (e.g., audio/mpeg).
The response includes standard HTTP headers. Failed requests return an error JSON object with a code and message, but no charge is applied.
Using the OpenAI SDK
Integrate VoiceLine Labs directly into your game pipeline using the official OpenAI SDK. By pointing the client to our API base URL, you leverage familiar methods while accessing our specific voice engine.
Base URL Configuration
Set the base URL to https://api.wau88.cc/v1 when initializing your client. This simple change allows the standard OpenAI SDK to route requests to our TTS endpoint without requiring a custom wrapper.
Client Initialization
Initialize the client with your unique API key. The SDK handles authentication automatically, ensuring secure transmission of your text scripts to the speech engine.
Method Calls
Call the audio.speech method with your chosen voice, model, and input text. The SDK returns the audio file directly, ready for immediate playback in your game engine or LMS.
Request Parameters
Configure the synthesis parameters to match your game’s audio requirements. The API accepts a JSON body with specific fields for model, voice, speed, and format, allowing precise control over the output audio characteristics.
These parameters are sent in every request to POST /v1/audio/speech. Adjusting them helps optimize file size, playback speed, and voice character for different in-game scenarios.
Model Selection ['Choose between tts-1 for standard quality or tts-1-hd for higher fidelity. Both models use the same underlying engine and pricing, so you can switch based on your storage or quality needs without cost changes.', 'The model choice affects the audio quality but not the character count billing. Use tts-1-hd for critical narration and tts-1 for background dialogue to save bandwidth.']
Voice Presets ['Select from eight distinct voice presets, each designed for specific tones. Female voices include Aria (warm narrator), Nova (upbeat), Luna (storytelling), and Sage (instructional). Male voices offer Felix (energetic), Milo (friendly), Atlas (neutral news), and Orion (deep documentary).', 'Each voice can speak any of the 23 supported languages. If you do not specify a language, the system guesses it from the script, defaulting to English for Latin text. Explicitly set the language field for non-English Latin-script text to ensure accuracy.']
Speed Control ['Adjust the speech rate using the speed parameter, which accepts values from 0.25 to 4.0. The default speed is 1.0, representing natural speech pace.', 'Slower speeds (e.g., 0.5) are useful for clear instructions or complex lore, while faster speeds (e.g., 2.0) can reduce audio file size and processing time for rapid-fire dialogue. Note that extreme speeds may affect audio quality slightly.']
Response Formats
The API returns generated audio files directly in the response body, allowing seamless integration into your game engine or LMS audio pipeline. You select the desired format via the response_format parameter, with options including MP3, WAV, OPUS, FLAC, and PCM to suit different storage and playback requirements.
Each file is a complete audio segment corresponding to the input text. The system handles the encoding internally, so you receive a ready-to-use file without needing external conversion tools. Failed requests return standard error codes without charging your balance.
MP3 Output
MP3 is the default and most efficient format for web-based players and many game engines. It offers a good balance between file size and audio quality, making it ideal for storing large volumes of voice lines without excessive storage costs.
This format is widely supported across browsers and mobile platforms.
- Default output format
- Optimized for web and mobile playback
- Small file size for efficient storage
WAV Output
WAV provides uncompressed, high-fidelity audio suitable for professional audio editing or high-quality game assets. It preserves the full quality of the generated speech without any lossy compression artifacts.
Use this format if you need to apply further audio effects or post-processing in your production pipeline before final integration.
- Uncompressed audio quality
- Ideal for post-production editing
- Preserves full speech fidelity
Other Formats
OPUS, FLAC, and PCM are available for specific technical needs. OPUS offers excellent compression, while FLAC provides lossless compression for archival. PCM delivers raw audio data for low-latency applications.
Select the format that best matches your engine’s audio loader capabilities. All formats include the synthetic watermark as described in our data policy.
- OPUS for efficient streaming
- FLAC for lossless archival
- PCM for raw data
Rate Limits and Errors
Processing happens sequentially, so requests may queue under load. Short phrases take a few seconds, while long texts generate at roughly real-time speed (25 characters per second).
Understanding these limits ensures your game’s audio pipeline stays responsive without unexpected interruptions during character voice line generation.
Requests Per Minute
Each API key is limited to 60 requests per minute. Before your first top-up, this limit is stricter at 10 requests per minute.
This quota applies per key, allowing you to scale by issuing additional keys if your production pipeline demands higher throughput.
- 60 requests/minute after top-up
- 10 requests/minute before first top-up
Error Codes
Failed synthesis requests are free, with charges returned in full if the audio generation fails.
Common errors include rate limit exceeded (429) or invalid parameters (400). Check your balance and key validity if issues persist.
Retry Logic
Implement exponential backoff for rate limit errors. Since requests are processed one after another, brief delays help avoid queuing delays.
Use the status field in responses to confirm successful generation before proceeding to the next script line.
Handling Long Texts
When generating voice lines for game characters or LMS modules, you may exceed the 4096-character limit per request. Texts longer than this must be divided into smaller chunks to ensure synthesis succeeds without truncation.
The API processes these parts sequentially. Because requests are handled one after another, longer scripts may experience slight delays as they queue. Plan your pipeline to account for this linear processing time.
Character Limits
Each API request accepts a maximum of 4096 characters in the input field. This limit includes spaces and punctuation. If your script exceeds this, split it into multiple requests to avoid errors.
Longer texts are processed at roughly real-time speed, meaning generation time scales with content length. Short phrases take a few seconds, while longer segments may take longer depending on queue load.
- Maximum input: 4096 characters per request
- Spaces and punctuation count toward the limit
- Text exceeding this limit must be split
Splitting Logic
Divide your text into segments of up to 4096 characters. Ensure boundaries do not cut mid-sentence if possible, to maintain natural audio flow. The API does not automatically split text for you.
Send each segment as a separate POST request to /v1/audio/speech. Maintain the same model, voice, and speed settings across all requests to ensure consistent audio quality.
Audio Joining
The API returns audio files for each segment. You must concatenate these files in the order of your original text to create the final audio track. This is handled by your application or pipeline.
Use standard audio libraries to merge the outputs. Since each segment is generated independently, ensure your joining logic preserves the timing and format consistency of the returned files.
Language Specification
Language handling in the VoiceLine Labs API is designed for straightforward integration into your game's dialogue system. You can rely on automatic detection or explicitly define the language to ensure accurate synthesis for your character's voice lines.
The system supports 23 languages, including Arabic, Chinese, French, German, Japanese, and Spanish. Any voice preset can speak any of these supported languages, allowing for flexible casting without managing separate voice models for each language.
Auto-Detection
The API attempts to guess the language from the input text if no language field is provided. This works well for standard inputs but may fail for mixed-language scripts or ambiguous text.
Explicit Language Code
For reliable results, especially with non-English Latin-script text, always set the language parameter to the ISO 639-1 code (e.g., de for German, ja for Japanese). This overrides auto-detection and ensures the correct phonetic rendering.
- Supported languages: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish.
Script-Based Guessing
When language is not set, Latin script defaults to English. Non-Latin scripts trigger detection based on character sets. Note that Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, and Bengali are not supported, so explicit handling or exclusion is required for those.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Select the preset that best embodies your brand's personality and stick with it for consistency across all content.
23 languages
Any voice speaks any of these languages.
