Frequently asked questions
What is the base URL for the API?
The API base URL is https://api.bgd333.info/v1. You can use the official OpenAI SDKs by changing the base_url to this address and providing your EchoVox key. Alternatively, you can send standard HTTP POST requests directly to https://api.bgd333.info/v1/audio/speech with your JSON body and authentication header.
Do I need the OpenAI API key?
No, you do not need an OpenAI API key. You must use your unique EchoVox key, which starts with 'tts-'. This key is generated on your /get-api-key/ account page. The OpenAI SDKs work by simply pointing them to our base URL instead of OpenAI’s servers.
How do I specify Spanish in the request?
Include the 'language' field in your JSON request body with the ISO code 'es'. While the API guesses language from the script, Latin text defaults to English. Explicitly setting 'language': 'es' ensures the voice generates Spanish audio correctly, avoiding unintended English pronunciation.
Can I change the voice mid-stream?
No, the API does not support streaming or WebSocket connections. Each request generates a complete audio file. To change voices, you must send separate requests for each segment and join the resulting audio files in your post-production workflow or streaming software.
What happens if I exceed the rate limit?
The limit is 60 requests per minute per key (10 before top-up). If you exceed this, requests may queue or fail. Failed requests are free: if synthesis fails, the charge is returned in full. Wait briefly and retry your synthesis requests to stay within the per-key limit.
Is the response binary or JSON?
The response is binary audio data, not JSON. You receive the audio file directly in the response body. The format depends on your 'response_format' setting (mp3, wav, opus, flac, or pcm). You can save this binary data directly to a file or stream it to your application.
Can I use the same key on multiple devices?
Yes, you can use your single active API key on multiple devices or servers simultaneously. The rate limit applies per key, not per device. Ensure your total requests across all devices stay within the 60 requests per minute limit to avoid queuing or failures.
How do I rotate my API key?
You can issue a new key at any time from your account page. When you generate a new key, the old one stops working immediately. Update your applications to use the new key. This ensures that any compromised keys are instantly invalidated without waiting for a cycle.
Does the API support streaming audio?
No, the API does not support streaming audio or WebSocket connections. It returns complete audio files after synthesis. For real-time needs, you must generate the audio file first and then play it. Typical generation speed is roughly real-time for long texts.
What models are available?
Two models are available: 'tts-1' and 'tts-1-hd'. Both use the same engine and pricing. Choose 'tts-1-hd' for higher quality audio. The model field is required in your request body. Both models support all 8 voices and 23 languages with the same feature set.
How do I handle long texts?
Split your text into parts of up to 4096 characters. Send each part as a separate request to the /v1/audio/speech endpoint. Then, join the resulting audio files in your preferred editor or streaming software. This ensures each segment is synthesized correctly within the character limit.
Is there a WebSocket endpoint?
No, there is no WebSocket endpoint. The API uses standard HTTP POST requests. You send text and receive a complete audio file. For streaming workflows, generate the file first, then use your local player or OBS to stream the audio file to your audience.
Can I use this with OBS?
Yes, you can use EchoVox with OBS. Generate the audio file via the API, then add it as a Media Source in OBS. Since the API returns complete files, you can play them sequentially. This works well for pre-recorded segments or triggered soundboards during your stream.
How do I decode the audio response?
The response is binary audio data in your chosen format (mp3, wav, opus, flac, or pcm). No additional decoding is needed. Save the response body directly to a file or pipe it into your audio player. The inaudible watermark is embedded automatically in the file.
First request
curl
curl https://api.bgd333.info/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.bgd333.info/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.bgd333.info/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 |
Authentication
Access the /get-api-key/ page to create your account via Google or email. Upon signing in, you will receive a unique API key displayed on your dashboard, along with your current balance and usage statistics. This key is the sole credential required to authenticate your requests to the speech endpoint.
Generate Your API Key
Visit the registration page to initialize your account. You can sign up using your Google account for immediate access or use a standard email and password. Each account is tied to this specific site domain, ensuring your credentials remain isolated within the EchoVox network.
Bearer Token Format
Include your key in the HTTP header as Authorization: Bearer tts-.... The prefix tts- identifies the token type. Ensure no extra spaces are included in the header value, as the API validates the exact string provided.
Key Rotation Policy
You may issue a new key at any time from your dashboard. When a new key is generated, the previous one becomes invalid immediately. This ensures that if a key is compromised, you can cut access instantly without waiting for a cooldown period.
Quickstart with cURL
This section shows how to generate audio using simple command-line calls. You can test the API immediately without writing complex code, which is ideal for streamers setting up quick overlays or VTubers automating intro clips. The examples below use standard cURL syntax to send your text and receive the audio file directly.
The API accepts plain text up to 4096 characters per request. For multi-language streams, explicitly setting the language code prevents incorrect auto-detection, ensuring your voice sounds natural regardless of the input script. Failed requests incur no charge, so you can test safely.
Basic POST Request
Send a POST request to the speech endpoint with your API key in the Authorization header. Replace YOUR_API_KEY with your actual key from the dashboard.
``` curl -X POST https://api.bgd333.info/v1/audio/speech \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Hello, world!", "voice": "nova", "response_format": "mp3"}' \ -o output.mp3 ```
bullets
Spanish Language Parameter
To ensure correct pronunciation for non-English Latin scripts, pass the language field. Without this, the engine defaults to English for Latin text.
``` { "model": "tts-1", "input": "Bienvenidos al stream", "voice": "aria", "language": "es", "response_format": "mp3" } ```
bullets
Response Handling
On success, the response body is raw audio data matching your requested format. Save it directly to a file or pipe it into your broadcasting software. If the request fails, the response contains a JSON error object with a code and message. Check the status code; 4xx indicates authentication or parameter issues, while 5xx suggests a temporary server error.
bullets
OpenAI SDK Integration
Leverage the official OpenAI SDKs by updating the base_url to https://api.bgd333.info/v1. This allows you to use familiar client libraries without rewriting your integration logic, ensuring a smooth transition for developers already accustomed to standard speech endpoints.
Base URL Configuration
Point your SDK client to https://api.bgd333.info/v1 and supply your tts-... bearer token. The request shape matches the standard OpenAI speech endpoint, so no custom serialization is required.
- Base URL: https://api.bgd333.info/v1
- Auth: Authorization: Bearer tts-...
SDK Compatibility
Any standard OpenAI SDK works seamlessly. You do not need a proprietary library or mobile-specific package. Use the same code structure you would for other TTS services, ensuring consistent behavior across your streaming backend.
Code Example
```python import openai client = openai.OpenAI(base_url="https://api.bgd333.info/v1", api_key="tts-your-key") response = client.audio.speech.create( model="tts-1", voice="aria", input="Stream starting now" ) response.to_file("stream.mp3") ```
Request Parameters
Configure the synthesis engine and voice parameters to match your stream’s audio profile. The API accepts two model variants that use the same underlying engine but differ in quality tier. Selecting the appropriate model ensures your audio meets the desired fidelity without unnecessary processing overhead.
Voice selection determines the timbre of the generated speech. You can choose from eight distinct presets, ranging from warm narrators to energetic promo voices. Each voice supports all 23 available languages, allowing you to maintain a consistent character across different linguistic segments of your content.
Model Selection (tts-1, tts-1-hd)
Both tts-1 and tts-1-hd utilize the same engine and pricing structure. The distinction lies solely in the audio quality tier. For most live streaming applications where latency and cost efficiency are prioritized, tts-1 provides sufficient clarity. Use tts-1-hd only when higher fidelity is required, as it uses the same engine and price as tts-1.
- Use
tts-1for standard streaming audio. - Use
tts-1-hdfor high-quality video overlays. - Both models incur the same rate: $0.01 per 1,000 characters.
Voice Preset Selection
Select one of eight voice presets based on your content style. Female voices include aria for clear narration, nova for upbeat segments, luna for storytelling, and sage for instructional content. Male options include felix for energetic promos, milo for conversational tones, atlas for neutral news delivery, and orion for deep documentary styles. Each voice is based on licensed recordings (LibriTTS-R, CC BY 4.0) or public-domain audiobook readings (LibriVox).
All voices support all 23 languages. If the input text is in Latin script but not English, explicitly set the language parameter to avoid incorrect language guessing. This prevents artifacts in pronunciation for languages like Spanish, German, or Japanese when using a default English-biased voice.
- 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
Speed Adjustment (0.25–4.0)
Adjust the speed parameter to control the playback rate of the synthesized speech. The valid range is 0.25 to 4.0, with 1.0 representing normal speed. This feature allows you to compress longer voiceovers to fit tight stream segments or slow down complex instructional content for clarity.
Typical speed is roughly real time (about 25 characters per second); short phrases take a few seconds. Ensure your queue handling accounts for these variations during high-load periods to prevent audio desynchronization in your stream output.
- Minimum speed: 0.25
- Maximum speed: 4.0
- Default speed: 1.0
Response Formats
The API returns synthesized audio as a file (binary data), allowing direct saving to files. This approach minimizes overhead and ensures compatibility with standard HTTP clients.
Request metadata (time, characters, status) is kept for billing.
Supported Audio Formats
You can select your preferred output format via the response_format field. Supported options include mp3, wav, opus, flac, and pcm.
- mp3: Small file size, ideal for web streaming.
- wav: Lossless quality, best for editing software.
- opus: Efficient compression for live broadcasts.
- flac: High-fidelity lossless audio.
- pcm: Raw uncompressed audio data.
Raw Binary Response
Upon successful synthesis, the response body contains the raw audio bytes. You do not need to parse JSON to access the voice.
JSON Metadata
Metadata such as request ID and timestamp is included in response headers rather than the body. This keeps the payload clean for immediate playback.

