Text-to-Speech API for Online Courses and LMS

By LMS Voice editorial team · Updated 2026-11-18

LMS Voice is a text-to-speech API built for product teams creating online courses, LMS content, and educational videos. We provide a reliable, character-based API to turn lesson scripts into natural-sounding audio without manual recording overhead. This page explains how to integrate synthetic voice generation into your existing video and course production workflows.

You will find technical specifications, pricing details, and integration examples tailored to educational content. Learn how to generate audio in 23 languages, manage credits, and maintain consistent voice quality across all your modules using our OpenAI-compatible endpoint.

Text-to-Speech API for Online Courses and LMS

Frequently asked questions

What is an AI voice generator for LMS?

LMS Voice is a cloud API that converts text scripts into audio files via a POST request. You send text and receive an audio file, eliminating manual recording overhead. The endpoint accepts JSON bodies similar to the OpenAI speech endpoint, allowing product teams to integrate natural-sounding voiceovers directly into their course creation workflows.

Which voices are best for educational content?

Sage is designed for instructional content, while Luna suits storytelling. Aria provides a clear narrator style, and Milo offers a friendly, conversational tone. All eight voices support any of the 23 available languages, allowing you to match the specific tone of your lesson scripts without relying on subjective rankings.

How many languages does the API support?

The API supports 23 languages, including English, Spanish, French, German, Japanese, and Chinese. Any voice can speak any of these languages. If the language is not specified, it is guessed from the script, though setting it explicitly is recommended for non-English Latin-script text to ensure accuracy.

Is the text used to train the AI model?

No. Input text is used only to produce the specific audio file returned in the response. It is not used for training the model. Generated audio is not stored, though request metadata like time, characters, and status are kept for billing purposes.

Can I generate audio for long course modules?

Yes, but you must split texts into parts of up to 4096 characters per request. You then join the resulting audio files. Typical speed is roughly real time, so long texts take time to generate. Requests are processed sequentially, so under load, a request may wait in a queue.

What file formats are available for download?

The API supports MP3, WAV, OPUS, FLAC, and PCM formats. You specify the desired format in the response_format field of your JSON request body. This allows you to choose the best balance between file size and quality for your specific LMS platform requirements.

How does the character-based pricing work?

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 monthly plans, seats, or minimum spends, and balance does not expire.

Do I need a developer to integrate the API?

Integration requires sending a POST request with a JSON body and an Authorization header. The endpoint shape matches the OpenAI speech endpoint, so official OpenAI SDKs work by changing the base URL. Developers can use the provided curl example or standard HTTP libraries to implement the integration.

Is there a free trial available?

Yes, signing in with Google provides $0.50 of credit, valid for 7 days. This allows about 50,000 characters of generation. Accounts created with email and password start without trial credit. You can top up using USDT on the TRON network to continue usage.

Can I use the generated audio in commercial courses?

Yes, the API provides a reliable tool to turn lesson scripts into audio for your courses. The generated files carry an inaudible watermark marking them as synthetic speech. The input text is not stored or used for training, ensuring your content remains your own.

How do I handle text longer than 4096 characters?

You must split your text into parts of up to 4096 characters and send multiple requests. Then, join the resulting audio files. The API does not handle splitting automatically. This workflow ensures each request stays within the character limit while producing complete audio content.

Are the voices realistic and natural sounding?

Our voices sound natural, derived from licensed LibriTTS-R and public-domain LibriVox recordings. They offer distinct styles, from warm narration to calm instruction. However, every generated file carries an inaudible watermark marking it as synthetic speech, distinguishing it from human recordings. We do not claim human-like realism, as the audio is clearly machine-generated synthetic speech.

What happens if a generation request fails?

If synthesis fails, the charge is returned in full. You are not billed for failed requests. This ensures you only pay for successful audio generation. You can retry the request or adjust parameters like speed or voice to resolve the issue.

Do you offer custom voice cloning for educators?

No, custom voice cloning is not offered. The API provides eight preset voices based on licensed recordings. You cannot upload your own voice or design custom voices. There is no voice cloning feature available for educators or any other customers.

First request

curl

curl https://api.playds11.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.mp3

Scale your course audio without hiring voice actors

Sound wave illustration for: Scale your course audio without hiring voice actors

