Frequently asked questions
What is a Python text to speech module?
It is a library that lets you send text to our API and receive an audio file. You can use the official OpenAI SDK by changing the base_url to https://api.mw306r.info/v1.
How does the API handle long course scripts?
The API processes up to 4096 characters per request. For longer scripts, you split the text into parts and join the resulting audio files. This ensures consistent quality and allows you to manage generation limits effectively while maintaining the flow of your educational content.
Which voices are best for educational content?
Sage offers a calm, instructional tone perfect for lessons. Luna provides a soft, storytelling style suitable for narratives. Aria is a warm, clear narrator, while Milo is friendly and conversational. These presets deliver clear, human-like narration without needing complex voice design tools for your courses.
Can I use the API for commercial courses?
Yes, you can use the generated audio for commercial purposes. Input text is not used for training, and generated audio is returned in the response without being stored. You retain control over your content, making it safe for use in paid online courses and LMS platforms.
Does the API support different audio formats?
You can choose from mp3, wav, opus, flac, and pcm formats. This flexibility allows you to select the best file type for your specific LMS or audio player requirements. Simply specify your preferred format in the request to receive the audio file in that structure.
How many languages are supported?
We support 23 languages, including English, Spanish, German, French, Chinese, Japanese, and Arabic. Any voice can speak any of these languages. If you do not set the language, it is guessed from the script, though setting it explicitly is recommended for non-English Latin text.
Is there a free trial for Python developers?
Yes, signing in with Google gives you $0.50 of credit, valid for 7 days. This covers about 50,000 characters. Accounts created with email and password start without trial credit. This allows you to test the Python integration before committing to a top-up via USDT.
What happens if a request fails?
If synthesis fails, the charge is returned in full. You are not billed for unsuccessful requests. This ensures you only pay for successful audio generation. Failed requests do not consume your character limit or credit, protecting your budget while you refine your scripts.
How do I install the Python module?
You can use the official OpenAI SDK for Python. Install it via pip, then configure the base_url to https://api.mw306r.info/v1. Use your API key for authentication.
Can I adjust the speaking speed?
Yes, you can adjust the speed between 0.25 and 4.0. This allows you to slow down complex explanations or speed up simple reviews. The default speed is suitable for most content, but fine-tuning it helps match the pacing of your specific course material.
Are the voices synthetic or real humans?
The voices are based on licensed recordings from LibriTTS-R and LibriVox public-domain audiobook readings. Every generated file carries an inaudible watermark marking it as synthetic speech. They are based on licensed recordings from LibriTTS-R and LibriVox public-domain audiobook readings.
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. You top up with USDT on the TRON network (TRC-20), and balance does not expire. This simple model ensures predictable costs for your course production.
Do I need to pay for each voice separately?
No, all 8 voices are included in the standard pricing. You do not pay extra for using Aria, Nova, Luna, Sage, Felix, Milo, Atlas, or Orion. The cost is based solely on the number of characters processed, regardless of which voice you select.
Is there a limit to how much text I can process?
Each request handles up to 4096 characters. For longer texts, you split them into parts and join the audio files. You are limited to 60 requests per minute per key. This allows scalable course generation.
First request
curl
curl https://api.mw306r.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 Course Creators Use Our Python TTS Module
LinguaSpeak helps course creators turn written scripts into audio files using a simple Python module. Instead of complex voice design tools, you can generate clear, human-like narration for lessons directly from your text. This allows you to offer audio versions of your content without hiring voice actors or managing studio equipment.
The API handles the synthesis, delivering ready-to-use files. Requests are processed one after another, so under load a request may wait in a queue. This ensures stable generation for long lectures or short tips alike, keeping your workflow predictable.
Convert Scripts to Audio Files
Send your lesson text via a standard POST request and receive an audio file instantly. You can adjust the speed between 0.25 and 4.0 to match your teaching pace. Each request handles up to 4096 characters, making it easy to split longer scripts into manageable parts.
- Generate audio in MP3, WAV, OPUS, FLAC, or PCM formats.
- Adjust playback speed from 0.25x to 4.0x for better pacing.
- Receive ready-to-use audio files directly in your API response.
Simple API Integration
Our endpoint follows the same request shape as the OpenAI speech endpoint. This means you can use the official OpenAI Python SDK by simply changing the base_url to https://api.mw306r.info/v1. No custom SDK installation is required; just send your text and get audio.
- Compatible with the official OpenAI Python SDK.
- Standard JSON body with
model,input, andvoicefields. - Easy authentication using a single Bearer token per account.
Support for Multiple Languages
You can create lessons in 23 languages, including English, Spanish, French, German, and Japanese. Every voice can speak any of these languages, so you don’t need to match the voice to the language. If you don’t specify a language, the system guesses it from the script, though setting it explicitly is recommended for non-English Latin text.
- Support for 23 languages including Arabic, Chinese, Hindi, and Russian.
- Any voice can speak any supported language.
- Automatic language detection if the
languagefield is omitted.
Choose the Right Voice for Your Lessons
Selecting the right voice ensures your course sounds professional and keeps students engaged. Our eight preset voices cover different teaching styles, from warm narration to clear instruction, without requiring complex voice design tools.
Each voice is based on licensed recordings and delivers clear, human-like audio. You can mix and match voices across your lessons to maintain listener interest while keeping production simple.
Warm Narrators for Storytelling
Aria offers a warm, clear tone ideal for narrative lessons or case studies. Luna provides a soft, storytelling voice that makes complex topics feel approachable and relaxed.
Clear Instructors for Tutorials
Sage delivers a calm, instructional tone perfect for step-by-step tutorials. Milo sounds friendly and conversational, making technical explanations feel like a one-on-one coaching session.
Engaging Voices for Promos
Felix brings energy and enthusiasm to promotional videos or course introductions. Orion’s deep, documentary-style voice adds authority and seriousness to premium content or announcements.
Supported Languages and Formats
We support 23 languages, including English, Spanish, and German. Any voice can speak any of these languages. You can set the language field explicitly, or leave it blank for automatic guessing.
Our API outputs audio in MP3, WAV, OPUS, FLAC, or PCM formats. Choose the format that best fits your LMS player. All generated files include an inaudible watermark to identify synthetic speech.
23 Languages Including English and Spanish
Support covers Arabic, Chinese, French, Hindi, Japanese, Korean, Portuguese, Russian, Swahili, and more. If your text is in Latin script but not English, set the language parameter to avoid defaulting to English.
Not supported: Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, and Bengali.
MP3, WAV, and OPUS Output
Send response_format as 'mp3', 'wav', 'opus', 'flac', or 'pcm' in your JSON body. MP3 is ideal for web players; WAV offers uncompressed quality. OPUS provides efficient compression.
Customizable Speed Settings
Adjust the speed parameter between 0.25 and 4.0. This lets you slow down complex explanations or speed up simple reviews. The default speed is 1.0, which sounds natural for most lessons.
Pricing Designed for Course Creators
Pricing is straightforward: $10 per 1 million characters, or $0.01 per 1,000 characters. Spaces and punctuation count toward the total. Failed requests are free, so you only pay for successful audio generation. This model scales naturally with your course volume, whether you have five lessons or five hundred.
Pay Per Character Usage
Generate audio for scripts up to 4,096 characters per request. For longer lessons, split the text and join the resulting files. This keeps individual requests manageable while allowing you to produce full-course audio libraries without complex infrastructure.
No Monthly Subscription Fees
There are no seats, minimum spends, or monthly plans. You can top up using USDT (TRC-20) on the TRON network, with a $5 minimum. Credits are added automatically within minutes and never expire. You only pay for what you use.
Free Trial with Google Sign-in
Sign in with Google to receive $0.50 in trial credit, enough for about 50,000 characters. This trial is valid for 7 days. If you create an account with email and password, you start without trial credit but can top up immediately.
How It Works: The Python Workflow
Converting your course scripts into audio is straightforward with our Python-compatible API. You send your text in a standard POST request to the speech endpoint, specifying the model, voice, and desired language. The system processes your input and returns a downloadable audio file, making integration into your LMS simple and reliable.
Once the request is sent, you receive the generated audio file directly in the response. For longer lessons, you can split the text into chunks of up to 4096 characters, generate each part, and join them seamlessly. This workflow ensures you get clear narration without complex voice design tools.
Send Text via POST Request ['Send your script to the API endpoint with a JSON body containing the text, voice selection, and format. You can specify the language to ensure accurate pronunciation, or let the system guess it from the text script.', 'The request supports various formats like MP3, WAV, or OPUS, and allows speed adjustments between 0.25 and 4.0 times normal speed. This flexibility lets you tailor the audio to fit your lesson’s pacing perfectly.'] ['Use standard Python HTTP libraries or the OpenAI SDK with a custom base URL.', 'Set the Authorization header with your unique API key.', 'Define model, input, voice, and response_format in the JSON body.']
Receive Audio File ['The API returns the synthesized audio file directly in the response body. You can save this file immediately to your local directory or stream it directly into your LMS player. For short phrases, generation takes a few seconds; longer texts take roughly real-time.', 'If the synthesis fails, you are not charged, and the error details are included in the response. This ensures you only pay for successful audio generation, keeping your budget predictable for course production.']
Handle Errors Gracefully ['Implement simple retry logic for transient errors, such as temporary network issues or rate limits. Our API provides clear error codes to help you debug quickly. Remember that rate limits are 60 requests per minute per key, so batch your requests if needed.', 'For texts exceeding 4096 characters, split them into smaller segments, generate audio for each, and concatenate the files. This approach maintains audio quality and ensures compatibility with all standard Python HTTP clients.']

