Frequently asked questions
Do I need the OpenAI SDK to use this API?
No. The API uses the same request shape as OpenAI’s speech endpoint, so the official OpenAI SDKs work by changing the base_url to https://api.borojeetcasino.com/v1. You can also use plain HTTP requests or any other HTTP client library that supports JSON payloads.
Can I use plain HTTP requests?
Yes. You can send a POST request to https://api.borojeetcasino.com/v1/audio/speech with a JSON body containing model, input, voice, response_format, and speed. Include your API key in the Authorization: Bearer header. The response returns the audio file directly.
What is the maximum text length per request?
The maximum input text length is 4096 characters per request. For longer texts, you must split the content into parts of up to 4096 characters, generate audio for each part, and then join the resulting audio files together to create the final output.
How do I specify the voice?
Include the voice field in your JSON request body. Choose from eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. Each voice has a distinct tone, such as warm, upbeat, or neutral, suitable for different educational content styles.
Is the 'language' field required?
No, it is optional. If omitted, the system guesses the language from the script, defaulting to English for Latin text. For non-English Latin-script text, you should explicitly set the language field to ensure accurate synthesis. Supported languages include English, Spanish, and German.
What happens if I exceed the rate limit?
The limit is 60 requests per minute per key. If you exceed this, requests may wait in a queue or fail. New accounts start with a 10 requests per minute limit. Failed requests are free, but successful ones consume your balance.
Can I generate multiple audio files at once?
The API processes requests one after another. You can send multiple requests concurrently from your client, but they are handled sequentially on the server. For long texts, split the text into chunks, generate audio for each, and join them in your application.
Is the API endpoint secure?
Yes, the endpoint is https://api.borojeetcasino.com/v1/audio/speech. You must authenticate using a Bearer token in the Authorization header. Each account has one active key, which can be rotated instantly if compromised, ensuring secure access to your text-to-speech services.
How do I rotate my API key?
You can issue a new API key from your account dashboard at any time. When you generate a new key, the old one stops working immediately. This ensures that if a key is compromised, you can revoke access instantly without delay.
Are there SDKs for Python or Node?
Yes, the official OpenAI SDKs for Python and Node.js work by setting the base_url to https://api.borojeetcasino.com/v1. We do not provide our own official SDK, but the standard OpenAI client libraries handle the request format and authentication seamlessly.
Can I use this with WordPress?
Yes, you can use this API with WordPress by making HTTP requests from your theme or plugin code. Since we do not offer an official WordPress plugin, you will need to implement the API integration manually using the provided endpoint and authentication details.
Is there a WebSocket endpoint for streaming?
No, there is no WebSocket endpoint for streaming audio. The API returns the complete audio file in the response. You cannot receive partial audio chunks in real-time; you must wait for the full synthesis to complete before receiving the file.
Do I need to handle audio file saving?
Yes, the API returns the audio file directly in the response body. You are responsible for handling the response data, saving the file to your server or LMS storage, and managing the file format (mp3, wav, opus, flac, or pcm) you requested.
How do I detect errors in the response?
Check the HTTP status code and response body for error details. If synthesis fails, the charge is returned in full. You can implement retry logic for transient errors. Failed requests do not consume your balance, but successful ones do.
First request
curl
curl https://api.borojeetcasino.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.borojeetcasino.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.borojeetcasino.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 |
Authentication and Keys
Access the LMS Voice Review API by generating a unique Bearer token from your account dashboard. Each account holds one active key, which you can retrieve immediately upon signing in via Google or email on the /get-api-key/ page.
Generating Your API Key
Navigate to the registration page to create your account. Once verified, your dashboard displays your active API key alongside your current balance and usage statistics. This key is the sole credential required for all API interactions.
Bearer Token Usage
Include your key in the HTTP header as Authorization: Bearer tts-.... The API authenticates every request using this token. Ensure you do not expose this key in public client-side code, as it provides direct access to your billing and generation capabilities.
Key Rotation Policy
You can issue a new API key at any time from your dashboard. When a new key is generated, the previous one becomes inactive immediately. This allows you to revoke access instantly without waiting for expiration, ensuring tight security for your LMS integrations.
Base URL and SDK Setup
This API mirrors the OpenAI speech endpoint structure, allowing LMS developers to leverage existing integrations with minimal code changes. By adjusting the base URL, teams can switch from OpenAI’s service to LMS Voice Review without rewriting core logic.
The primary endpoint remains POST https://api.borojeetcasino.com/v1/audio/speech. This compatibility ensures that standard HTTP libraries and the official OpenAI SDK work seamlessly, reducing development time for educational content pipelines.
OpenAI SDK Compatibility
The request shape matches the OpenAI speech endpoint exactly. Developers can use the official OpenAI SDK or any standard HTTP client library. This reduces friction when integrating with existing LMS platforms or custom Python/Node.js scripts for course generation.
No proprietary wrappers are required. The JSON body structure for model, input, voice, and response_format remains identical to OpenAI’s specification, ensuring predictable behavior across different deployment environments.
- Compatible with OpenAI SDK v1.0+
- Standard JSON request body
- No custom middleware required
Changing Base URL
Update the SDK’s base_url configuration to https://api.borojeetcasino.com/v1. This directs all API calls to our infrastructure while maintaining the standard endpoint paths like /audio/speech.
Ensure your API key header uses the Bearer scheme. The SDK handles the rest, routing requests to the correct model endpoints without additional parameter adjustments.
- Base URL: https://api.borojeetcasino.com/v1
- Endpoint: /audio/speech
- Header: Authorization: Bearer <key>
Library Installation
Install the standard OpenAI Python or Node.js library using your preferred package manager. No special version constraints are needed beyond the latest stable release.
Import the client class and set the API key and base URL in your environment or initialization config. The library handles authentication and request serialization automatically.
- pip install openai
- npm install openai
- Set OPENAI_API_KEY environment variable
Speech Generation Endpoint
The core of the integration is the POST /v1/audio/speech endpoint. Send a JSON payload containing the text to be synthesized, and receive a binary audio file in return. This endpoint handles the actual conversion from text to speech.
POST /v1/audio/speech
Send your request to https://api.borojeetcasino.com/v1/audio/speech. The endpoint accepts standard JSON bodies, making it compatible with the OpenAI SDK by simply changing the base URL. This allows LMS developers to use existing libraries for seamless integration.
Required JSON Fields
Every request must include the model ("tts-1" or "tts-1-hd"), the input text (up to 4096 characters), and the voice preset. You may also specify response_format (mp3, wav, opus, flac, pcm), speed (0.25–4.0), and an optional language ISO code.
- model: "tts-1" or "tts-1-hd"
- input: text string (max 4096 chars)
- voice: one of 8 presets
- response_format: mp3, wav, opus, flac, pcm
- speed: 0.25 to 4.0
- language: optional ISO code
Response Format
The API returns the generated audio file directly in the response body. If synthesis fails, the request is free, and no charge is applied. For texts exceeding 4096 characters, split the input and join the resulting audio files manually.
Available Voices and Models
LMS developers integrate two model variants, tts-1 and tts-1-hd, which share identical synthesis engines and pricing at $0.01 per 1,000 characters. This uniformity simplifies budgeting for course creators who may switch between standard and high-definition audio based on network conditions or user device capabilities without unexpected cost variations.
Voice Preset List
Eight presets cover diverse educational tones, from warm narrators to neutral news readers. Each voice supports all 23 languages, allowing consistent audio styles across global course modules. Developers select presets like aria for clear narration or atlas for instructional content.
- Female: aria, nova, luna, sage
- Male: felix, milo, atlas, orion
GET /v1/voices Endpoint
Use the GET /v1/voices endpoint to retrieve the full list of available voices, languages, formats, and pricing details programmatically. This allows your LMS to dynamically populate voice selection menus for instructors, ensuring the UI always reflects current engine capabilities.
TTS-1 and TTS-1-HD
Both models use identical synthesis engines and pricing ($0.01 per 1,000 characters). This uniformity simplifies budgeting for course creators who may switch between standard and high-definition audio based on network conditions or user device capabilities without unexpected cost variations.
Parameters and Options
Configure generation behavior using three core parameters: speed, language, and output format. These options allow you to tailor audio characteristics for specific LMS requirements without affecting the character-based pricing model or the 4,096 character input limit.
Speed Control (0.25-4.0)
Adjusting speed affects generation duration but not character pricing. Slower speeds (e.g., 0.5) are ideal for language learning materials, while faster rates suit quick reviews. Requests are processed sequentially, so extreme speeds may slightly alter queue wait times, though character limits remain consistent at 4,096 per request. Minimum speed: 0.25 (slowest).
Language Code Setting
Explicitly setting the language field prevents misidentification of Latin-script non-English text. Supported codes include en, zh, de, fr, es, hi, ja, ko, ru, ar, pt, it, nl, pl, tr, sv, da, fi, no, el, he, ms, sw. Voices are versatile and can speak any of the 23 supported languages, regardless of the preset's primary style.
Response Format Selection
Choose mp3, wav, opus, flac, or pcm via the response_format field. MP3 is recommended for general web playback, while WAV and FLAC offer lossless quality for archival. PCM provides raw audio data. All generated files include an inaudible watermark identifying them as synthetic speech, ensuring compliance for educational platforms. Available formats: mp3, wav, opus, flac, pcm