Generate natural-sounding course audio directly from text scripts. Our API turns lesson content into ready-to-use audio files, eliminating the scheduling and studio overhead of traditional voice recording. This allows product teams to produce consistent narration at scale without managing external talent.

With support for 23 languages and eight distinct voice presets, you can maintain a cohesive brand voice across diverse educational materials. Whether creating warm narrations or clear tutorials, the API adapts to your content’s tone while ensuring high-quality output.

Instant audio generation from text

Send your script via a simple REST API call and receive an audio file in seconds. The system processes requests sequentially, handling up to 4,096 characters per request. For longer lessons, split the text and join the resulting audio files seamlessly.

This workflow integrates directly into your existing content pipelines. You can automate the generation of audio assets for new courses or update existing lessons quickly when scripts change, ensuring your LMS content stays current without manual re-recording.

  • Send JSON payloads with text and voice selection
  • Receive MP3, WAV, FLAC, OPUS, or PCM files
  • Process up to 4,096 characters per request

Support for 23 languages and diverse voices

The API supports 23 languages, including English, Spanish, German, French, Japanese, and Chinese. Any of the eight available voices can speak any of these languages, allowing you to localize content without hiring separate voice actors for each region.

Choose from female voices like Aria for warm storytelling or Sage for clear instruction, and male voices like Felix for energetic promos or Atlas for neutral news-style updates. This variety ensures the audio matches the specific mood of each lesson.

Simple integration with your LMS or video pipeline

The API endpoint is compatible with the OpenAI SDK format, making integration straightforward for developers. Change the base URL to our API domain and use your API key to start generating audio. This simplicity reduces development time and allows your team to focus on content rather than infrastructure.

Receive audio files directly in your response, ready to be embedded in your LMS or appended to video editors. The consistent character-based pricing and lack of subscription fees make it easy to budget for large-scale course production.

Voices designed for clear instruction

Sound wave illustration for: Voices designed for clear instruction

The eight available voices cover distinct tonal needs for educational content. From warm narrators to neutral news-style speakers, each preset is optimized for clarity and comprehension in learning environments.

These voices are based on licensed LibriTTS-R recordings, ensuring high-quality synthetic speech without the overhead of manual recording sessions. Every generated file carries an inaudible watermark marking it as synthetic.

Warm narrator voices for storytelling lessons

Aria offers a warm, clear narrative style ideal for storytelling modules. Luna provides a soft, storytelling tone perfect for engaging learners with historical or biographical content.

These voices help maintain listener interest during longer lesson segments without requiring human talent for every script update.

Clear instructional voices for tutorials

Nova delivers a bright, upbeat tone suitable for quick tips and feature walkthroughs. Sage provides a calm, instructional voice that excels in technical tutorials and step-by-step guides.

Their clarity ensures that complex instructions are understood without auditory fatigue, supporting both visual and auditory learning styles.

Neutral news-style voices for updates

Atlas speaks in a neutral, news-style tone, making it ideal for course announcements, module updates, or factual recaps. Orion offers a deep, documentary-style voice for more serious or in-depth subject matter.

These presets ensure consistent brand voice across diverse content types, from promotional updates to core curriculum delivery.

Voices designed for clear instruction

How it works for product teams

Sound wave illustration for: How it works for product teams

Product teams can integrate audio generation directly into their content pipelines using a straightforward REST API. By sending lesson scripts as JSON payloads, the system processes the text and returns ready-to-use audio files, eliminating the need for manual recording coordination or studio scheduling.

Send text via REST API

Use the standard OpenAI-compatible endpoint to submit text up to 4,096 characters. Specify the desired voice, language, and audio format in the JSON body. The API processes requests sequentially, so under load a request may wait in a queue.

  • POST to /v1/audio/speech
  • Supports standard JSON request shapes
  • Compatible with official OpenAI SDKs

Receive MP3, WAV, or FLAC audio files

The API returns high-quality audio files in formats like MP3, WAV, FLAC, or OPUS. These files are immediately available for download or direct upload to your LMS. Failed requests do not incur charges, ensuring cost efficiency for large-scale content production.

  • MP3, WAV, FLAC, OPUS support
  • Immediate file availability
  • No charge for failed requests

Manage credits and usage via dashboard

