Frequently asked questions
How do I get an API key?
Sign up on the /get-api-key/ page using Google or email plus password. Your account page displays your unique API key, current balance, and usage statistics. You can issue a new key at any time, which immediately invalidates the previous one, ensuring secure access for your LMS team.
What is the base URL for the OpenAI SDK?
Use https://api.pkpk55slot.com/v1 as your base URL. By changing the base_url in the official OpenAI SDKs to this endpoint and providing your TeamVoice key, you can send requests exactly as you would to OpenAI, making integration straightforward for teams already familiar with standard TTS workflows.
Which audio formats are supported?
You can choose from mp3, wav, opus, flac, or pcm formats. Select the format that best fits your LMS player’s requirements. The API returns the audio file directly in the response, allowing you to store or stream it immediately without additional conversion steps.
What is the character limit per request?
Each request supports up to 4096 characters of input text. For longer course scripts, split the text into parts of this size and join the resulting audio files. Spaces and punctuation count toward the character limit, so plan your script segmentation accordingly for accurate billing.
How do I handle rate limits?
The limit is 60 requests per minute per key, or 10 per minute before your first top-up. Requests are processed sequentially, so under load, you may experience queue delays. Monitor your usage on the dashboard to ensure your LMS generation pipeline stays within these bounds.
Can I use the API with Python?
Yes, use the official OpenAI Python SDK. Configure it by setting the base_url to https://api.pkpk55slot.com/v1 and providing your TeamVoice API key. This allows you to generate audio files programmatically within your existing Python scripts or LMS integrations without needing a custom SDK.
What happens if the API is down?
There is no official SLA or uptime guarantee. If synthesis fails, the charge is returned in full, so you are not billed for errors. Since we do not offer an SLA, plan for potential variability in availability and consider implementing retry logic in your LMS workflow.
Is SSML supported in the request body?
No, SSML is not supported. The API accepts plain text input only. You cannot use phoneme dictionaries or custom pronunciation lexicons either. For precise control, you must manage pacing and emphasis by adjusting the speed parameter or splitting your text into separate requests.
How do I specify a language in the request?
Include the optional 'language' field with an ISO code in your request body. If omitted, the system guesses the language, defaulting to English for Latin script. For non-English Latin text, always set the language field to ensure accurate pronunciation across our 23 supported languages.
Do I need to pay for error responses?
No, failed requests are free. If synthesis fails, the charge is returned in full to your balance. You only pay for successful audio generations. This ensures your LMS team is not penalized for temporary processing issues or invalid inputs during course production.
How long is the audio generated?
Generation takes roughly real time, averaging 25 characters per second for long texts. Short phrases may take a few seconds. Requests are processed sequentially, so under heavy load, generation time may increase due to queueing. Plan your LMS batch jobs accordingly.
Can I stream the audio response?
No, streaming or WebSocket support is not available. The API returns the complete audio file in the response body. You must wait for the full generation to complete before receiving the data.
What is the speed range for voices?
You can adjust the speed between 0.25 and 4.0. This allows you to slow down instructional content or speed up promotional segments. The speed parameter is part of the standard request body, working seamlessly with all eight voice presets and supported audio formats.
How do I switch between models?
Change the 'model' field in your request to either 'tts-1' or 'tts-1-hd'. Both models use the same engine and pricing structure. Switching is immediate and requires no additional configuration or key changes, allowing you to test quality differences without affecting your billing rate.
First request
curl
curl https://api.pkpk55slot.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.pkpk55slot.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.pkpk55slot.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 |
Get Your API Key
TeamVoice API provides a straightforward path to generating multilingual voice-overs for your LMS courses. You can secure your API key by signing in with Google or using a standard email and password registration. Each account on pkpk55slot.com maintains its own independent key and billing balance.
Once registered, you receive a unique Bearer token immediately. This key authenticates all your TTS requests to the API endpoint, allowing your team to start integrating audio generation into your course workflow without waiting for manual approval or enterprise contracts.
Sign Up with Google
Click the sign-up button on the /get-api-key/ page and select your Google account. This method automatically grants you a $0.50 trial credit, valid for 7 days, which covers approximately 50,000 characters of text. This allows your team to test the API with real course content before committing to a balance top-up.
Email Registration Process
Alternatively, create an account using a valid email address and a secure password. This method is ideal for teams that prefer not to use a Google account for their API credentials. Note that accounts created via email do not receive the initial trial credit; you will need to add funds via USTRC-20 to begin generating audio.
Key Management
Your API key is displayed on your dashboard alongside your current balance and usage statistics. You can generate a new key at any time from the account settings. When you issue a new key, the previous one stops working immediately, ensuring that if a key is compromised, you can revoke access instantly without affecting other team members.
There is only one active key per account, keeping your authentication simple. Use this key in the Authorization header as Bearer tts-... for all POST requests to the speech endpoint.
- Only one active key per account
- Instant revocation upon issuing a new key
- Visible on the dashboard with usage stats
First Request with Curl
Sending your first request is straightforward. Use the standard JSON format to convert text into audio files. This section covers the basic structure needed to get started with the TeamVoice API for your LMS content generation.
Basic JSON Body
The request body is a simple JSON object. It contains the text to be converted, the voice model to use, and the desired audio format. Keep your input under 4,096 characters per request to ensure smooth processing.
Required Fields
You must provide the model, input, and voice fields. The model is either tts-1 or tts-1-hd. The input is your text string, and voice selects one of the eight available presets. You can also specify response_format and speed.
Audio Response Format
The API returns an audio file directly in the response. Supported formats include mp3, wav, opus, flac, and pcm. Choose the format that best fits your LMS player’s capabilities. Failed requests do not charge your balance.
Using OpenAI SDK
The API mirrors the standard OpenAI speech endpoint structure, allowing LMS teams to reuse existing Python or Node.js clients with minimal code changes. You only need to redirect the base URL to our endpoint and supply your TeamVoice API key.
This approach simplifies integration for teams already familiar with OpenAI’s SDKs, ensuring consistent audio generation without learning a new library or syntax.
Set Base URL
Configure your client’s base URL to https://api.pkpk55slot.com/v1. This directs all requests to our TTS engine while maintaining the standard request shape.
Ensure your authentication header uses the Bearer token format with your specific TeamVoice key.
Import Libraries
Use the official OpenAI SDK for your preferred language. Import the standard OpenAI class, which handles the JSON serialization and HTTP requests automatically.
No custom wrappers are needed; the library natively supports the required parameters for speech synthesis.
pip install openaifor Pythonnpm install openaifor Node.js
Standard Method Calls
Call the audio.speech.create() method with model, input, voice, and response_format. Pass your text input as the input field, which supports up to 4096 characters per request.
The SDK returns the audio file directly, allowing you to save it to your LMS player without extra parsing steps.
Supported Voices
TeamVoice API provides eight distinct voice presets designed for consistent, professional audio across your LMS courses. You can choose from four female voices and four male voices, each optimized for different teaching styles and content types.
Female Voice Options
Select from four female presets to match your course tone. Aria offers a warm, clear narration style ideal for primary lessons. Nova provides a bright, upbeat delivery perfect for engaging introductions. Luna delivers a soft, storytelling voice for narrative modules, while Sage ensures calm, instructional clarity for complex topics.
- Aria: warm, clear narrator
- Nova: bright, upbeat
- Luna: soft, storytelling
- Sage: calm, instructional
Male Voice Options
Choose from four male presets for diverse content delivery. Felix brings energetic, promo-style energy to short clips. Milo offers a friendly, conversational tone for tutorials. Atlas provides a neutral, news-style delivery for factual content, and Orion delivers a deep, documentary voice for in-depth explanations.
- Felix: energetic, promo
- Milo: friendly, conversational
- Atlas: neutral, news
- Orion: deep, documentary
Voice Selection Logic
All eight voices support all 23 languages, including English, Spanish, German, and Japanese. If you do not specify a language, the system guesses it from the script, defaulting to English for Latin text. For non-English Latin text, explicitly set the language parameter to ensure accurate pronunciation.
Response Formats
Choose the output format that best fits your LMS player. MP3 offers the best balance of quality and file size for most web courses, while WAV provides lossless audio for high-fidelity requirements.
MP3 Compatibility
MP3 is the default choice for most learning management systems due to its universal browser support and efficient compression. It keeps bandwidth costs low without sacrificing speech clarity.
WAV for High Quality
WAV files are uncompressed, making them ideal for archival purposes or when you need maximum fidelity for your course audio. Use this when file size is less critical than pristine sound quality.
Opus and FLAC Options
Opus provides excellent compression, while FLAC offers lossless compression similar to WAV but with smaller file sizes. Select these formats based on your specific storage or streaming needs.

