Frequently asked questions
How do I get an API key?
Sign up on the /get-api-key/ page using Google or an email and password. Accounts are specific to this site. Once registered, you receive a single active Bearer key starting with 'tts-'. You can issue a new key at any time, which immediately invalidates the previous one.
What is the base URL for the API?
The API base URL is https://api.mmk8slot.com/v1. Use this endpoint for all requests, including the speech generation POST endpoint and the voices GET endpoint. Official OpenAI SDKs work by setting this as the base URL and providing your site-specific API key in the authorization header.
Which SDKs are compatible?
The official OpenAI SDKs are compatible because the request shape matches the OpenAI speech endpoint. You only need to change the base_url to https://api.mmk8slot.com/v1. We do not provide our own official SDK, mobile SDK, or WordPress plugin, so you must use standard HTTP or the OpenAI libraries.
How do I handle long texts?
Split your text into parts of up to 4096 characters. Send each part as a separate request and join the resulting audio files. This ensures compliance with the character limit per request. The API processes requests sequentially, so longer texts may take time to generate fully.
What is the character limit?
Each request supports up to 4096 characters in the input field. Spaces and punctuation count toward this limit. For texts exceeding this length, you must split the content into multiple requests, generate the audio for each part, and concatenate the resulting audio files manually.
Can I change the voice after generation?
No. The API generates audio based on the voice specified in the request body. Once the audio file is returned, the voice is fixed. There is no post-generation voice changing feature. You must specify the desired voice (e.g., aria, nova, atlas) in the initial request.
How do I specify the language?
Include the optional 'language' field with an ISO code in your request body. If omitted, the system guesses the language from the script, defaulting to English for Latin text. For non-English Latin-script text, always set the language explicitly to ensure accurate pronunciation.
What happens if the API is slow?
Requests are processed one after another, so under load, a request may wait in a queue. Typical speed is roughly real time for long texts, but short phrases take a few seconds. If the API is slow, your request is simply waiting its turn in the processing queue.
How do I detect errors in responses?
Check the HTTP status code and response body for error details. Failed requests are free, and the charge is returned in full if synthesis fails. Monitor the response for standard HTTP error codes to identify issues like rate limits, invalid parameters, or server errors during generation.
Is the API compatible with WordPress?
The API is compatible with any system that can send HTTP requests. However, we do not provide an official WordPress plugin. You must implement the API calls manually or use a generic HTTP client within WordPress. There is no dedicated WordPress integration or plugin available from VoiceSync HR.
Do I need to install a plugin?
No. You do not need to install a plugin to use the API. We do not offer a WordPress plugin or browser extension. You can integrate the API directly into your application using standard HTTP requests or compatible SDKs like the OpenAI Python or JavaScript libraries.
Can I use the API in a browser?
Yes, you can use the API directly from a browser using fetch or XMLHttpRequest. Ensure you handle CORS appropriately. Since there is no official mobile SDK or browser extension, you must manage authentication and request formatting directly in your client-side JavaScript code using the base URL provided.
What is the maximum speed setting?
The maximum speed setting is 4.0. You can adjust the speed between 0.25 and 4.0 in the request body. This allows you to speed up or slow down the narration to fit your training video timing requirements without affecting the voice model or language detection.
How do I stop an old API key?
Issue a new API key from your account dashboard. When you generate a new key, the old one stops working immediately. You only have one active key per account at any time. This ensures that if a key is compromised, you can revoke it instantly by creating a new one.
First request
curl
curl https://api.mmk8slot.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.mmk8slot.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.mmk8slot.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
Authentication for the VoiceSync HR API relies on a single active Bearer token per account. This token grants access to all endpoints, including speech synthesis and voice listings. Secure storage of this key is essential to prevent unauthorized usage of your billing balance.
Bearer token format
Include the token in the Authorization header as Bearer tts-.... The key string is unique to your account and must be kept confidential. It provides full access to generate audio or manage your account settings.
Key generation page
Manage your API key via the /get-api-key/ dashboard. This page displays your current key, usage statistics, and balance. You can view a ready-to-use cURL example directly from this interface to test your credentials immediately.
Key rotation policy
Generate a new key at any time from the dashboard. When you issue a new key, the previous one stops working immediately. This allows you to rotate credentials without downtime, ensuring that compromised or legacy keys are instantly invalidated.
Endpoint: Speech Synthesis
The synthesis endpoint accepts plain text and returns generated audio files directly. It is designed to integrate seamlessly into no-code workflows or LMS pipelines, allowing HR teams to convert training scripts into audio without managing complex infrastructure. Each request processes up to 4096 characters of input text.
The system returns the audio file in the requested format, ready for immediate playback or download. Failed synthesis requests do not consume your character balance, ensuring you only pay for successfully delivered audio assets.
POST /v1/audio/speech
Send a JSON payload to this endpoint to trigger speech synthesis. The API processes requests sequentially, so under load, a request may wait in a queue before generation begins.
The response contains the audio data or an error code if the input is invalid or the service is temporarily unavailable.
- Endpoint: POST https://api.mmk8slot.com/v1/audio/speech
- Content-Type: application/json
JSON body structure
The request body must include the text to be spoken and the desired voice preset. You can optionally specify the audio format, playback speed, and a specific language ISO code to ensure correct pronunciation.
The input field supports up to 4096 characters per request. For longer training modules, split the text into multiple requests and join the resulting audio files.
input: string (max 4096 chars)voice: string (e.g., 'nova', 'atlas')response_format: string ('mp3', 'wav', 'flac')speed: number (0.25–4.0)language: string (optional ISO code)
Required fields
The model and input fields are mandatory. Use 'tts-1' for standard quality or 'tts-1-hd' for higher fidelity; both engines have identical pricing.
The voice field determines the speaker persona. You can select from eight presets optimized for different training tones, from upbeat instructions to calm narration.
model: 'tts-1' or 'tts-1-hd'input: The text string to synthesizevoice: One of the 8 available presets
Request Parameters
The API accepts a text payload of up to 4,096 characters. Each request is processed sequentially, meaning your audio generation may wait in a queue under load. For training videos exceeding this limit, split the script into parts and join the resulting audio files.
Model selection
Choose between tts-1 for standard quality and tts-1-hd for enhanced clarity. Both models use the same engine and incur identical pricing of $0.01 per 1,000 characters. Select tts-1-hd for complex instructional terminology where precise articulation is critical.
Voice presets
Select from eight licensed voices, all capable of speaking any of the 23 supported languages. Use aria for warm narrations or atlas for neutral corporate updates. If the input text is not English, explicitly set the language field to ensure accurate pronunciation.
- Aria: warm, clear narrator
- Felix: energetic, promo
- Atlas: neutral, news
- Sage: calm, instructional
Speed control
Adjust playback speed between 0.25 and 4.0. The default speed is 1.0. Slower speeds aid comprehension for dense HR policy texts, while faster settings suit quick overview videos. Note that generation time scales with the speed setting.
Response Formats
The API returns generated audio files in the specified format, allowing HR teams to select the optimal balance between file size and compatibility for their Learning Management System (LMS). Each response includes the binary audio data, ready for immediate playback or storage.
MP3 output
MP3 is the default format, offering high compatibility with almost all LMS platforms and web browsers. It provides efficient compression while maintaining clear speech quality, making it ideal for general training modules and quick distribution to employees.
- Supported by all major browsers and LMS players.
- Default response format if none is specified.
WAV output
WAV provides uncompressed, lossless audio, preserving the full fidelity of the synthetic voice. This format is useful for high-quality archival or when your video editing software requires a standard PCM input without compression artifacts.
- Uncompressed, lossless audio quality.
- Ideal for professional video editing workflows.
- Larger file size compared to MP3.
FLAC output
FLAC (Free Lossless Audio Codec) offers lossless compression, significantly reducing file size while retaining all audio data. It is suitable for large-scale training libraries where storage efficiency matters but audio quality must remain pristine.
- Lossless compression for smaller files.
- Retains full audio fidelity.
- Useful for archiving large training volumes.
Error Handling
Error handling in the VoiceSync HR API ensures you can quickly identify and resolve issues during training audio generation. Responses include standard HTTP status codes with clear JSON error messages to help you debug requests efficiently.
400 Bad Request
This error indicates invalid input, such as a missing input field or an input exceeding 4096 characters. Ensure your JSON body matches the required structure exactly.
- Check character count (spaces and punctuation included).
429 Rate Limit
You have exceeded the limit of 60 requests per minute. New accounts start with a 10 requests/minute limit until the first top-up is processed. Wait a few seconds before retrying.
- Limit resets per minute window.
500 Server Error
A temporary server issue occurred during synthesis. The request was not charged. Retry the request after a brief delay. If the error persists, contact support via email.