Monitor your character usage and balance directly through the web dashboard. The system tracks successful generations for billing, with credits deducted only when audio is successfully produced. You can view historical usage data to forecast needs for upcoming course batches.

  • Real-time balance tracking
  • Transparent character counting
  • Easy top-up via USDT

Technical specifications

Sound wave illustration for: Technical specifications

The API follows the standard OpenAI request shape, allowing teams to reuse existing OpenAI SDKs by simply adjusting the base_url to https://api.playds11.com/v1. You can use the official OpenAI client libraries with our endpoint, passing your tts-... key via the Authorization: Bearer header. This compatibility reduces integration friction for engineering teams already familiar with OpenAI’s speech endpoints.

OpenAI-compatible SDK support

By changing the base URL, you can leverage the official OpenAI SDKs without rewriting your integration logic. The request structure mirrors the OpenAI speech endpoint, ensuring a straightforward transition for developers.

  • Use standard OpenAI SDKs with base_url=https://api.playds11.com/v1
  • Support for JSON request body with model, input, voice, and response_format

Rate limits: 60 requests per minute

Each API key is limited to 60 requests per minute. New accounts start with a lower limit of 10 requests per minute until the first top-up is processed. Requests are processed sequentially, so under heavy load, synthesis may queue briefly.

  • Standard limit: 60 requests per minute per key
  • Initial limit: 10 requests per minute until first top-up

Text input up to 4,096 characters per request

Each API call accepts a maximum of 4,096 characters for the input field. For longer lesson scripts, split the text into chunks and join the resulting audio files. Spaces and punctuation count toward the character limit.

  • Maximum input length: 4,096 characters per request
  • Split and join audio for longer content

Pricing that scales with your content

Sound wave illustration for: Pricing that scales with your content

For course creators, audio production costs often scale linearly with content volume. LMS Voice uses a simple character-based model: $0.01 per 1,000 characters. This flat rate applies to all voices and formats, making budgeting predictable for large libraries.

$10 per 1 million characters

Your API key tracks usage accurately. Spaces and punctuation count as characters. This model eliminates guesswork when estimating costs for new modules or expanded course catalogs.

No monthly plans or subscriptions

We do not lock you into seats or minimum spend tiers. You pay only for what you generate. This structure suits teams with fluctuating content release schedules, avoiding waste during quiet periods.

Pay only for successful generations

If synthesis fails, the charge is returned in full. You are not billed for errors or timeouts. This ensures you only pay for usable audio files delivered to your pipeline.

Pricing that scales with your content

Data privacy and licensing

Sound wave illustration for: Data privacy and licensing

We use your input text solely to generate the requested audio file. Once the synthesis is complete, the generated audio is returned in the response and not stored on our servers. Request metadata, such as timestamps and character counts, is retained exclusively for billing purposes.

Text used only for generation, not training

Our system processes your lesson scripts without adding them to any training datasets. The input text is not used to improve or train our speech models, ensuring that your course content remains private and distinct from our engine's development data.

Voices based on licensed LibriTTS-R recordings

All eight voice presets are derived from the LibriTTS-R dataset, which is licensed under CC BY 4.0. These voices originate from public-domain audiobook readings available on LibriVox. This foundation provides a consistent, high-quality audio base for your educational content without requiring individual voice actor contracts.

Inaudible watermark on all synthetic audio

Every audio file generated through the API carries an inaudible watermark. This digital signature marks the file as synthetic speech, helping you maintain transparency with your learners. It is a standard feature of our TTS engine and applies to all output formats.

Common use cases in education

Sound wave illustration for: Common use cases in education

Product teams building online courses often face the bottleneck of manual voice recording. LMS Voice automates this by converting lesson scripts into natural-sounding audio files via a simple REST API. This allows educational teams to generate consistent narration for video lessons without scheduling voice actors or managing studio time.

Automated voiceovers for video lessons

Generate MP3 or WAV files directly from your script text. Each request handles up to 4,096 characters, allowing you to batch longer lessons. The API returns audio files ready for immediate integration into your video pipeline or LMS platform.

Audiobooks for text-based courses

Convert static course materials into listenable content. With support for 23 languages and diverse voice presets like Aria or Felix, you can create engaging audio versions of your text-based modules. This extends the reach of your content to users who prefer listening while commuting or working.

