Frequently asked questions
What is a text-to-speech API for LMS?
A cloud API that converts text into audio files via a POST request. It simplifies accessibility and content repurposing for LMS platforms. Send text up to 4096 characters and receive an audio file. It supports standard integration, allowing teachers to convert course materials into listenable formats efficiently.
How does this differ from Google Speech API?
This is an independent storefront using the OpenAI-compatible speech endpoint. It uses tts-1 or tts-1-hd models with 8 specific voice presets. Pricing is $0.01 per 1,000 characters, paid via USDT. It lacks SSML, streaming, and custom voice cloning, focusing on reliable batch audio generation for educational content.
Which is better for educational content: TTS-1 or TTS-1-HD?
Both models use the same engine and price. Choose tts-1 for standard generation or tts-1-hd for higher quality. The choice depends on your audio quality preference. Both support the same 8 voices and 23 languages. There is no price difference, so select based on your specific audio requirements.
What is the character limit per request?
Each request accepts up to 4096 characters of input text. Spaces and punctuation count toward this limit. For longer texts, split them into parts of 4096 characters and join the resulting audio files. This ensures consistent processing and allows for manageable API calls during content generation workflows.
How many languages are supported?
The API supports 23 languages, including English, Spanish, German, French, Chinese, Japanese, and Arabic. Any voice can speak any supported language. If the language is not specified, it is guessed from the script. Latin text defaults to English. Languages like Vietnamese and Thai are not supported.
Are there monthly subscription fees?
No, there are no monthly plans, seats, or minimum spend. You pay only for what you use at $0.01 per 1,000 characters. Balance does not expire. Top-ups are made via USDT on the TRON network. Failed requests are free, ensuring you only pay for successful synthesis.
Can I use the API for student accessibility?
Yes, the API converts course text into audio files, simplifying accessibility for LMS platforms. Generated audio files can be embedded in courses. The service supports multiple languages and voices, making educational content accessible to students with different learning preferences or disabilities requiring audio formats.
How is pricing calculated?
Pricing is $10 per 1 million characters, or $0.01 per 1,000 characters. Spaces and punctuation count as characters. Failed requests are free, with the charge returned in full. There are no hidden fees, monthly subscriptions, or per-minute costs. You pay strictly for successful character processing.
What audio formats are available?
The API supports mp3, wav, opus, flac, and pcm formats. You specify the format in the request body. These formats cover most LMS and audio player requirements. Choose based on your storage and bandwidth needs. MP3 is suitable for web playback, while WAV offers uncompressed quality.
Is the speech synthetic or recorded?
The speech is synthetic, generated from licensed recordings. Voices are based on LibriTTS-R (CC BY 4.0) and LibriVox public-domain audiobook readings. Every generated file carries an inaudible watermark marking it as synthetic speech. It is not live recording but algorithmic generation from licensed source material.
Do I need to pay for failed requests?
No, failed requests are free. If synthesis fails, the charge is returned in full. You only pay for successful audio generation. This ensures that technical issues during processing do not incur unnecessary costs. The system handles billing transparently, deducting only for completed audio files.
How long does trial credit last?
The free trial provides $0.50 of credit, valid for 7 days. This allows about 50,000 characters of generation. The trial is given when signing in with Google. Accounts created with email and password start without trial credit. The balance does not expire.
Can I clone a teacher's voice?
No, custom voice cloning is not offered. You can choose from 8 preset voices, such as Aria, Nova, or Felix. These are based on licensed recordings. You cannot upload your own voice or design a custom voice. The service provides standard voices for consistent audio output.
What happens if the service is busy?
Requests are processed one after another. Under load, a request may wait in a queue. Typical speed is roughly real time for long texts. Short phrases take a few seconds. Delays may occur if many requests are submitted simultaneously, but all are eventually processed.
First request
curl
curl https://api.pklal.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.mp3Why LMS Platforms Need Reliable Audio
Reliable audio generation transforms static course materials into accessible resources. By converting text to speech, LMS platforms support diverse learning needs without requiring manual production of audio files for every lesson.
Accessibility Compliance
Automated audio conversion ensures that course content meets standard accessibility requirements. This allows students with visual impairments or reading difficulties to consume text-based materials through listening, maintaining consistent access to educational data.
Multimodal Learning
Combining text and audio supports different cognitive processing styles. Students can read and listen simultaneously, reinforcing information retention through dual sensory input. This method simplifies content repurposing for various teaching methodologies.
Student Engagement
Audio files reduce the cognitive load of reading long texts on screens. Providing auditory alternatives keeps learners engaged with course material, allowing them to study during commutes or while multitasking without losing focus on the content.
Supported Languages for Global Courses
Support multilingual courses with 23 languages, including Arabic, Chinese, French, German, Hindi, Japanese, Korean, Russian, Spanish, and others. Any voice can speak any of these languages, allowing consistent narration across diverse student groups without requiring separate voice talent for each region.
Set the language field to an ISO code for precise control, or omit it to let the system guess the language from the script. Non-Latin scripts are handled automatically, while Latin text defaults to English, so for non-English Latin-script text set the language parameter.
23 Supported Languages
Our API supports 23 languages for course narration: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. This range covers most major educational markets, enabling teachers to localize content efficiently.
- Arabic, Chinese, Danish, Dutch, English
- Finnish, French, German, Greek, Hebrew, Hindi
- Italian, Japanese, Korean, Malay, Norwegian
- Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish
Auto-Detection Logic
By default, the API guesses the language from the input text script. If you do not set the language parameter, the system assumes English for Latin-script text. This reduces configuration steps for single-language courses but requires explicit language codes for mixed or non-English Latin content.
Non-Latin Script Handling
Non-Latin scripts such as Arabic, Chinese, Japanese, Korean, Hebrew, Hindi, and Russian are processed directly without needing manual language tags. The engine recognizes the script and applies the correct phonetic rules. If you use Latin characters for a non-English language, you must explicitly set the language field to avoid incorrect English pronunciation.
Voice Selection for Educational Content
Voice selection directly impacts how students perceive course material. Our API provides eight distinct presets, allowing educators to match the audio tone to the specific subject matter or target audience.
Female Narrators
Aria offers a warm, clear narration style suitable for general lectures. Nova provides a bright, upbeat tone for introductory modules. Luna delivers a soft, storytelling approach ideal for humanities. Sage ensures calm, instructional clarity for technical content.
- Aria: Warm, clear narrator
- Nova: Bright, upbeat
- Luna: Soft, storytelling
- Sage: Calm, instructional
Male Narrators
Felix brings an energetic, promo-style voice for marketing or sales courses. Milo offers a friendly, conversational tone for soft skills training. Atlas provides a neutral, news-like delivery for factual updates. Orion delivers a deep, documentary style for in-depth analysis.
- Felix: Energetic, promo
- Milo: Friendly, conversational
- Atlas: Neutral, news
- Orion: Deep, documentary
Tone Consistency
All eight voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and LibriVox public-domain audiobook readings. This uniformity helps maintain a professional standard throughout an entire course module, regardless of which voice is assigned to individual lessons.
Integration with Learning Management Systems
Integrating LMS Voice API into your learning management system requires minimal code changes. The API accepts standard JSON payloads, allowing you to generate audio files directly from course text within your existing content pipelines.
JSON API Structure
Send a POST request to the speech endpoint with your text, selected voice, and desired audio format. The system returns the audio file directly in the response body, enabling immediate storage or playback within your LMS modules.
- Accepts standard JSON input format
- Returns audio data in the response body
- Supports configurable speed and language parameters
OpenAI SDK Compatibility
The endpoint mirrors the OpenAI speech structure, meaning you can reuse existing OpenAI SDKs by simply updating the base URL. This reduces development time for teams already familiar with standard TTS integrations.
- Compatible with official OpenAI SDKs
- Use base_url: https://api.pklal.info/v1
- Identical request shape to OpenAI speech endpoint
Webhook Ready
While the API is synchronous, you can implement webhooks to handle large batch processing.
Audio Formats for Course Delivery
Selecting the correct audio format ensures efficient delivery and appropriate quality for your learning materials. The API supports four formats: mp3, wav, opus, and flac. Choosing the right one depends on your LMS infrastructure and student device capabilities.
MP3 for Web Delivery
MP3 is the standard for web delivery, offering small file sizes that load quickly on student devices. This format balances acceptable audio quality with bandwidth efficiency, making it suitable for most course modules delivered via standard HTTP.
WAV for Quality
WAV provides uncompressed audio, preserving the full fidelity of the synthetic voice. Use this format when audio quality is prioritized over file size, such as in specialized language learning modules or accessibility scenarios requiring high clarity.
FLAC for Archiving
FLAC offers lossless compression, reducing file size without any quality loss. It is ideal for archiving master audio files in your LMS storage or for distribution where future re-encoding might occur, ensuring the original quality remains intact.