Rate Limits and Queues
Rate limits protect service stability during peak usage hours. Each API key is allowed 60 requests per minute, ensuring consistent performance for your LMS content generation pipelines. If you exceed this limit, subsequent requests will receive a 429 error until the window resets.
When you first create an account, your limit is lower to prevent initial abuse. You can increase this limit by topping up your balance. This structure allows small teams to start easily while supporting large-scale course production.
Requests Per Minute Limit
Your account key supports up to 60 requests per minute. This limit applies to all endpoints and is enforced globally per key. If you need higher throughput, consider using multiple keys.
- Limit: 60 requests/minute per key
- Applies to all endpoints
- Enforced globally
Initial Low Limit
New accounts start with a 10 requests per minute limit. This ensures fair usage during the trial phase. You can increase this limit immediately by adding funds via USDT on the TRON network.
Once you top up, your limit increases to the standard 60 requests per minute. This change is automatic and applies to your current key.
- Starts at 10 req/min
- Increase with top-up
- Automatic application
Queue Processing Behavior
Requests are processed sequentially within the rate limit window. If you send multiple requests quickly, they may wait in a queue before processing begins. This ensures fair distribution of resources among all users.
Processing time varies based on text length and current load. Short phrases take a few seconds, while longer texts take longer. You may experience slight delays during peak hours.
- Sequential processing
- Queue-based handling
- Variable wait times
Handling Long Text
TeamVoice API handles long course scripts by splitting input text into segments of up to 4,096 characters per request. This ensures consistent audio quality and avoids token limits during synthesis for LMS content.
4096 Character Limit
Each API call accepts a maximum of 4,096 characters, including spaces and punctuation. For lengthy lectures, divide your script into smaller chunks before sending requests.
Split and Join Strategy
Implement logic to chunk your text into valid segments. Send each chunk as a separate POST request to the speech endpoint. This approach keeps individual requests lightweight and manageable.
Audio File Concatenation
Receive multiple audio files from your batched requests. Concatenate these files sequentially to reconstruct the full narration. This method maintains natural flow while respecting the per-request character constraints.
Error Handling
The API returns standard HTTP status codes to indicate success or failure. A 200 OK response confirms your audio file is ready, while 400-level errors typically signal invalid parameters or missing keys.
Understanding these codes helps your LMS integration handle errors gracefully without manual intervention. Always check the response body for detailed error messages to debug issues quickly.
Common Error Codes
We return standard HTTP status codes. A 200 OK means success. 401 Unauthorized indicates an invalid or expired API key. 429 Too Many Requests means you have exceeded the 60 requests per minute limit.
- 200 OK: Request successful, audio included in response.
- 401 Unauthorized: Check your Bearer token.
- 429 Too Many Requests: Wait and retry; requests are queued.
Failed Request Refunds
If synthesis fails due to a server error, the charge is returned in full. You do not lose credits for failed requests. This ensures you only pay for successfully generated audio.
Input Validation Errors
Ensure your input text is under 4096 characters. If you exceed this limit, the request will fail. Also, verify that the voice and model parameters are valid. Invalid inputs return a 400 Bad Request.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. This range covers most major educational markets without requiring separate voice models.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- FFmpeg documentation
- OpenAI API reference: create speech
- IETF RFC 7845: Ogg Opus
- W3C WAI: making audio and video accessible
- MDN: Web Speech API
- Creative Commons Attribution 4.0
- ISO 639 language codes
- LibriVox public-domain audiobooks
- Python documentation
- LibriTTS-R corpus (OpenSLR 141)
- Node.js documentation