Rate Limits and Quotas
The API enforces strict rate limits to ensure stable generation for your course audio pipelines. Understanding these quotas helps you plan your integration strategy and avoid unnecessary delays during bulk synthesis operations.
60 Requests Per Minute
Once your account is active and funded, you can process up to 60 synthesis requests every minute. This capacity supports steady generation of educational content without immediate throttling for most standard workflows.
Initial Limit for New Keys
New API keys start with a limit of 10 requests per minute. This restriction applies until you complete your first top-up. After a minimum deposit of $5 USDT (TRC-20) is processed, the limit automatically scales to 60 requests per minute.
- Start with 10 req/min
- Top up $5+ USDT (TRC-20)
- Limit increases automatically
Queue Behavior Under Load
Requests are processed sequentially. If you exceed the per-minute limit, additional requests may wait in a queue. Generation typically takes roughly 25 characters of text per second of audio, but queue delays can occur during peak usage.
Error Handling and Status Codes
Synthesis failures result in a full credit refund, ensuring you only pay for successfully generated audio. This guarantees cost efficiency for your LMS integration, as charges are strictly tied to completed outputs rather than attempt volume.
Common Error Messages
Errors are returned as standard JSON objects with descriptive codes. Common issues include invalid model names, text exceeding the 4096-character limit, or unsupported voice IDs. Ensure your payload matches the required schema to avoid 400 Bad Request responses.
- Invalid model: Verify 'tts-1' or 'tts-1-hd'
Refund on Failure
If synthesis fails, the charge is returned in full. This mechanism ensures you do not lose funds for incomplete audio generations, maintaining accurate billing for your educational content pipeline.
Debugging Requests
Check the response body for specific error codes. Verify that your Authorization: Bearer header is correctly formatted and that the text input does not exceed character limits. Confirm the API key is active and has sufficient balance.

Curl Example for Testing
Use this curl command to verify your integration. Replace YOUR_API_KEY with your active key. The request sends plain text to the speech endpoint and expects an audio file in return.
Ensure the base URL matches your environment. This example uses the standard production endpoint for immediate testing.
Basic Request Structure
Send a POST request to the speech endpoint. Include the model, voice, input text, and response format in the JSON body.
- curl -X POST https://api.borojeetcasino.com/v1/audio/speech
- -H "Authorization: Bearer YOUR_API_KEY"
- -H "Content-Type: application/json"
- -d '{"model": "tts-1", "voice": "nova", "input": "Welcome to our course.", "response_format": "mp3"}'
Response Body Example
The API returns the audio file directly in the response body. No JSON wrapper is used for successful requests.
- Content-Type: audio/mpeg
- Status: 200 OK
Audio File Download
Save the output directly to a file. This allows immediate playback or upload to your LMS library.
Use the -o flag to specify the filename.
- curl -o output.mp3 -X POST ...
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Streamline your startup's growth by deploying intuitive online courses through a modern learning management system.
23 languages
Any voice speaks any of these languages.