Pricing Model for Educational Budgets
The API charges $0.01 per 1,000 characters, with spaces and punctuation counted toward the total. Failed requests incur no charge, ensuring you only pay for successful synthesis. This predictable per-character model aligns well with departmental budgeting for course material production.
Per Character Cost
Billing is calculated at $10 per million characters. This flat rate applies regardless of voice or format selected, simplifying cost estimation for large course libraries.
No Monthly Fees
There are no subscriptions, seats, or minimum spend requirements. You top up via USDT (TRC-20) when needed, and the balance never expires. This pay-as-you-go structure avoids unused credit waste for seasonal teaching cycles.
Trial Credit
Signing in with Google provides $0.50 in trial credit (approx. 50,000 characters) valid for seven days. Email-based accounts start with zero balance. This allows methodologists to test integration without immediate payment commitment.
Technical Limitations to Consider
The API imposes a hard limit of 4096 characters per request. For longer course materials, texts must be split programmatically into segments, synthesized individually, and then joined to form the final audio file.
Each key allows 60 requests per minute. New accounts start with a lower limit of 10 requests per minute until the first top-up is processed, which may affect batch processing speeds during initial setup.
Character Limits
Every API call accepts a maximum of 4096 characters, including spaces and punctuation. Requests exceeding this limit will fail, requiring your integration logic to handle text segmentation and audio concatenation seamlessly.
- Maximum input: 4096 characters per request.
- Characters include spaces, punctuation, and special symbols.
- Manual splitting required for texts exceeding the limit.
Rate Limits
Standard usage allows 60 requests per minute per API key. This limit is per key, so parallel processing can be achieved by rotating keys if necessary, though most LMS integrations handle sequential requests efficiently.
- Standard limit: 60 requests/minute/key.
- New accounts: 10 requests/minute until first top-up.
Processing Time
Audio generation typically takes roughly one second for every 25 characters of input on long texts. Short phrases may take a few seconds due to server overhead, while long texts are processed sequentially, potentially causing queue delays during high load.
- Typical speed: ~25 characters per second.
- Short phrases may incur additional overhead.
- Requests are processed sequentially under load.
Data Privacy for Student Records
Student data privacy is a primary concern for educational institutions. Our API processes input text exclusively to generate the requested audio file. Generated audio is returned in the response and not stored.
Request metadata, including timestamp and character count, is kept solely for billing accuracy. This ensures transparent accounting without compromising the integrity of the course content itself.
Input Usage Policy
Input text is used only to produce the audio and is not used for training models.
No Training Data
Generated audio is returned in the response and not stored. Your course materials remain yours.
Metadata Retention
Request metadata (time, characters, status) is kept for billing.
Getting Started with the API
Begin by creating an account on the /get-api-key/ page using your Google credentials or email. The dashboard displays your unique API key, current balance, and a ready-to-use cURL example for immediate testing.
Use the key in the Authorization header to send POST requests to the speech endpoint. You can start with the provided cURL snippet to generate your first audio file instantly.
Generate API Key
Navigate to the /get-api-key/ page to register. Accounts created via Google sign-in receive a $0.50 trial credit valid for 7 days, sufficient for approximately 50,000 characters. Email-based accounts start with zero balance.
- Sign up via Google or email/password
- Receive API key immediately on dashboard
- $0.50 trial credit for Google sign-ins
First Request
Send a POST request to https://api.pklal.info/v1/audio/speech with your key. Include the text, model (tts-1 or tts-1-hd), and voice preset. The endpoint returns the audio file directly in the response.
- POST https://api.pklal.info/v1/audio/speech
- Header: Authorization: Bearer tts-...
- JSON body with input, model, voice
Documentation
Refer to /docs/ for the complete API reference. It details all endpoints, including /v1/voices and /v1/models, along with parameter descriptions and error codes. Use the OpenAI SDK by setting the base_url to our API address.
- Full endpoint reference on /docs/
- Voice list and format details
- OpenAI SDK compatibility guide
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. The quality relies on licensed recordings from LibriTTS-R and LibriVox.
23 languages
Any voice speaks any of these languages.
