Text-to-Speech API for Language Learning Apps

By SpeakLingo editorial team · Updated 2026-11-19

This page explains how SpeakLingo’s text-to-speech API helps product teams integrate high-quality audio for language learning and audiobook production. We provide a simple integration path to convert long texts into natural-sounding audio files using consistent voices across 23 languages.

You will find concrete details on our 23 supported languages, 8 voice presets, and transparent per-character billing. Explore our technical specs, integration examples, and pricing to see how our API fits your workflow. Get started by generating your API key and testing with our free trial credit.

Text-to-Speech API for Language Learning Apps

Frequently asked questions

What is a TTS API?

A TTS API is a cloud service that converts text into audio files via a simple POST request. You send text and receive an audio file. It uses the same request shape as OpenAI’s speech endpoint, allowing you to use official OpenAI SDKs by adjusting the base URL to our API endpoint.

How does text-to-speech work?

You send a JSON payload with text, a model (tts-1 or tts-1-hd), and a voice preset to our endpoint. The system processes the request and returns an audio file. For longer texts, you split them into 4096-character parts and join the resulting audio files. Each file carries an inaudible synthetic watermark.

Which voice is best for language learning?

All eight voices support all 23 languages, so you can choose based on tone. Aria offers a warm, clear narrator style, while Luna provides a soft, storytelling voice. For instructional content, Sage is calm and clear. You can select any voice for any language, ensuring consistent quality for your learners.

How many characters can I send in one request?

You can send up to 4096 characters per request. If your text exceeds this limit, split it into parts of up to 4096 characters each. Then, generate audio for each part and join the files. Spaces and punctuation count toward the character limit, so plan your splits accordingly for accurate billing.

Can I use the API for commercial audiobooks?

Yes, our API is designed for consistent, natural voices suitable for audiobooks. Voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and LibriVox public-domain audiobook readings. Generated audio is returned in the response and not stored, making it ideal for on-demand audiobook production where you control the delivery pipeline without worrying about long-term data storage.

What formats are supported for audio output?

We support mp3, wav, opus, flac, and pcm formats. You can specify your preferred format in the request body. This flexibility allows you to choose the best balance between file size and quality for your language learning app or audiobook platform, ensuring compatibility with various playback devices and software.

How do I integrate the API into my product?

Send a POST request to https://api.jlmaam.top/v1/audio/speech with a JSON body. Use the tts-1 or tts-1-hd model and include your Bearer token. You can use the official OpenAI SDKs by changing the base URL. The request includes input text, voice, and optional language code for precise control.

Is there a limit on the number of requests per minute?

Yes, you are limited to 60 requests per minute per key. Before your first top-up, the limit is 10 requests per minute. If you need higher throughput, ensure your integration handles retries efficiently. Requests are processed sequentially, so under load, a request may wait in a queue before generation begins.

How are languages handled in the API?

We support 23 languages, including English, Spanish, French, German, Chinese, and Japanese. Any voice can speak any language. If you do not set the language, it is guessed from the script, with Latin text defaulting to English. For non-English Latin text, explicitly set the language code to ensure accuracy.

What happens if a request fails?

If synthesis fails, the charge is returned in full. Failed requests are free, so you are not billed for errors. This ensures you only pay for successfully generated audio files. You can retry the request or adjust parameters like speed or voice if the failure was due to input issues.

Can I mix different voices in one audio file?

No, each request generates a single audio file with one voice preset. To mix voices, you must generate separate audio files for each voice and then join them using your own audio processing tools. This approach gives you full control over the final audio composition and timing.

How long does it take to generate an audiobook?

Generation is roughly real-time, averaging 25 characters of text per second of audio. Short phrases take a few seconds. For long texts, split them into parts and process them sequentially. Under load, requests may wait in a queue, so plan your generation pipeline to handle potential delays efficiently.

Is the API suitable for real-time applications?

The API is not designed for real-time streaming or WebSocket connections. It returns complete audio files after processing. For real-time needs, you might pre-generate audio files or use a caching strategy. The typical speed is roughly real-time, but there is no partial audio output or instant streaming capability.

What is the character limit for a single request?

The limit is 4096 characters per request. This includes spaces and punctuation. If your text is longer, split it into chunks of 4096 characters. Generate audio for each chunk and join the files. This ensures consistent processing and accurate billing, as each chunk is treated as a separate request.

First request

curl

curl https://api.jlmaam.top/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

How It Works

Sound wave illustration for: How It Works

SpeakLingo’s API transforms text into natural audio for language learning and audiobooks. Send a request with your text, and receive an audio file ready for integration.

Send Text, Receive Audio

Send Text, Receive Audio

Input plain text up to 4,096 characters per request. The API returns high-quality audio files in formats like MP3, WAV, or OPUS, perfect for educational apps.

Simple Integration

Our endpoint matches the OpenAI speech API structure. Use standard HTTP POST requests or the OpenAI SDK by adjusting the base URL to https://api.jlmaam.top/v1.

  • JSON body structure
  • Standard HTTP methods
  • Bearer token authentication