Rate Limits
Your API key supports up to 60 requests per minute, providing ample throughput for generating bulk training audio. New accounts start with a lower limit of 10 requests per minute until the first top-up is processed, ensuring stable service during initial usage.
Requests are processed sequentially. If your system sends multiple synthesis jobs simultaneously, they enter a queue. This ensures fair resource distribution but means longer texts may take time to complete as earlier requests finish first.
60 requests per minute
Each active API key allows a maximum of 60 synthesis requests within a one-minute window. This capacity is sufficient for most HR teams generating voice-overs for e-learning modules or internal communications without requiring complex batching strategies.
10 requests initially
New accounts begin with a rate limit of 10 requests per minute. This limit lifts automatically to 60 requests per minute after your first USDT top-up is confirmed on the TRON network. This ensures stability during the free trial phase.
Queue processing
Requests are processed one after another. Under load, subsequent requests wait in a queue. This sequential processing guarantees consistent audio quality but means generation time increases with volume. Short phrases take a few seconds; long texts take longer.
- Requests are sequential, not parallel.
- Queuing occurs only when limits are exceeded.
- No priority queue for premium users.
Code Example: cURL
The VoiceSync HR API uses standard HTTP methods, making it easy to integrate into no-code workflows or custom scripts. You can generate audio files directly from your training content by sending a POST request with your text and selected voice parameters.
This section provides a practical cURL example to demonstrate how to authenticate and send a request. The API expects a JSON body containing the text input, model selection, and voice preset. Results are returned as binary audio data or an error message.
Basic request
Use cURL to send your training script to the speech endpoint. Replace YOUR_API_KEY with your key from /get-api-key/. The body includes the text, model (tts-1 or tts-1-hd), voice (e.g., 'sage' for instructional tone), and format (mp3).
Ensure the text does not exceed 4096 characters. For longer scripts, split the text into chunks and join the resulting audio files afterward. The API processes requests sequentially, so long texts may take time proportional to their length.
Headers included
Include the Authorization header with your Bearer token. The Content-Type must be application/json. Ensure you use the correct API base URL: https://api.mmk8slot.com/v1.
Example header: Authorization: Bearer tts-... This token is generated on your account page and can be rotated at any time. Invalid or expired tokens will return a 401 error.
Response handling
On success, the API returns the audio file directly in the response body. Save this output to a file using the -o flag in cURL. The file format matches the response_format parameter (e.g., mp3).
If an error occurs, you will receive a JSON error object with a status code and message. Check the status code to determine if the issue is with your request (4xx) or the server (5xx). Failed requests are free.
- - Use tts-1 for standard quality or tts-1-hd for higher fidelity.
- - Supported voices include 'sage' for instructional content and 'milo' for conversational tones.
- - Response format can be mp3, wav, opus, flac, or pcm.
- - Character count includes spaces and punctuation.
Code Example: OpenAI SDK
To integrate VoiceSync HR’s TTS API with the OpenAI SDK, configure the client to point to the API base URL. This allows you to use standard OpenAI libraries while accessing our specific voice synthesis endpoints.
The setup requires minimal code changes. By overriding the base URL, you can generate training audio files directly within your existing Python or Node.js workflows without needing a custom client.
Base URL configuration
Set the base_url to https://api.mmk8slot.com/v1. This directs all API calls to our infrastructure while maintaining compatibility with the OpenAI SDK request shape.
Client initialization
Initialize the client using your Bearer token. Ensure the token is passed correctly in the authorization header. This token grants access to your account’s balance and voices.
- Use
Authorization: Bearer tts-...format. - Token limits apply: 60 requests/minute.
Speech generation call
Call the audio.speech.create method with your desired model (tts-1 or tts-1-hd), voice, and input text. The SDK handles the JSON payload and returns the audio binary for immediate playback or LMS upload.
- Max input: 4096 characters.
- Supported formats: mp3, wav, opus, flac, pcm.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Learn how to design engaging training modules without writing a single line of code.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- W3C WAI: making audio and video accessible
- TRON developer hub: TRC-20
- openai-node on GitHub
- ISO 639 language codes
- Tether (USDT)
- LibriTTS-R paper (arXiv 2305.18802)
- LibriVox public-domain audiobooks
- Creative Commons Attribution 4.0
- LibriTTS-R corpus (OpenSLR 141)
- Node.js documentation
- FFmpeg documentation
