Frequently asked questions
How do I generate an API key?
Sign up on the /get-api-key/ page using Google or email plus password. Your account will display a single active Bearer key. You can issue a new key at any time, and the old one stops immediately. Each site maintains its own independent account with unique credentials.
Can I use the OpenAI SDK with this API?
Yes, the request shape matches the OpenAI speech endpoint. You can use official OpenAI SDKs by changing the base_url to https://api.playcs8.com/v1 and providing your site-specific key. This allows seamless integration into existing workflows without rewriting your client code.
What is the base URL for the API?
The API base URL is https://api.playcs8.com/v1. All endpoints, including speech generation and voice listing, are relative to this base. Ensure your SDK or HTTP client is configured to point to this specific domain for correct routing.
How do I handle rate limit errors?
You are limited to 60 requests per minute per key (10 before the first top-up). Requests are processed sequentially, so under load, you may experience queuing delays. Implement exponential backoff in your client to handle 429 errors gracefully without overwhelming the endpoint.
What are the supported audio formats?
You can request audio in mp3, wav, opus, flac, or pcm formats. Specify your preferred format using the response_format field in the JSON body. Each format serves different use cases, from web streaming to high-fidelity archival storage for your stream content.
How do I specify a language in the request?
Include the optional language field with an ISO code. If omitted, the system guesses the language, defaulting to English for Latin script. For non-English Latin text, explicitly set the language to ensure accurate synthesis from the 23 supported languages.
What happens if the API is down?
There is no SLA or uptime guarantee. If synthesis fails, the charge is returned in full. Failed requests do not consume your character balance. You should monitor your response status codes and retry failed requests according to your own error-handling logic.
How do I split long texts for generation?
Split your text into parts of up to 4096 characters each. Send each part as a separate request and join the resulting audio files. This ensures you stay within the single-request character limit while generating longer content for your streams.
Can I use the API in a browser?
Yes, you can call the API directly from a browser using standard HTTP requests. Since it uses standard JSON and Bearer authentication, you can integrate it into web apps or stream overlays, provided you handle CORS and key exposure. Ensure you handle CORS and key exposure appropriately for your setup.
Is there a developer dashboard?
The /get-api-key/ page serves as your dashboard. It displays your API key, balance, trial status, characters left, usage history, and a ready-to-use cURL example. There is no separate portal; all account management and monitoring happen on this single page.
How do I know if my request succeeded?
Check the HTTP status code of the response. A successful request returns the audio file directly. If synthesis fails, you receive an error response, and the charge is returned in full. Monitor your balance and usage stats on the dashboard for confirmation.
Can I use a different SDK than OpenAI's?
Yes. You can use any HTTP client that supports JSON bodies and Bearer token authentication. The endpoint follows standard REST conventions. You can use libraries like requests, axios, or native fetch without relying on any specific vendor SDK.
What is the maximum text length per request?
The maximum input text length is 4096 characters per request. Spaces and punctuation count toward this limit. For longer content, you must split the text into multiple chunks, generate audio for each, and concatenate the resulting audio files.
How do I authenticate my requests?
Include the header Authorization: Bearer tts-... with your unique API key. This key is generated when you sign up on the /get-api-key/ page. Ensure you send this header with every POST request to the speech endpoint to authorize your usage.
First request
curl
curl https://api.playcs8.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.mp3Python (openai)
from openai import OpenAI
client = OpenAI(base_url="https://api.playcs8.com/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.playcs8.com/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 |
Getting Your API Key
Access your VoiceWave API key by visiting /get-api-key/ and signing in via Google or email. Google sign-ins include a $0.50 free trial for 7 days, while email accounts start with zero credit. This step grants you a single active key for all requests.
Your dashboard displays the key, current balance, and usage stats. You can regenerate the key at any time; the old one stops immediately upon creation of the new one, ensuring secure access for your streaming workflows without complex setup.
Sign Up via Google or Email
Visit the sign-up page and choose Google or email registration. Google accounts receive $0.50 trial credit valid for 7 days. Email accounts start without trial credit but have no expiration on balance.
- Google sign-in includes $0.50 trial credit
- Email sign-in starts with zero balance
- No monthly plans or subscriptions required
Locate Your Key in Dashboard
After logging in, navigate to the dashboard to view your active API key. The interface shows your balance, characters left, and a ready cURL example. Use this key in the Authorization header for all API calls.
- View key, balance, and usage stats
- Copy key directly from dashboard
- Ready cURL example provided
Regenerating Your Key
Generate a new key anytime from the dashboard. The previous key stops working immediately, ensuring security. This is useful if you suspect exposure or want to rotate credentials for different stream projects.
- Old key stops instantly
- New key issued immediately
- Secure rotation for stream projects
First API Request
Generate speech by sending a POST request to the speech endpoint. The API accepts standard JSON payloads, allowing you to integrate synthetic voice generation directly into your streaming workflows or content pipelines without complex setup.
cURL Example for Speech Generation
Use this command to generate audio immediately. Replace YOUR_API_KEY with your credential from the dashboard.
- curl -X POST https://api.playcs8.com/v1/audio/speech \
- -H "Authorization: Bearer YOUR_API_KEY" \
- -H "Content-Type: application/json" \
- -d '{"model": "tts-1", "input": "Hello streamers", "voice": "nova"}'
JSON Body Structure
The request body is a standard JSON object. It includes the model identifier, the text to convert, and the desired voice preset. You can also specify the output format and speed adjustments.
Required Fields: Model, Input, Voice
Three fields are mandatory: model ("tts-1" or "tts-1-hd"), input (text up to 4096 characters), and voice (one of the 8 presets like nova or atlas). The input field accepts plain text; spaces and punctuation count toward the character limit.
Using the OpenAI SDK
Leverage the official OpenAI SDK to integrate VoiceWave’s TTS API into your stream’s audio pipeline. By adjusting the base_url parameter, you can route requests to our infrastructure without modifying the core request logic, ensuring compatibility with existing OpenAI SDK implementations.
Base URL Configuration
Point your SDK client to https://api.playcs8.com/v1 instead of the default OpenAI endpoint. This single change directs all POST /v1/audio/speech calls to VoiceWave’s servers, allowing you to use your specific API key for authentication and billing.
Installing the Official SDK
Install the standard openai Python package via pip. No custom wrappers or third-party libraries are required, as the API shape matches the official standard exactly, keeping your dependency list lightweight for no-code streamers.
Code Snippet for Python
Initialize the client with your key and the custom base URL. Pass your text, voice preset (e.g., 'nova'), and desired format. The SDK handles the JSON payload and returns the audio binary directly to your stream buffer.
- Set
base_urltohttps://api.playcs8.com/v1 - Use
Authorization: Bearer tts-...header - Pass
modelastts-1ortts-1-hd
Response Formats
Choose your audio format based on your streaming pipeline. MP3 offers efficient compression for real-time web delivery, while WAV provides uncompressed lossless quality for high-fidelity archives.
MP3 for Web Streaming
MP3 is a standard format for integration with streaming software. It balances file size and quality, making it ideal for direct audio injection into OBS or stream overlays without significant CPU overhead.
WAV for High Quality
Select WAV when you need pristine audio for post-production or VOD archiving. This format preserves the full fidelity of the synthesized voice, ensuring no generation artifacts are lost during compression.
OPUS, FLAC, and PCM Options
OPUS is a supported format, suitable for voice-only streams or Discord or Twitch integrations. FLAC offers lossless compression for storage efficiency, while PCM delivers raw uncompressed data for specialized audio processors.
- OPUS: Optimized for voice communication protocols
- FLAC: Lossless compression for storage
- PCM: Raw data for custom processors
Error Handling
API errors indicate specific issues with your request. Understanding HTTP status codes helps you troubleshoot quickly without guesswork. Most failures are recoverable with minor adjustments to your payload or timing.
Common HTTP Error Codes
Use 400 for invalid JSON or missing fields like input or voice. A 401 means your Authorization Bearer token is missing or invalid. Check 402 if your balance is insufficient for the request cost.
- 400: Bad Request – check JSON structure and required fields
- 401: Unauthorized – verify your Bearer token
- 402: Payment Required – ensure sufficient balance
Handling Rate Limits
You are limited to 60 requests per minute per key. If you exceed this, you receive a 429 Too Many Requests error. New keys start with a 10 requests/minute limit until the first top-up.
Retrying Failed Requests
Implement exponential backoff for 429 errors. Failed synthesis requests are free, so you can safely retry them without incurring extra charges. Wait briefly between retries to avoid queue saturation during high load.

Rate Limits and Quotas
Understanding rate limits ensures your stream doesn’t stutter during high-volume voice generation. The API enforces a standard limit of 60 requests per minute per key, which is sufficient for most no-code automation workflows. Knowing these boundaries helps you avoid unexpected pauses in your content pipeline.
When you generate audio for multiple characters or formats, staying within these quotas prevents service interruption. This section details the specific limits, pre-top-up constraints, and how the system handles concurrent requests to keep your stream running smoothly.
60 Requests Per Minute
Each API key allows up to 60 requests per minute. This limit applies to all synthesis attempts, regardless of text length or format. For streamers generating multiple voice lines, this allows for rapid sequential requests without exceeding the threshold.
- Limit: 60 requests/minute per key
- Applies to all models and formats
- Resets on a rolling minute basis
10 Requests Before Top-Up
New accounts with the free trial credit start with a reduced limit of 10 requests per minute. This constraint applies until you add your first top-up. Once you transfer USDT (TRC-20), the limit increases to the standard 60 requests per minute.
- Initial limit: 10 requests/minute
- Increases to 60 after first top-up
- Applies to new accounts only
Queuing During High Load
Requests are processed sequentially. During periods of high traffic, your request may wait in a queue before synthesis begins. This can cause slight delays, especially for longer texts, but does not result in failed requests or extra charges.
- Sequential processing model
- Delays may occur during peak times
- No extra cost for queuing
Voice and Model Selection
The API offers two model identifiers, "tts-1" and "tts-1-hd," which utilize the same underlying engine and pricing structure. You can select either based on your preference without affecting cost or capability, as both deliver identical audio quality for stream content.
TTS-1 vs. TTS-1-HD
Both models share the same engine and price point of $10 per million characters. There is no technical distinction in output quality or speed between the two identifiers, as they use the same engine. Choose "tts-1" for simplicity or "tts-1-hd" if you prefer the naming convention, knowing the result is identical.
Choosing the Right Voice
Select from eight preset voices tailored for different streaming styles. Use "aria" for warm narration, "nova" for upbeat highlights, or "atlas" for neutral news updates. Match the voice to your content tone, such as "felix" for energetic promos or "orion" for deep documentary segments.
- 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
Language Code Specification
Specify the ISO language code to ensure accurate synthesis, especially for Latin-script text that isn't English. The system guesses the language if omitted, defaulting to English for Latin characters. Explicitly setting the language prevents mispronunciation in mixed-language streams or non-English content.
Testing and Debugging
Streamers often generate long monologues for intros or updates. Validating input text ensures your script fits within the 4096-character limit per request, preventing errors during live streams.
Validating Input Text
Before sending your script, count characters including spaces and punctuation. If your text exceeds 4096 characters, split it into smaller parts and join the resulting audio files later to maintain flow.
Checking Audio Output
Listen to the generated MP3 or WAV file immediately after receiving the response. Verify that the voice tone matches your channel’s style and that the speed setting (0.25–4.0) feels natural for your content pace.
- Use MP3 for web streaming compatibility.
- Choose WAV or FLAC for high-quality archival.
Monitoring API Logs
Check the request metadata in your dashboard to confirm character counts and billing status. If a synthesis fails, the charge is returned in full, but the request still counts toward your rate limit.
Keep an eye on your 60 requests per minute limit. If you queue up multiple clips, ensure you stay under the cap to avoid delays during peak streaming hours.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Failed requests are free, allowing you to regenerate segments with different speeds or voices without cost penalties.
23 languages
Any voice speaks any of these languages.