Real-Time Generation

Audio generation takes roughly one second per 25 characters of text. For longer texts, split inputs into parts and join the resulting audio files seamlessly.

Voices for Learning

Sound wave illustration for: Voices for Learning

Our eight voice presets are engineered for clarity, ensuring learners can distinguish subtle phonetic details. Whether you need a warm narrator for storybooks or a calm instructor for grammar lessons, each voice maintains a natural, steady rhythm that reduces cognitive load during listening exercises.

Clear Narrators

Voices like Aria and Luna offer soft, storytelling tones ideal for immersive reading, while Sage provides a calm, instructional style perfect for structured lessons. These presets are based on licensed recordings from LibriTTS-R (CC BY 4.0) and LibriVox public-domain audiobook readings.

  • Aria: Warm, clear narrator
  • Sage: Calm, instructional
  • Luna: Soft, storytelling

Diverse Accents

With 23 supported languages and eight distinct voice personalities, you can create diverse listening environments. Any voice can speak any supported language, allowing you to mix voices for comparative listening exercises.

  • 8 distinct voice personalities
  • 23 supported languages
  • Mixed accent support

Consistent Tone

Consistency is key for language acquisition. Our API ensures that the same voice maintains its timbre and pacing across thousands of characters, providing a reliable auditory brand for your app. Each generated file also carries an inaudible watermark, marking it as synthetic speech for transparency.

Languages Supported

Sound wave illustration for: Languages Supported

SpeakLingo supports 23 languages, covering major global markets and niche dialects essential for comprehensive language learning. From Arabic and Hebrew to Swahili and Turkish, our API handles diverse scripts and phonetic structures without requiring separate models.

23 Languages Available

We support 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 ensures your learners encounter authentic accents and natural phrasing across different cultural contexts.

  • Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish

Multi-Speaker Support

Each of the 23 languages can be voiced by any of our 8 preset voices, allowing you to mix and match for different characters or learning modules. This flexibility lets you create engaging dialogues where multiple speakers interact naturally, enhancing the educational experience.

Language Detection

The API automatically infers the language from the script if not specified, defaulting to English for Latin text. For non-English Latin-script text, simply set the language parameter to ensure accurate pronunciation. We do not support Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, or Bengali.

Pricing for Teams

Sound wave illustration for: Pricing for Teams

SpeakLingo charges $0.01 per 1,000 characters, making it easy to budget for your language learning content. Every character, including spaces and punctuation, counts toward the total. Failed requests are free, so you only pay for successful audio generation.

Per Character Billing

Billing is straightforward: $10 per 1 million characters. There are no monthly plans, seats, or minimum spends. You can start with a $0.50 free trial (valid for 7 days) when signing in with Google. Accounts created with email and password start without trial credit.

  • $0.01 per 1,000 characters
  • No monthly plans or subscriptions
  • Free trial: $0.50 credit for Google sign-ups

No Hidden Fees

We do not charge for storage, API calls, or extra formats. If synthesis fails, the charge is returned in full. Your balance does not expire, and you can top up with USDT (TRC-20) with no hidden service fees.

Transparent Costs

Track your usage and characters left directly in your account dashboard. You can also issue a new API key at any time, with the old one stopping immediately. No invoices with VAT or complex billing cycles.

Technical Specs

Sound wave illustration for: Technical Specs

Our API mirrors the OpenAI speech endpoint structure, allowing product teams to swap in our service by simply updating the base_url to https://api.jlmaam.top/v1 while keeping the standard OpenAI SDKs intact. Authentication uses a single Bearer token, simplifying integration across web and mobile apps.

OpenAI Compatible

We use the same request shape as the official OpenAI Speech endpoint, so your existing code works with minimal changes. Just point your SDK to our API base URL and use your SpeakLingo key.

  • Same JSON body structure as OpenAI
  • Works with official OpenAI SDKs
  • Standard Authorization: Bearer auth

Multiple Formats

Choose from mp3, wav, opus, flac, or pcm based on your app’s needs. This flexibility ensures optimal balance between file size and quality for your language learning or audiobook players.

  • mp3, wav, opus, flac, pcm
  • No SSML or phoneme limits

Fast Processing

Generation speed is roughly real-time, producing about 25 characters of text per second. Longer texts must be split into parts of up to 4096 characters and joined by the client. Requests process sequentially, so high volumes may queue slightly.

  • ~25 characters per second
  • Max 4096 chars per request
  • Automatic chunking for long texts
Technical Specs

Use Cases

Sound wave illustration for: Use Cases

We help product teams generate consistent, natural voices for language learning and audiobook production. Our API simplifies converting long texts into audio files with clear narration.

Language Learning