Rate Limits
The API enforces a strict rate limit of 60 requests per minute per active key. This ceiling ensures stable synthesis performance for streamers generating voice lines during live broadcasts or recording sessions without overwhelming the backend infrastructure.
60 Requests Per Minute
Each API key is allocated a quota of 60 requests per minute. This limit applies uniformly regardless of the model chosen (tts-1 or tts-1-hd) or the audio format requested. If you exceed this threshold, subsequent requests will receive an error until the window resets.
Pre-Topup Limit
Accounts created with email and password start with a lower limit of 10 requests per minute. This restriction applies until you make your first top-up. Accounts created with Google sign-up receive trial credit and the standard 60 requests/minute limit.
Queue Behavior
Requests are processed sequentially. Under heavy load, your synthesis job may wait in a queue before processing begins. This ensures fair resource distribution but means generation times can vary slightly depending on concurrent usage across the network.
Error Handling
API responses use standard HTTP status codes to indicate success or failure. A 200 OK returns the audio binary, while 4xx and 5xx errors provide JSON details to help you debug integration issues quickly.
Proper error handling ensures your streaming workflow remains stable even when the API experiences temporary load or quota issues.
Common HTTP Errors
Use 401 Unauthorized when the API key is missing or invalid, and 429 Too Many Requests if you exceed the rate limit. Check the response body for specific error messages to resolve authentication or quota issues immediately.
Retry Logic
Implement exponential backoff for transient 5xx server errors. Since requests are processed sequentially under load, immediate retries may fail again; wait briefly before attempting again to avoid overwhelming the queue.
Character Limit Exceeded
The API rejects inputs longer than 4096 characters with a 400 error. Split your text into smaller chunks client-side, generate each part, and concatenate the resulting audio files to ensure full delivery.
Voices Endpoint
The GET /v1/voices endpoint returns the full list of available voices, their supported languages, and pricing details. This allows you to programmatically select the best preset for your stream or video content without hardcoding values.
You can filter results by language or format to ensure compatibility with your specific workflow. The response includes all eight presets, each capable of speaking any of the 23 supported languages.
List Available Voices
Call GET /v1/voices to retrieve a JSON array of all voice presets. Each entry includes the voice ID, name, gender, and description. You can use this list to build a dynamic dropdown in your stream overlay or video editing tool.
The response also includes metadata such as the base price per character and the languages each voice supports. Since any voice can speak any supported language, you do not need to match voice IDs to specific languages unless you want to optimize for tone.
- Returns a JSON array of voice objects
- Includes voice ID, name, gender, and description
- Shows supported languages and base pricing
- Useful for building dynamic UI dropdowns
Language Codes
Each voice object lists the ISO 639-1 language codes it supports. There are 23 supported languages, including Spanish, French, German, Japanese, and Korean. You can use these codes to validate user input before sending a synthesis request.
If you do not specify a language parameter, the API guesses the language from the script. For non-English Latin-script text, always set the language field explicitly to avoid incorrect pronunciation. Unsupported languages like Vietnamese or Thai will not work.
Format Options
The /v1/voices endpoint also returns the list of supported audio formats: mp3, wav, opus, flac, and pcm. These formats are available for all voices and models. Choose mp3 for small file sizes or wav for lossless quality.
Note that opus and flac are efficient lossy and lossless options respectively. pcm provides raw uncompressed audio. All formats are returned as binary data in the response, so handle the file writing appropriately in your integration code.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Your chosen voice becomes an auditory signature for your channel.
23 languages
Any voice speaks any of these languages.