Technical Details for Developers
Our API follows the same request shape as OpenAI’s speech endpoint, so you can reuse existing code by simply changing the base_url to https://api.mw306r.info/v1. This means your current Python scripts for TTS work out of the box without a custom SDK.
OpenAI SDK Compatible
You can use the official OpenAI Python SDK by pointing it to our base URL. Just replace the default endpoint with https://api.mw306r.info/v1 and use your LinguaSpeak API key for authentication. This compatibility lets you integrate TTS into your course platform without learning a new library.
- Use the standard
openaiPython package - Set
base_urltohttps://api.mw306r.info/v1 - Pass your
tts-...key in theAuthorizationheader
Rate Limits and Queues
Each API key is limited to 60 requests per minute. If you exceed this, requests may queue. Processing is sequential, so under load, generation time increases slightly.
Character Limits per Request
Send up to 4,096 characters per request. For longer lessons, split your script into chunks and join the resulting audio files.
- Max input: 4,096 characters
- Spaces and punctuation count toward the limit
Data Privacy and Usage Rights
We prioritize your intellectual property by ensuring that input text is used exclusively to generate the audio file for that specific request. 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.
Every generated audio file contains an inaudible watermark that clearly marks it as synthetic speech, providing transparency for your students while maintaining the professional quality expected in online education.
No Training on Your Content
Input text is used only to produce the audio and is not used for training. We retain request metadata (time, characters, status) solely for accurate billing purposes, ensuring transparency without compromising your creative assets.
Synthetic Audio Watermarking
Every generated file carries an inaudible watermark that marks it as synthetic speech. This ensures clarity about the audio source for your learners while maintaining the natural, human-like quality of your course narration.
Secure API Key Management
Each account is secured with a single active API key. You can issue a new key at any time via your dashboard, and the old key stops working immediately, ensuring robust access control without complex overhead.
Common Use Cases in LMS
LMS administrators can transform static text modules into engaging audio lessons, allowing students to learn while commuting or exercising. By converting scripts into natural-sounding speech, you provide a flexible learning experience without requiring complex voice design tools or expensive studio time.
Audiobook Versions of Text Lessons
Convert your written course materials into high-quality audio files using our Python module. Students can listen to lessons at customizable speeds.
- Support for 23 languages including English, Spanish, and German
Accessibility for Visual Learners
Enhance inclusivity by providing audio alternatives for visual content. Our synthetic speech includes an inaudible watermark to mark content as generated, ensuring transparency for students and institutions.
Automated Quiz Narration
Generate clear narration for quiz instructions and feedback instantly. Since voices speak any supported language, you can easily localize quizzes for diverse student groups without hiring new voice actors.
- Simple POST request integration for automated workflows
Get Started with Python Today
Start building your course audio pipeline in minutes. Sign up using your Google account to receive a free trial credit instantly, or create a standard account with your email to begin tracking usage from day one.
Sign Up for a Free Trial
Visit the /get-api-key/ page and click "Sign in with Google." You will immediately receive $0.50 of credit, valid for seven days, which covers roughly 50,000 characters. This allows you to test the integration without any payment method attached.
Generate Your API Key
Once logged in, navigate to your dashboard to view your unique API key. This key authenticates your requests to the API. You can generate a new key at any time, which instantly invalidates the previous one for security.
- Keep your key secure and do not expose it in client-side code.
Copy the Ready-to-Use Code
On the dashboard, find the pre-configured Python example. Simply paste your API key into the provided script. The code handles the POST request to the speech endpoint, sending your lesson text and receiving the audio file directly.
- Use the OpenAI SDK by updating the base_url to our API endpoint.
- The script supports standard error handling for rate limits or failed requests.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Premium voice models within these SDKs usually cost more than our standard or HD engines, increasing the budget for high-volume audio generation.
23 languages
Any voice speaks any of these languages.