Accessibility improvements for visual learners

Enhance inclusivity by providing audio alternatives for visual content. Synthetic speech provides a consistent listening experience across all your courses. Since voices are based on licensed recordings, you maintain high quality without the variability of different human narrators.

Getting started quickly

Sound wave illustration for: Getting started quickly

To begin, visit the /get-api-key/ page and create an account using your Google sign-in or an email and password. This initial step establishes your workspace within the LMS Voice ecosystem, allowing you to access the dashboard where your specific API key and usage statistics are displayed.

Once registered, you receive an API key immediately. This key authenticates your requests to the API base URL. You can then proceed to test the integration using the provided curl example, which demonstrates a standard POST request to generate audio from your course text.

Sign up with Google or email

Creating an account is straightforward. Choose between Google authentication for speed or standard email registration. Note that Google sign-ups include a $0.50 trial credit valid for seven days, while email-based accounts start without trial credit. This flexibility accommodates both quick testing and dedicated product team workflows.

Get your API key instantly

After registration, your account dashboard displays your active API key and current balance. This key is used for authentication via the Authorization: Bearer header. You can issue a new key at any time, which immediately invalidates the previous one, ensuring secure access management for your team.

Use our curl example to test

The dashboard provides a ready-to-use curl command. It demonstrates a POST request to /v1/audio/speech with a sample text and voice preset. This allows you to verify connectivity and generate your first audio file without writing code from scratch. Ensure your key is correctly formatted to avoid authentication errors.

Getting started quickly

Why choose an API over manual recording

Sound wave illustration for: Why choose an API over manual recording

Manual recording requires scheduling talent, booking studios, and managing multiple takes to ensure consistent pacing and tone across dozens of lessons. With the LMS Voice API, every module is generated using the same voice preset, ensuring a uniform listening experience for students regardless of course length or module count.

When you update a script, you only regenerate the affected audio segments rather than re-recording entire sessions. This eliminates the logistical overhead of coordinating voice actors for minor edits, allowing product teams to keep course content current with minimal effort.

Consistent voice quality across all courses

Hiring different voice actors for separate modules often results in varying audio levels, tonal qualities, and pacing. An API ensures that every lesson, from the introductory module to the final exam, sounds like it belongs to the same cohesive curriculum. This consistency reduces cognitive load for learners and reinforces brand identity without requiring strict directorial oversight for each session.

  • Uniform tone across all modules
  • No variation between different voice actors
  • Standardized audio levels and pacing

Update audio when script changes

Educational content evolves as industry standards shift or new information becomes available. Regenerating audio via API allows you to update specific lessons in minutes rather than days. You can correct errors or add new concepts without booking studio time again, ensuring your course remains accurate and relevant with minimal production overhead.

  • Instant regeneration of specific segments
  • No need to re-book studio time
  • Rapid iteration on feedback or updates

Reduce production time and costs

Traditional recording involves significant lead time for scheduling, setup, and post-production editing. Our character-based pricing model ($0.01 per 1,000 characters) scales directly with your content volume. You avoid the fixed costs of studio rentals and talent fees, paying only for successful generations. This model is particularly efficient for large libraries where manual recording would become prohibitively expensive and slow.

  • Pay only for successful generations
  • No studio rental or talent fees
  • Scalable costs based on character count

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Our platform streamlines learning management so product teams can scale courses efficiently without technical overhead.

Avatar of the voice aria
ariafemale
Avatar of the voice nova
novafemale
Avatar of the voice luna
lunafemale
Avatar of the voice sage
sagefemale
Avatar of the voice felix
felixmale
Avatar of the voice milo
milomale
Avatar of the voice atlas
atlasmale
Avatar of the voice orion
orionmale

23 languages

Any voice speaks any of these languages.

Sources and further reading

  1. Wikipedia
  2. FFmpeg documentation
  3. W3C WAI: making audio and video accessible
  4. OpenAI API reference: create speech
  5. Tether (USDT)
  6. TRON developer hub: TRC-20
  7. MDN: Web Speech API
  8. Creative Commons Attribution 4.0
  9. openai-python on GitHub
  10. Python documentation
  11. ISO 639 language codes
  12. IETF RFC 7845: Ogg Opus

More on this site