Frequently asked questions
Is the speech synthesis API suitable for large student cohorts?
Yes. The API handles bulk generation by splitting texts into 4096-character parts and joining the audio files. With a rate limit of 60 requests per minute (10 per minute before the first top-up), it scales for large cohorts. Failed requests are free, ensuring you only pay for successful audio generation for your students.
How many languages does the API support for global courses?
The API supports 23 languages, including English, Spanish, German, French, Chinese, Japanese, and Arabic. Any voice can speak any of these languages. If the language is not specified, it is guessed from the script, but you can explicitly set it for non-English Latin-script text.
Can I use the OpenAI SDK with this API?
Yes. The request shape matches the OpenAI speech endpoint. You can use official OpenAI SDKs by changing the base_url to https://api.my36.info/v1 and using your VoiceLayer key. This allows for easy integration into existing developer workflows without learning a new library structure.
Does the API support bulk audio generation for entire courses?
Yes. You can split long texts into parts of up to 4096 characters and join the resulting audio files. This workflow allows you to generate audio for entire course modules efficiently. Requests are processed sequentially, so under load, a request may wait in a queue.
What happens if a synthesis request fails?
If synthesis fails, the charge is returned in full. You are not billed for failed requests. This ensures that you only pay for successfully generated audio files, reducing risk when generating large volumes of educational content for your students.
Are the voices suitable for educational content?
Yes. The eight presets include options like sage (calm, instructional) and aria (warm, clear narrator). These voices are based on licensed recordings from LibriVox public-domain audiobook readings, making them well-suited for clear, professional educational content delivery in online courses.
How is pricing calculated for long-form audio?
Pricing is $10 per 1 million characters, or $0.01 per 1,000 characters. Spaces and punctuation count as characters. Failed requests are free. You can top up using USDT on the TRON network, with no monthly plans or minimum spend required.
Is input text used to train the model?
No. Input text is used only to produce the audio and is not used for training. Generated audio is returned in the response and not stored. Only request metadata like time, characters, and status is kept for billing purposes.
Can I specify a language for non-English text?
Yes. You can set the language field to an ISO code. If not set, the language is guessed from the script, with Latin text defaulting to English. For non-English Latin-script text, explicitly setting the language ensures accurate synthesis.
What audio formats are available for LMS integration?
The API supports mp3, wav, opus, flac, and pcm formats. You can specify the response_format in your request. These formats cover most LMS requirements, ensuring compatibility with various learning management systems and audio players used by your students.
How fast is the text-to-speech generation?
Typical speed is roughly real time, about 25 characters of text per second of generation. Short phrases take a few seconds. Requests are processed one after another, so under load, a request may wait in a queue before processing begins.
Do I need a credit card to start?
No. You can sign up with Google to receive a $0.50 free trial credit valid for 7 days. Top-ups are done via USDT on the TRON network. There are no monthly plans, no subscriptions, and no credit card requirements.
Is there a limit on characters per request?
Yes. The input field accepts up to 4096 characters per request. For longer texts, you should split them into parts of this size and join the resulting audio files. This ensures consistent performance and manageable request sizes.
Can I switch API keys if they are compromised?
Yes. You can issue a new API key at any time. The old key stops working immediately when the new one is issued. This allows you to secure your account quickly.
First request
curl
curl https://api.my36.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 Administrators Choose TTS
LMS administrators face the constant challenge of maintaining auditory consistency across thousands of students and varied course materials. VoiceLayer ensures that every module, from introductory lectures to complex technical explanations, utilizes the same distinct voice presets. This uniformity builds familiarity for learners, reducing cognitive load as they navigate between different modules created by different instructors or updated at different times.
By standardizing the audio output, educational institutions can project a cohesive professional identity. Whether a course is taught by a single professor or a team of subject matter experts, the consistent narration style reinforces the course's credibility. This reliability is crucial for large student cohorts where varied audio quality can detract from the perceived value of the curriculum.
Consistent Brand Voice
VoiceLayer allows administrators to assign specific presets like Aria for warm narration or Felix for energetic promos to entire courses. This ensures that a 100-lesson history series sounds like a unified production rather than a collection of disjointed recordings. The 8 available presets cover a range of tones suitable for educational content, from calm instructional styles to engaging storytelling.
- Uniform tone across multi-instructor courses
- Predefined presets for consistent module branding
- No manual audio editing required
Global Student Reach
With support for 23 languages including English, Chinese, and Hindi, VoiceLayer enables LMS providers to localize content without hiring new voice actors. The API automatically detects language from the text script or accepts explicit language codes, ensuring accurate pronunciation for diverse student bodies. This capability is essential for multinational educational platforms serving non-native speakers.
- 23 supported languages
- Automatic language detection
- Clear pronunciation for diverse accents
Rapid Content Updates
When course materials change, updating audio via traditional recording requires scheduling studios and re-recording sessions. With VoiceLayer, administrators can update text in the LMS and regenerate the audio file instantly. This agility allows for real-time corrections of facts or terminology, ensuring students always access the most current version of the lesson without waiting for production cycles.
- Instant regeneration of audio
- No studio scheduling required
- Easy text-to-audio workflow
Voices for Education
VoiceLayer provides eight distinct voice presets designed to match the varied demands of educational content. Each voice is based on licensed recordings from LibriTTS-R (CC BY 4.0) and public-domain audiobook readings from LibriVox, ensuring a professional and consistent auditory experience for your students.
Whether you need a clear instructor for technical modules or a warm narrator for literature, you can select the tone that best fits your course material without additional cost or complexity.
Clear Narration Styles
Aria and Luna offer warm, clear narration ideal for storytelling and soft instructional content. Sage provides a calm, instructional tone perfect for detailed explanations and step-by-step guides.
Felix brings an energetic, promo-style voice suitable for engaging introductions or motivational segments within your curriculum.
- Aria: warm, clear narrator
- Sage: calm, instructional
- Felix: energetic, promo
Neutral News Tone
Atlas delivers a neutral, news-style voice that ensures clarity and objectivity, making it suitable for factual summaries, announcements, or data-driven courses.
Milo offers a friendly, conversational tone that feels natural for dialogue-heavy lessons or interactive course elements.
Atlas and Milo provide reliable, neutral options that avoid emotional bias, keeping the focus strictly on the educational material.
Engaging Storytelling
Luna specializes in soft, storytelling narration, bringing emotional depth to literature, history, or case studies. Nova offers a bright, upbeat voice that keeps learners engaged during longer sessions.
These voices help transform static text into dynamic audio experiences, supporting different learning styles and keeping students attentive through varied auditory textures.
Technical Integration
VoiceLayer’s API mirrors the OpenAI speech endpoint structure, allowing LMS developers to integrate text-to-speech with minimal code changes. By simply updating the base_url to https://api.my36.info/v1 and using your API key, existing OpenAI SDKs work seamlessly without requiring new libraries or complex adapters.
This approach reduces integration time for engineering teams managing large student cohorts. The system handles the conversion of your course text into audio files using standard HTTP requests, ensuring that your existing infrastructure remains stable while adding voice capabilities.
OpenAI SDK Compatibility
Adopt the familiar request shape used by leading AI providers. Send a POST request with your model, input text, voice selection, and optional speed settings. The response returns the audio file directly, enabling immediate playback in your LMS player or download for offline distribution.
- Same JSON structure as OpenAI's speech endpoint
- Works with official OpenAI SDKs via
base_urlchange - Supports
tts-1andtts-1-hdmodels
Simple REST Endpoint
The single endpoint POST https://api.my36.info/v1/audio/speech handles all synthesis tasks. Authenticate with a Bearer token and specify parameters like voice, speed (0.25–4.0), and response_format. For texts exceeding 4096 characters, split the input and join the resulting audio segments.
This simplicity extends to error handling. Failed requests incur no charge, and the API returns standard HTTP status codes. Metadata such as request time and character count are retained for billing, while the audio itself is not stored after delivery.
Standard Audio Formats
Generate audio in MP3, WAV, OPUS, FLAC, or PCM formats to suit various LMS players and accessibility standards. MP3 offers efficient compression for web delivery, while WAV and FLAC provide lossless quality for archival purposes. PCM is ideal for raw audio processing pipelines.
Each generated file includes an inaudible watermark identifying it as synthetic speech, which can help in content verification. The choice of format allows you to balance bandwidth usage with audio fidelity based on your students' devices and network conditions.
- MP3, WAV, OPUS, FLAC, PCM support
- Inaudible synthetic watermark in all files
- No streaming or WebSocket required
Language Support for Diverse Classes
VoiceLayer supports 23 languages, including English, Spanish, Chinese, Arabic, and Hindi, enabling educators to reach diverse student cohorts without hiring multiple voice actors. Each voice can speak any of these languages, ensuring consistent audio quality across global courses.
23 Supported Languages
Our API covers major global languages such as German, French, Japanese, Korean, Russian, and Turkish, alongside other options like Swahili and Malay. This range allows LMS administrators to localize content efficiently for international student bodies without managing separate voice assets for each region.
- Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish
Automatic Language Detection
When the language field is omitted, the API guesses the language based on the input script. Latin script defaults to English, but for non-English Latin text, explicitly setting the language parameter ensures accurate pronunciation and avoids misinterpretation by the synthesis engine.
Multi-Course Localization
Administrators can generate consistent audio assets for large student cohorts by reusing the same voice presets across different language tracks. Since any voice can speak any supported language, you can maintain a uniform brand tone whether creating lessons in English or Spanish.
Pricing for High Volume
VoiceLayer charges $10 per 1 million characters, equating to $0.01 per 1,000 characters. Spaces and punctuation count toward this total. Failed requests are free, with the charge returned in full, ensuring you only pay for successful audio generation.
Pay Per Character
Billing is strictly usage-based. With a typical generation speed of roughly 25 characters per second, long course modules process efficiently. You can split texts into 4,096-character segments if needed, paying only for what is successfully synthesized.
No Monthly Fees
There are no monthly plans, seats, or minimum spend requirements. You maintain one active API key per account, which can be rotated instantly. Balance never expires, allowing you to top up only when necessary for your cohort size.
Transparent Costs
Start with a $0.50 free trial credit (valid 7 days) when signing in with Google. Accounts created with email and password start without trial credit. Top-ups via USDT (TRC-20) are credited automatically within minutes. No invoices or VAT complications; simply monitor your usage dashboard for real-time accuracy.
- Free trial: $0.50 credit for Google sign-ins
- Minimum top-up: $5 via USDT (TRC-20)
- No expiration on unused balance

