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 per site. The dashboard displays your active API key, balance, trial status, and characters remaining. You can issue a new key at any time, which immediately invalidates the previous one.
Which SDK should I use?
Use the official OpenAI SDKs. The request shape matches the OpenAI speech endpoint exactly. You do not need a custom SDK. Simply change the base URL to https://api.99laju.info/v1 and provide your VoiceLift key. Other SDKs work if they support the same JSON structure.
How do I set the base URL?
Configure your SDK or HTTP client to use https://api.99laju.info/v1 as the base URL. This allows you to use standard OpenAI SDKs by overriding the default endpoint. Ensure your Authorization header uses the Bearer token format with your specific API key.
What is the JSON body structure?
Send a POST request to /v1/audio/speech with a JSON body containing model (tts-1 or tts-1-hd), input (text up to 4096 characters), voice (one of 8 presets), response_format (mp3, wav, opus, flac, pcm), and optional speed (0.25–4.0) and language fields.
How do I handle errors?
Failed requests are free, and the charge is returned in full. Monitor the HTTP status code from the API response. If synthesis fails, you receive no audio file and retain your balance. Ensure your text is under 4096 characters and your key is valid.
Which voice is best for lessons?
Sage offers a calm, instructional tone suitable for educational content. Luna provides a soft, storytelling voice for narrative lessons. For neutral news-style delivery, use Atlas. For energetic promos, try Felix. All voices support all 23 languages, so choose based on your desired tone.
How do I specify a language?
Include the optional 'language' field with an ISO code in your request. If omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicitly setting the language is recommended for non-English Latin-script text to ensure accuracy.
How do I split long texts?
Split your text into parts of up to 4096 characters per request. Send each part individually and join the resulting audio files. Typical generation speed is roughly real-time, so long texts will take time. Requests are processed sequentially, so queueing may occur under load.
How do I monitor my usage?
Visit the /get-api-key/ dashboard to view your balance, characters left, and usage history. The API returns metadata for billing, including time and status. Rate limits are 60 requests per minute per key. Monitor your dashboard to track consumption and avoid hitting limits.
How do I top up my balance?
Top up using USDT on the TRON network (TRC-20). The minimum amount is $5. Credits are added automatically within minutes after the transfer. There are no monthly plans, subscriptions, or invoices. Balance does not expire, and no other payment methods are supported.
Can I use the API with WordPress?
Yes, by making HTTP requests to the API endpoint. There is no official WordPress plugin. The API accepts standard JSON bodies, making it compatible with any system that can send HTTP POST requests.
Is there a mobile SDK?
No, there is no official mobile SDK. You can use the standard OpenAI SDKs or make direct HTTP requests from your mobile application. The API is language-agnostic, so any platform capable of sending JSON POST requests to https://api.99laju.info/v1 can use it.
How long does integration take?
Integration is straightforward since the request shape matches the OpenAI speech endpoint. Changing the base URL and providing your API key allows immediate use with existing OpenAI SDKs. For custom HTTP clients, simply implement the POST request to /v1/audio/speech with the required JSON fields.
What if I make a mistake in the request?
If synthesis fails, the request is free, and the charge is returned in full. Check your text length (max 4096 characters), voice validity, and JSON structure. Ensure your API key is active. Failed requests do not consume your balance, allowing you to retry without cost.
Step 1: Get Your API Key
Start by creating an account on the 99laju.info/get-api-key/ page. You can sign in with Google for an immediate trial credit or use a standard email and password. This account is specific to this storefront and holds your API key and usage data.
Sign Up Process
Registration takes seconds. Google sign-up grants a $0.50 trial valid for 7 days, sufficient for testing. Email accounts start with zero balance until you add funds.
- Google OAuth or email/password options
- Instant account creation
- Trial credit for Google users
Key Generation
Your dashboard displays a single active API key starting with 'tts-'. Use this key in the Authorization header. You can generate a new key at any time; the old one becomes invalid immediately.
- Format: Bearer tts-...
- One active key per account
- Instant invalidation on rotation
Initial Balance
Check your balance and character count directly on the dashboard. Google sign-ups include $0.50 credit. Other accounts begin with a zero balance, requiring a top-up via USDT (TRC-20) to start generating audio.
Step 2: Configure Your Environment
Configure your development environment to communicate with the VoiceLift API. The service uses the same request shape as the OpenAI speech endpoint, allowing you to leverage existing OpenAI SDKs with minimal configuration changes. This ensures consistent behavior and simplifies integration for teams already familiar with standard TTS workflows.
You will need to install the official OpenAI Python or Node.js SDK, update the base URL to point to the VoiceLift API endpoint, and inject your unique API key into the authentication header. This setup enables direct, programmatic access to the text-to-speech engine for bulk course generation.
Install OpenAI SDK
Install the openai package using your preferred package manager. For Python, run pip install openai. For Node.js, use npm install openai. This provides the necessary client libraries to handle JSON serialization and API communication efficiently.
The SDK handles low-level HTTP details, allowing you to focus on passing the correct parameters for model, voice, and input text. It supports both synchronous and asynchronous calls, which is critical for managing bulk requests in LMS environments.
- Supports Python 3.8+ and Node.js 14+
- Handles JSON request bodies automatically
- Provides robust error handling for API responses
Set Base URL
Configure the SDK’s base URL to https://api.99laju.info/v1. This redirects all requests to the VoiceLift infrastructure while maintaining the standard /v1/audio/speech endpoint structure. Ensure this setting is applied before initializing the client instance to avoid connection errors.
Using the correct base URL ensures that the SDK routes requests to the correct engine. This is the only configuration change required to switch from the standard OpenAI endpoint to the VoiceLift API, preserving compatibility with existing codebases.
- Base URL:
https://api.99laju.info/v1 - Endpoint:
/v1/audio/speech - No additional path modifications needed
Add API Key
Retrieve your API key from the /get-api-key/ dashboard after signing up. Set the Authorization header to Bearer <your-key>. The SDK typically accepts this via an environment variable OPENAI_API_KEY or a direct configuration parameter. Keep this key secure and rotate it if necessary.
One active key is issued per account. If you generate a new key, the old one becomes invalid immediately. Ensure your LMS integration updates the key seamlessly if a rotation occurs to prevent service interruptions during course audio generation.
- Format:
Bearer tts-... - One active key per account
- Rotating a key invalidates the previous one instantly
Step 3: Write Your First Request
To verify your integration, send a POST request to the speech endpoint with your text and voice selection. The API processes the input synchronously, returning the generated audio file directly in the response body. This straightforward exchange ensures your LMS can immediately store the resulting audio asset.
You can test the connection using a simple cURL command or the OpenAI SDK. Ensure your API key is included in the Authorization header. The system accepts standard JSON bodies, making it easy to integrate into existing Python, Node.js, or PHP scripts used by your course platform.
cURL Example
Use this command to generate audio. Replace YOUR_API_KEY with your key from /get-api-key/ and text with your lesson content.
```bash curl -X POST https://api.99laju.info/v1/audio/speech \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Welcome to Module 1", "voice": "nova", "response_format": "mp3"}' \ --output audio.mp3 ```
JSON Body Setup
The request body requires specific fields: model ("tts-1" or "tts-1-hd"), input (up to 4096 characters), voice (one of the 8 presets), and response_format (mp3, wav, opus, flac, or pcm). You may optionally specify speed (0.25–4.0) and language (ISO code).
All fields are sent as a single JSON object. The input field accepts plain text; no SSML or phoneme dictionaries are supported. Spaces and punctuation count toward the 4096-character limit and your character billing.
- model: "tts-1" or "tts-1-hd"
- voice: e.g., "nova", "aria", "atlas"
- response_format: mp3, wav, opus, flac, pcm
- speed: 0.25 to 4.0
- language: optional ISO code
Sending the Request
Submit the request via HTTPS POST. The API processes requests sequentially; under load, you may experience a brief queue delay. Typical generation speed is roughly real-time for long texts, though short phrases may take a few seconds.
On success, the response contains the binary audio data. Save this output directly to your LMS media library. If the synthesis fails, the charge is returned in full, and an error object is returned in JSON format.
Step 4: Handle Responses
The API returns the audio file as binary data. Your integration must parse this raw data directly from the response body without intermediate conversion steps.
Parsing Audio Data
Read the response body as bytes. Do not treat the output as JSON; the payload is the audio file itself. Ensure your HTTP client preserves binary integrity during transmission to prevent corruption of the generated speech file.
- Response content type matches the requested format (e.g., audio/mpeg for mp3)
Saving Files
Write the parsed bytes immediately to your storage or CDN. Since the API does not store generated audio, you are responsible for persisting the file. Use the voice and language parameters in your filename for easy retrieval later.
Error Handling
Check the HTTP status code before processing the body. If the request fails (non-2xx), the API returns a JSON error object with a code and message. Failed requests are free, so no charge adjustment is needed. Log these errors for debugging.
- 401: Invalid API key
- 429: Rate limit exceeded (60 req/min)
- 400: Invalid input or model parameter
Step 5: Choose Your Voices
VoiceLift provides eight distinct voice presets, ranging from warm narrators to energetic announcers. Each voice is engineered for specific content types, ensuring your course audio matches the intended instructional tone.
Selecting Narrators
Choose from female voices like Aria for clear narration or Luna for storytelling. Male options include Felix for promotional segments, Atlas for neutral news-style delivery, and Orion for deep documentary tones. Each preset offers a consistent character for your entire curriculum.
- Aria: Warm, clear narrator
- Felix: Energetic, promo
- Atlas: Neutral, news
- Orion: Deep, documentary
Matching Tone to Content
Align voice personality with lesson structure. Use Sage for instructional modules and Nova for upbeat quizzes. Consistent voice selection improves learner retention and reduces cognitive load by providing familiar audio cues across different course sections.
Testing Voices
Generate short samples for each voice using the API. Evaluate clarity and pacing against your specific script style. Voices are based on licensed recordings from LibriTTS-R and LibriVox.
Step 6: Manage Languages
Our API supports 23 languages, allowing any voice to speak any supported language. You can explicitly define the language or rely on script detection. For non-English Latin text, always set the language field to avoid defaulting to English.
This flexibility ensures accurate pronunciation for diverse course content. Whether your curriculum is in German, Japanese, or Swahili, the same engine handles the synthesis consistently.
ISO Code Usage
Pass the ISO 639-1 code (e.g., de, ja, es) in the request body. This guarantees the model uses the correct phonetic rules. Without it, Latin-script text defaults to English, which may mispronounce foreign terms.
Supported languages include Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish.
- Use
languagefield for explicit control. - Latin text defaults to English if omitted.
- All 8 voices support all 23 languages.
Auto-Detection
If the language field is omitted, the system guesses based on the script. Cyrillic text triggers Russian, while Greek text triggers Greek. This works well for monolingual content but may fail for mixed scripts.
For precise control, especially with code-switching or proper nouns, always specify the language code explicitly.
Multi-Language Courses
Split your text into segments and assign the appropriate language code to each segment. This allows seamless mixing of languages within a single lesson. For example, a history course might switch between English and French for primary source readings.
Ensure consistent voice selection across language switches to maintain a unified listening experience for students.
Step 7: Optimize for Bulk Generation
Bulk audio generation requires careful handling of text length and concurrency. Our API enforces a 4096-character limit per request, so long scripts must be split before submission. Results are concatenated client-side.
Efficient batching ensures your LMS delivers audio files without hitting rate limits. Understanding these constraints helps maintain steady generation speeds for large course libraries.
Splitting Long Texts
Break input text into chunks of up to 4096 characters. Ensure splits occur at natural boundaries like sentence ends to avoid awkward audio cuts.
Concatenate the resulting audio files in the original order to reconstruct the complete lesson track.
- Max 4096 characters per request
- Split at sentence boundaries
- Concatenate outputs sequentially
Parallel Requests
Send multiple independent requests concurrently to reduce total generation time. Each request consumes one unit of your 60 requests-per-minute quota.
Parallelism works best when splitting distinct lessons or chapters, not when processing a single long text.
- Use concurrent HTTP calls
- Each call counts toward limit
- Ideal for distinct lessons
Rate Limit Management
The API allows 60 requests per minute per key. New accounts start with 10 requests per minute until the first top-up.
Monitor your usage dashboard to stay within limits. Exceeding the limit will delay requests in the processing queue.
- 60 requests/minute after top-up
- 10 requests/minute initially
- Queues requests if exceeded
Step 8: Monitor Usage and Costs
Monitoring your account ensures uninterrupted course production. The dashboard displays your current balance, available characters, and usage history in real time. This transparency allows administrators to forecast costs accurately without surprise charges.
Understanding character counting is critical since spaces and punctuation contribute to the total. Failed requests are free, so you only pay for successfully generated audio. This model keeps expenses predictable for large-scale deployments.
Checking Balance
Access your balance directly from the /get-api-key/ dashboard. The interface shows your remaining credit and character count. You can also view detailed usage logs to track which courses consumed the most audio.
- Real-time balance updates
- Detailed usage logs
- Character count per request
Tracking Characters
Each request counts characters in the input field, including spaces. The cost is $0.01 per 1,000 characters. Long scripts require splitting, but each chunk is billed individually. Monitor your API key usage to stay within budget limits.
Top-Up Process
Add funds via USDT on the TRON network (TRC-20). The minimum top-up is $5. Credits are added automatically within minutes of transfer confirmation. There are no subscriptions or invoices, keeping the process simple for finance teams.
- USDT (TRC-20) only
- Minimum $5 top-up
- Automatic credit within minutes
Step 9: Test with Real Content
Testing with actual course material ensures the TTS output aligns with your curriculum’s pacing and clarity. Use a standard 5-minute lesson script to evaluate how the API handles natural pauses and emphasis.
This step bridges the gap between technical integration and pedagogical effectiveness, ensuring the audio enhances rather than distracts from the learning experience.
Sample Lesson Audio
Generate audio for a representative lesson segment using your chosen voice. Verify that the output matches the expected duration, aiming for roughly real-time generation speed.
Ensure the text input stays within the 4,096-character limit per request. If the lesson is longer, split it logically into parts before synthesis.
- Select a script with varied sentence structures.
- Verify audio length matches text duration expectations.
- Check for seamless transitions between split segments.
Quality Check
Listen for natural intonation and clarity. Confirm that the synthetic watermark is present but inaudible during normal playback. Test across different devices to ensure consistent audio quality.
Verify that the selected voice tone matches the content type, whether instructional or narrative. Ensure no unexpected pauses or artifacts are present in the generated file.
- Check intonation and clarity.
- Verify synthetic watermark presence.
- Test across multiple playback devices.
User Feedback
Share the sample audio with a small group of learners or colleagues. Gather specific feedback on comprehension and engagement levels.
Use this input to refine voice selection or text preprocessing before scaling to the full course library.
- Collect feedback from a test group.
- Assess learner comprehension and engagement.
- Refine voice selection based on insights.
Step 10: Deploy to Production
Final integration involves confirming that your LMS correctly handles the audio binary responses and stores them in your content repository. Ensure your webhook or cron job respects the 60 requests per minute limit to avoid throttling during bulk generation.
Before going live, run a performance test with a representative course module. Verify that the API latency remains stable under load and that character counts align with your billing expectations.
Final Integration
Map the audio file URLs or binary data to your course metadata. Confirm that the generated audio files are accessible to students via your LMS player without authentication barriers if required.
- Verify audio file storage paths in your LMS database
- Ensure stable connection to api.99laju.info/v1
- Confirm character count accuracy against billing
Performance Testing
Simulate peak usage by sending multiple parallel requests. Monitor response times to ensure they stay within acceptable limits for user experience, keeping in mind that processing is sequential under heavy load.
Go Live
Once tests pass, enable the TTS feature for your learners. Monitor the first few hours of generation for any unexpected errors and check your balance to ensure sufficient credits for the initial wave of users.
Common Pitfalls
Many LMS administrators encounter integration bottlenecks by overlooking simple API constraints. Ignoring rate limits or mismanaging text length can cause silent failures or delayed audio delivery in your course player. Understanding these boundaries ensures your bulk generation pipeline runs smoothly without exhausting your character quota unexpectedly.
This guide highlights three frequent errors that disrupt automated voice generation workflows. By addressing these specific technical hurdles, you can maintain consistent audio output quality and predictable billing cycles for your entire student base.
Ignoring Rate Limits
The API enforces a strict limit of 60 requests per minute per key. If your LMS triggers synthesis for multiple students simultaneously, exceeding this threshold will queue subsequent requests, causing noticeable delays in audio playback. New accounts start with a lower limit of 10 requests per minute until the first top-up is processed.
To mitigate this, implement exponential backoff in your integration script. Monitor your usage dashboard to ensure you stay within the 60 requests/minute ceiling, especially during peak class hours when many learners request audio simultaneously.
- New accounts: 10 requests/minute
- Standard accounts: 60 requests/minute
- Requests queue if limit exceeded
Not Splitting Text
Each API request accepts a maximum of 4096 characters for the input field. Sending a full lesson script that exceeds this limit results in a request failure. You must split longer texts into chunks of 4096 characters or less and join the resulting audio files sequentially.
This splitting logic is critical for bulk generation. Ensure your LMS handles the concatenation of multiple audio segments seamlessly so students experience a continuous lecture without awkward pauses between chunks.
Wrong Language Codes
If the language field is omitted, the API guesses the language based on the script. For non-English Latin text, this default guess is often English, leading to incorrect pronunciation. Always explicitly set the ISO language code for courses in languages like German, French, or Spanish.
Supported languages include Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. Verify your course metadata matches these codes to avoid accent mismatches.
Support and Resources
Support is available via email for integration questions and billing inquiries. We do not offer live chat or phone support, so please include your API key and a clear description of the issue in your message for faster resolution.
Email Support
Our team reviews all incoming messages and responds during business hours. Include your account ID and relevant request logs to help us diagnose the problem quickly.
- Response time: typically within 24 hours
- Include API key and error codes
- No phone or live chat support
Documentation Links
The full API reference, including request schemas and voice details, is available at the /docs/ endpoint. Use this resource to verify parameter formats and rate limits before implementing.
- API Reference: /docs/
- Voice List: /v1/voices
- Pricing Details: /pricing/
Community Forums
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. For precise control, especially with code-switching or proper nouns, always specify the language code explicitly.
23 languages
Any voice speaks any of these languages.