Generate clear audio for vocabulary lists and sentence examples. Use the language parameter to ensure correct pronunciation for non-English Latin-script text, supporting 23 languages including Spanish, French, and Japanese. Voices like Aria or Luna provide warm, clear narration ideal for learners.

  • Support for 23 languages with explicit ISO code setting
  • Ideal voice presets for clear enunciation (Aria, Luna)
  • Consistent tone across thousands of generated audio files

Audiobook Production

Convert long texts into audio files efficiently. Split texts into 4096-character chunks and join the audio seamlessly. With a generation speed of roughly 25 characters per second, you can produce hours of content. Voices like Orion or Atlas offer deep, documentary-style narration suitable for long-form reading.

  • Handle texts up to 4096 characters per request
  • Real-time generation speed (~25 chars/sec)
  • Consistent character voices for long-form content

Educational Content

Create engaging audio for lessons and quizzes. Use different voices for dialogues and narration. The API returns audio in mp3, wav, opus, flac, or pcm formats, ensuring compatibility with your existing learning management systems or web apps. No custom cloning needed; use the 8 built-in presets.

  • Multiple output formats (mp3, wav, opus, flac, pcm)
  • Flexible voice selection for different characters
  • Simple JSON API integration for educational platforms

Integration

Sound wave illustration for: Integration

Integrating SpeakLingo’s TTS API is straightforward, leveraging the familiar OpenAI SDK structure. By simply updating the base_url to https://api.jlmaam.top/v1, your existing code works with our endpoints. This compatibility allows product teams to swap in high-quality speech synthesis with minimal refactoring, ensuring a smooth transition for language learning and audiobook applications.

Easy API Setup

Start by generating an API key on the /get-api-key/ page. Pass this key via the Authorization: Bearer header in your requests. The endpoint POST https://api.jlmaam.top/v1/audio/speech accepts JSON bodies with your text, voice selection, and desired format, returning an audio file ready for playback in your app.

  • Single endpoint for all speech synthesis needs
  • Standard Bearer token authentication
  • JSON request body compatible with OpenAI SDKs

SDK Support

We recommend using the official OpenAI SDKs for Python, JavaScript, or other languages. Configure the client’s base_url to point to our API base, then use the standard audio.speech.create method. This approach ensures you benefit from maintained client libraries, type safety, and easy error handling without needing a custom SDK.

Documentation

Our docs at /docs/ provide clear examples for every supported language and format. You will find ready-to-use code snippets for Python, JavaScript, and cURL, along with detailed specifications for voice parameters and response formats.

  • Clear examples for every supported language and format
  • Ready-to-use code snippets for Python, JavaScript, and cURL
  • Detailed specifications for voice parameters and response formats

Support

Sound wave illustration for: Support

SpeakLingo provides straightforward email support for product teams integrating TTS into language learning platforms. We focus on solving specific integration questions, from voice selection to error handling, without the noise of live chat queues.

Our documentation is designed for developers who need clear, actionable answers quickly.

Email Support

Reach our team at [email protected] for assistance with API keys, billing questions, or technical integration issues.

Community Resources

Explore shared examples of how other educators and developers structure their audio requests. These resources help you optimize character splitting and voice selection for consistent learning materials.

Documentation

Access detailed guides on the API endpoint structure, voice parameters, and error codes. Our docs include ready-to-use curl examples and SDK configurations to speed up your development cycle.

Why Choose Us

Sound wave illustration for: Why Choose Us

SpeakLingo is built specifically for product teams managing language learning and audiobook workflows. We simplify the conversion of long texts into audio files, ensuring consistent, natural voices across your entire catalog without the complexity of managing multiple providers.

Focus on Quality

Our voices are based on licensed recordings from LibriTTS-R, providing a clear, professional sound ideal for educational content. Every generated file includes an inaudible watermark to mark it as synthetic, ensuring transparency for your users.

  • Licensed source recordings for consistent quality
  • Inaudible synthetic speech watermark included
  • No emotion tags or SSML clutter

Product Team Friendly

We use the standard OpenAI request shape, so your existing integration code works with just a base_url change. There are no custom SDKs to learn; you can use the official OpenAI SDKs or plain HTTP immediately.

  • Standard JSON request body
  • Works with official OpenAI SDKs
  • No custom libraries required

Scalable Solution

Handle large volumes with ease. Our API processes requests sequentially, and longer texts are automatically split into 4096-character parts and joined. With a rate limit of 60 requests per minute, you can scale your content generation efficiently.

  • Automatic text splitting for long content
  • 60 requests per minute limit
  • No minimum spend or seats

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. However, our infrastructure maintains steady throughput even during peak usage hours.

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. Creative Commons Attribution 4.0
  3. MDN: Web Speech API
  4. curl documentation
  5. LibriTTS-R corpus (OpenSLR 141)
  6. FFmpeg documentation
  7. LibriVox public-domain audiobooks
  8. TRON developer hub: TRC-20
  9. W3C WAI: making audio and video accessible
  10. openai-node on GitHub
  11. LibriTTS-R paper (arXiv 2305.18802)
  12. openai-python on GitHub

More on this site