Use Cases in E-Learning
Text-to-speech integration transforms static LMS content into accessible audio assets. By converting text inputs into speech files, course creators can distribute learning materials across diverse devices without requiring students to read lengthy transcripts.
Automated Quizzes
Generate dynamic audio for quiz questions and answer options on demand. This allows learners to listen to assessments rather than reading them, supporting different learning preferences and reducing visual fatigue during exams.
Audiobook Creation
Convert course modules and reading materials into audio files using consistent voices. This enables students to consume educational content during commutes or while performing other tasks, effectively expanding the reach of your curriculum.
Accessibility Compliance
Provide audio alternatives for text-based lessons to support students with visual impairments or dyslexia. Generating high-quality speech ensures that your LMS meets modern accessibility standards without needing specialized hardware or complex plugins.
Developer Experience
Developers appreciate the predictable generation speed: short phrases take a few seconds, and long texts process at approximately real-time speed (25 characters per second). For extended course materials, the system handles texts up to 4,096 characters per request, automatically splitting and joining audio files to maintain seamless playback without manual orchestration.
Fast Response Times
Generation speed is predictable: short phrases take a few seconds, and long texts process at approximately real-time speed (25 characters per second).
Reliable Queue System
Requests are processed sequentially, ensuring stable performance under load. If the queue is busy, your request waits its turn without timing out, guaranteeing that every synthesis attempt completes or fails gracefully.
Easy Key Management
Each account holds one active API key. You can issue a new key at any time via the dashboard, and the previous key stops working immediately, simplifying security rotations for large development teams without complex token management.
Data Privacy and Trust
VoiceLayer treats your course content as private data. We do not use input text to train our models, ensuring that your specific lecture scripts and student materials remain yours. Audio files are generated and returned in the response without being stored on our servers, minimizing data retention risks for sensitive educational content.
No Training on Input
Unlike some consumer TTS services, our engine does not consume your submitted text for future model improvement. Your lecture notes and quiz questions are processed strictly to produce the requested audio file.
Temporary Processing
Generated audio is delivered directly to your request and not stored long-term. We retain only the request metadata—such as timestamp, character count, and status—for billing purposes. This ensures your intellectual property remains ephemeral unless you save it yourself.
Synthetic Watermarks
Every audio file generated by VoiceLayer carries an inaudible watermark. This marks the content as synthetic speech, which can help maintain transparency with students regarding the origin of the audio narration.
Get Started Today
Create your VoiceLayer account at /get-api-key/ using Google or email. You receive an active API key immediately, allowing you to start sending synthesis requests without waiting for manual approval.
Instant API Key
Your key is available right after sign-up. Use it with the standard OpenAI SDK by updating the base URL to https://api.my36.info/v1, or send direct POST requests to the speech endpoint.
- Supports Google or email/password registration
Free Trial Credit
Google sign-ups include $0.50 in trial credit, valid for 7 days. This covers approximately 50,000 characters, enough to test integration with your LMS before committing to paid top-ups via USDT on TRON.
Developer Documentation
Full technical details are available at /docs/. Review the request schema for models, voices, and formats, or check the /voices/ endpoint to see supported languages and audio options before implementation.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. The raw text you submit is processed in real-time to produce the audio output.
23 languages
Any voice speaks any of these languages.
