How Does Our Cloud Text-to-Speech API Work?

By VoiceLayer editorial team · Updated 2026-11-19

This page explains how VoiceLayer converts your text into high-quality audio files via a simple REST API. If you are an LMS administrator or course creator, you will learn how to automate narration for large student cohorts without managing infrastructure. We detail the request workflow, from sending JSON payloads to receiving synthesized MP3, WAV, or Opus files in seconds.

You will see exactly how input text is processed, how to select from eight licensed voices, and how to handle rate limits and character limits. The guide covers integration steps for developers, pricing models, and common troubleshooting scenarios. Use this reference to streamline your e-learning content pipeline, ensuring consistent audio quality and accessibility across your entire course catalog.

How Does Our Cloud Text-to-Speech API Work?

Frequently asked questions

What does a speech synthesis API do?

A speech synthesis API converts text into audio files. You send a POST request with your text, and the API returns an audio file like MP3 or WAV. This allows LMS administrators to automatically generate voice content for courses without manual recording, streamlining the production of audio materials for large student cohorts.

Is a speech synthesis API easy to integrate?

Yes, integration is straightforward. The API uses the same request shape as the OpenAI speech endpoint. You can use official OpenAI SDKs by simply changing the base URL to https://api.my36.info/v1. This familiarity allows developers to integrate voice features quickly into existing e-learning platforms with minimal code changes.

Can I use a speech synthesis API for free?

You can start with a free trial of $0.50 credit, valid for 7 days, when signing in with Google. This provides about 50,000 characters. Accounts created with email and password start without trial credit. After the trial, you can top up using USDT on the TRON network, with no minimum spend required.

How accurate is the speech synthesis?

The voices are based on licensed recordings from LibriTTS-R and LibriVox public-domain audiobook readings. The system supports 23 languages and guesses the language from the script if not specified. For non-English Latin-script text, you should set the language parameter to ensure accurate pronunciation and natural-sounding audio output for your courses.

Does a speech synthesis API support all languages?

It supports 23 languages, including English, Spanish, German, French, Japanese, and Arabic. Voices can speak any of these languages. It does not support Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali, or other languages outside this list. You can explicitly set the language code to avoid incorrect guessing for non-English text.

What is the latency of a speech synthesis API?

Typical speed is roughly real time, processing about 25 characters of text per second of generation. Short phrases take a few seconds. Requests are processed sequentially, so under load, a request may wait in a queue. Longer texts are split into parts and joined, which may add slight delay during synthesis.

Can I customize the voice in a speech synthesis API?

You can choose from eight preset voices: Aria, Nova, Luna, Sage, Felix, Milo, Atlas, and Orion. You cannot upload your own voice, clone a custom voice, or use SSML. You can adjust the speed between 0.25 and 4.0 and select the audio format, but the core voice timbre remains fixed to the presets.

Is a speech synthesis API suitable for commercial use?

Yes, the API is designed for commercial integration into LMS platforms. Generated audio files carry an inaudible watermark marking them as synthetic speech. Input text is not used for training, and generated audio is not stored. You pay only for successful character usage, with failed requests refunded, making it cost-effective for bulk course production.

How does a speech synthesis API handle special characters?

Special characters and spaces count as characters in your usage. The API processes the text input directly. There is no custom pronunciation lexicon or phoneme dictionary to handle specific special character nuances. Standard text input is converted to audio, so ensure your text format is compatible with the API's character limit of 4096 characters per request.

Can a speech synthesis API generate emotional speech?

No, the API does not support emotion tags or emotional control. The voices have predefined tones, such as warm, bright, or calm, but you cannot dynamically adjust emotions like happiness or sadness. The audio is generated based on the text content and selected voice preset, without additional emotional metadata or SSML support.

What is the difference between TTS and speech synthesis?

Text-to-Speech (TTS) and speech synthesis are synonymous terms for the same technology. Both refer to the process of converting written text into spoken audio. Our API provides this functionality through a simple endpoint, allowing you to generate audio files from text inputs for use in educational and commercial applications.

Do I need a developer to use a speech synthesis API?

While developers handle the integration, the API is designed for ease of use. You can use the official OpenAI SDKs with a simple base URL change. The dashboard shows ready curl examples and usage stats. However, some technical knowledge is helpful for managing keys, handling rate limits, and integrating the audio into your LMS.

Can I use a speech synthesis API offline?

No, this is a cloud API. You must send requests to https://api.my36.info/v1 to receive audio files. There is no offline mode, local SDK, or mobile SDK provided. All processing happens on the server, and you receive the audio file in the response, which you can then store or play in your application.

How secure is the data processed by a speech synthesis API?

Input text is used only to produce audio and is not used for training. Generated audio is returned in the response and not stored. Request metadata like time and status is kept for billing. There is no SLA or uptime guarantee, and no specific certifications like SOC 2 or HIPAA are provided for data security.

Definition and Purpose

Sound wave illustration for: Definition and Purpose

VoiceLayer is a cloud text-to-speech API that converts written text into audio files via a simple HTTP request. By sending a JSON payload to the endpoint, LMS administrators receive synthesized audio, eliminating the need for manual recording or complex infrastructure management.

Text to Audio Conversion

The API accepts up to 4,096 characters per request and returns audio in formats like MP3, WAV, or FLAC. Each request is processed individually, with results returned as downloadable files. Failed requests incur no charge, ensuring cost efficiency for bulk course generation.

Cloud-Based Processing

All synthesis happens on remote servers, removing the need for local hardware or software installations. Developers integrate the service by updating the base URL in standard SDKs, allowing seamless scaling across large student cohorts without managing server capacity.

Automated Narration

Engineers can programmatically generate narration for thousands of lessons using eight distinct voice presets. The system handles text splitting for longer content and applies consistent voice characteristics, enabling rapid production of educational audio without human intervention.

How It Works

Sound wave illustration for: How It Works

Our cloud API converts text into audio through a straightforward pipeline. You send a JSON payload containing your script, and our servers handle the rest, ensuring consistent delivery of synthetic speech files without manual intervention.

Input Text Processing

The system accepts text up to 4096 characters per request. It automatically detects the language from the script, though you can explicitly set the ISO code for Latin-script text to ensure accuracy. Spaces and punctuation are counted as characters in the usage meter.

  • Max 4096 characters per request
  • Automatic language detection or explicit ISO code
  • Spaces and punctuation count toward character limits

Voice Engine Selection

You choose between the standard 'tts-1' and high-quality 'tts-1-hd' models, which use the same underlying engine and pricing. Eight distinct voice presets are available, ranging from warm narrators to energetic promotional styles, all capable of speaking 23 supported languages.

  • Two model options: tts-1 and tts-1-hd
  • Eight distinct voice presets
  • Supports 23 languages

Audio Generation

Once processed, the API returns the audio file in your requested format (mp3, wav, opus, flac, or pcm). Each file includes an inaudible watermark identifying it as synthetic. For texts exceeding 4096 characters, split the input into parts and join the resulting audio files.

  • Formats: mp3, wav, opus, flac, pcm
  • Inaudible synthetic watermark in every file
  • Split long texts into 4096-character chunks

Benefits for Developers

Sound wave illustration for: Benefits for Developers

VoiceLayer simplifies audio generation for developers by handling the heavy lifting of speech synthesis in the cloud. Instead of managing local infrastructure or complex audio pipelines, you simply send a JSON payload to our API endpoint and receive a synthesized audio file. This reduces integration time and allows your team to focus on building core learning features rather than maintaining audio servers.

Scalability

Requests are processed sequentially, so under load a request may wait in a queue. With a rate limit of 60 requests per minute per key, you can generate thousands of audio files without worrying about server bottlenecks. Failed requests are free, ensuring you only pay for successful synthesis.

  • Handle requests sequentially

Customization

You have direct control over the output parameters. Choose from eight distinct voice presets, adjust the speaking speed between 0.25x and 4.0x, and select from five audio formats including MP3, WAV, and FLAC. The API supports 23 languages, allowing you to tailor content for diverse global audiences.

  • Adjust speed and voice selection dynamically

Integration Ease

Integration is straightforward because the request shape matches the OpenAI speech endpoint. You can use the official OpenAI SDKs by simply changing the base_url to https://api.my36.info/v1. Authentication is handled via a simple Bearer token, requiring no complex library installations or proprietary SDKs.

  • Use familiar OpenAI SDKs with a base URL change

Benefits for LMS

Sound wave illustration for: Benefits for LMS

VoiceLayer simplifies the integration of voice content into e-learning platforms. By generating high-quality audio for large student cohorts, it removes infrastructure headaches from course creators. The API’s developer-friendly interface allows LMS administrators to automate narration at scale without hiring external voice talent or managing recording studios.

This approach ensures consistent audio quality across all courses. Students receive narration that enhances their learning experience. The system handles the technical heavy lifting, from text processing to audio delivery, allowing educators to focus on curriculum design.

Content Creation

Course creators can convert existing text materials into audio formats quickly. With a simple POST request, instructors generate MP3, WAV, or OPUS files ready for upload to their LMS. This eliminates the need for scheduling studio time or coordinating with voice actors for every new module.

  • Convert text to audio via API in minutes
  • Support for 4096 characters per request
  • Multiple audio formats for flexible playback

Accessibility

Providing audio versions of course materials supports diverse learning needs. Students with visual impairments or dyslexia can consume content through listening. VoiceLayer’s 23 languages and clear voice presets ensure inclusive access for global student cohorts without requiring separate recordings for each language variant.

  • Supports 23 languages
  • Clear, natural voice presets
  • Inclusive design for diverse learners

User Engagement

Audio content increases time spent on course platforms. Students often prefer listening to reading during commutes or breaks. By offering high-quality narration, LMS administrators can boost completion rates and keep learners engaged with the material in a more dynamic format.

  • Increases student engagement
  • Supports multi-modal learning

Technical Requirements

Sound wave illustration for: Technical Requirements

To generate audio, your LMS or integration server must maintain a stable internet connection to our cloud endpoints. Requests are processed sequentially, so under high load, synthesis may queue slightly, though typical speed remains near real-time.

Internet Connectivity

Ensure your network allows outbound HTTPS traffic to api.my36.info. Since we do not offer offline packages or on-premise installs, continuous connectivity is required for every synthesis job.

API Key Management

Authentication relies on a single active Bearer token per account. You can revoke and issue a new key at any time via the dashboard, immediately invalidating the previous one. Keep this key secure in your LMS environment variables.

  • Use Authorization: Bearer tts-... header
  • Only one key is active per account
  • Revoke old keys instantly via dashboard

Data Formats

Send JSON payloads with fields like model, input, and voice. We accept mp3, wav, opus, flac, and pcm responses. Text input is limited to 4,096 characters per request; longer courses require client-side splitting and audio joining.

  • JSON request body
  • Response formats: mp3, wav, opus, flac, pcm
  • Max 4,096 characters per request

Common Use Cases

Sound wave illustration for: Common Use Cases

VoiceLayer’s API allows LMS administrators and course creators to convert extensive text libraries into audio without managing infrastructure. By splitting long texts into 4,096-character chunks, the system ensures consistent narration quality for large student cohorts, turning static course materials into accessible audio content.

E-Learning

Instructors can generate narration for lessons using presets like Aria or Felix. The API handles up to 23 languages, allowing educators to produce content for global student bodies. Since failed requests are free, testing new voice styles for specific modules carries no financial risk.

  • Automate narration for student cohorts
  • Support diverse languages from Arabic to Swahili

Audiobooks

Publishers use the API to convert public domain texts or original manuscripts into audio files. With models like tts-1-hd, creators achieve high fidelity for storytelling. The inaudible watermark identifies synthetic speech, ensuring transparency while maintaining professional listening standards.

  • Convert up to 4,096 characters per request
  • Choose from eight distinct voice presets
  • Export in MP3, WAV, or FLAC formats

IVR Systems

Businesses integrate the API into interactive voice response systems for dynamic phone menus. The straightforward JSON request structure fits easily into existing telephony workflows. With a rate limit of 60 requests per minute, the service handles moderate call volumes reliably.

  • Dynamic menu generation
  • Simple integration via standard HTTP requests
  • Reliable performance for customer service lines

Comparison with Other Methods

Sound wave illustration for: Comparison with Other Methods

Comparing VoiceLayer against alternative audio generation methods highlights where our API fits best in an e-learning workflow. We do not offer real-time streaming or voice cloning.

Human Recording

Human narration offers unique emotional nuance but requires significant scheduling and studio time. For large student cohorts, scaling human voice actors across hundreds of courses becomes expensive and logistically complex. Our API provides instant, consistent audio at a fixed rate of $0.01 per 1,000 characters, eliminating variable production costs.

  • Fixed cost regardless of volume
  • No scheduling conflicts
  • Instant availability

Offline TTS

Offline engines lack the cloud scalability needed for sudden spikes in student access. They often require local hardware upgrades and manual updates. VoiceLayer’s cloud infrastructure processes requests sequentially.

  • Zero infrastructure maintenance
  • Automatic load balancing
  • Global reach

Streaming Solutions

Streaming APIs deliver audio in real-time chunks, ideal for live interactions but less efficient for pre-recorded course modules. VoiceLayer generates complete audio files (mp3, wav, opus) via standard HTTP requests. This allows for easy caching, storage, and integration into existing LMS content libraries without managing WebSocket connections.

  • Standard HTTP integration
  • File-based delivery
  • Simpler caching strategies
Comparison with Other Methods

Future Trends

Sound wave illustration for: Future Trends

The API architecture is built for continuous evolution, with engine updates improving voice clarity and naturalness without requiring code changes from the developer. These incremental improvements ensure that generated audio remains high-quality as the underlying models mature.

As network infrastructure improves, the potential for lower-latency responses grows. While current processing is sequential, future optimizations could further reduce the wait time for long texts, making real-time integration even more seamless for dynamic course content.

AI Improvements

The underlying models are periodically updated to enhance voice clarity and naturalness. These backend improvements arrive automatically, ensuring your generated audio quality improves over time without requiring any changes to your integration code or infrastructure.

Future iterations may introduce more nuanced emotional tones or specialized vocabulary handling, particularly beneficial for technical e-learning materials and specialized academic courses.

Real-Time Processing

Currently, requests are processed sequentially, which means longer texts may experience queuing delays during high traffic. As server capacity expands, the time between sending a request and receiving audio will decrease, supporting more interactive learning experiences.

While true streaming is not yet offered, reduced latency will eventually allow for near-instant playback initiation, bridging the gap between batch generation and live interaction.

Multilingual Support

The API already supports 23 languages, allowing any voice to speak any supported language. Future expansions may add more regional dialects or languages, broadening the reach for global education platforms.

Improved language detection accuracy will further simplify integration, reducing the need for manual language parameter specification in mixed-language course content.

Security Considerations

Sound wave illustration for: Security Considerations

VoiceLayer prioritizes your data integrity by ensuring input text is used solely for audio synthesis and not repurposed for model training. While request metadata is retained for accurate billing, the generated audio files are returned in the response and not stored on our servers, minimizing long-term data exposure for your course materials.

Data Privacy

Your educational content remains private. We do not use your input text to improve our base models, ensuring that proprietary course scripts or student data remain distinct from our training corpus.

  • Input text is not used for training.
  • Generated audio is not stored after delivery.

Encryption

All API communications occur over secure channels, protecting your text inputs and audio outputs during transit. This ensures that your course content remains confidential as it moves between your LMS and our cloud infrastructure.

Access Control

Security relies on a single active API key per account. You can issue a new key at any time, which immediately invalidates the old one, providing instant control over unauthorized access without downtime.

Choosing the Right API

Sound wave illustration for: Choosing the Right API

Selecting the right text-to-speech API requires balancing cost efficiency with the specific needs of your e-learning platform. VoiceLayer offers a transparent, usage-based pricing model that scales with your student cohort size, ensuring you only pay for what you generate.

Cost Analysis

VoiceLayer charges $10 per 1 million characters, with spaces and punctuation counting toward the total. This straightforward rate eliminates hidden fees, making budgeting predictable for large courses. Failed requests are free, so you never pay for errors.

  • $0.01 per 1,000 characters
  • No monthly minimums or seats
  • Failed requests are free

Quality Assessment

The API uses licensed voice recordings from LibriTTS-R and LibriVox, providing clear, natural-sounding narration suitable for educational content. Each voice has a distinct tone, from warm narrators to energetic promo styles, allowing you to match the audio to your course material.

  • 8 distinct voice presets
  • Based on licensed recordings
  • Inaudible synthetic watermark included

Feature Set

VoiceLayer provides a developer-friendly interface compatible with OpenAI SDKs, simplifying integration for LMS administrators. You can control voice, speed, and output format via simple API calls, without needing complex infrastructure or custom plugins.

  • OpenAI SDK compatible
  • Adjustable speed (0.25–4.0x)
  • Multiple audio formats (MP3, WAV, etc.)

Implementation Steps

Sound wave illustration for: Implementation Steps

The integration process begins by creating an account on the platform to obtain your unique API key. This key authenticates your requests and tracks usage against your balance, ensuring transparent billing for every character processed. Once registered, you can immediately access your credentials and test limits without waiting for manual approval.

With your key ready, you can integrate the API into your LMS or application by sending a standard POST request. The endpoint accepts text, voice selection, and format parameters, returning an audio file directly in the response. This simplicity allows developers to embed high-quality narration into course modules with minimal code changes.

Account Creation

Sign up using your Google account or email to instantly receive your API key. The dashboard displays your current balance, trial credit status, and usage metrics, giving you full visibility into your spending. Keys can be regenerated at any time, ensuring secure access for your development team.

The system supports a free trial of $0.50, allowing you to generate approximately 50,000 characters before committing to a top-up. This trial is valid for seven days, providing ample time to validate the voice quality and integration workflow for your specific use case.

  • Instant API key generation upon signup
  • Google or email authentication supported
  • Real-time balance and usage tracking
  • Free $0.50 trial credit for 7 days

Code Integration

Use the standard OpenAI-compatible SDK or plain HTTP to send your text. Simply set the base URL to https://api.my36.info/v1 and include your Bearer token. The API accepts JSON bodies with fields for model, voice, and response format, making it easy to adopt into existing Python, Node.js, or PHP projects.

For texts exceeding 4,096 characters, split the input into smaller chunks and concatenate the resulting audio files. This ensures consistent quality and avoids truncation errors, allowing you to narrate entire course modules or lengthy articles seamlessly.

  • Standard OpenAI SDK compatibility
  • Base URL: https://api.my36.info/v1
  • Supports MP3, WAV, OPUS, FLAC, PCM
  • Handle long texts by splitting and joining

Testing

Verify your integration by sending a simple test request with a short phrase. Check that the audio file is returned correctly and plays without distortion. Monitor the response time, which typically takes a few seconds for short phrases, to ensure it meets your user experience requirements.

Check your dashboard to confirm that the test request was billed correctly and that your character count updated accurately. If the synthesis fails, the charge is returned, allowing you to troubleshoot without financial penalty.

  • Send test requests with varied voices
  • Verify audio format and playback quality
  • Monitor billing accuracy on dashboard
  • Check failure refunds for robustness

Troubleshooting

Sound wave illustration for: Troubleshooting

When integrating VoiceLayer, issues usually stem from character limits or network latency rather than engine failures. Understanding the 4096-character constraint and queue behavior prevents most integration errors.

This section covers specific troubleshooting steps for common API behaviors and explains how to resolve them efficiently.

Common Issues

Text exceeding 4096 characters will cause a request failure. Additionally, during high load, requests may queue, delaying generation beyond the typical real-time speed.

Incorrect voice codes or unsupported languages can also trigger errors, though the system handles most language detection automatically.

  • Request payload exceeds 4096 characters
  • Generation delay due to queueing
  • Unsupported language code specified

Resolution Strategies

Split long texts into chunks of 4096 characters or fewer before sending. Concatenate the resulting audio files to create the final narration.

If generation is slow, check your rate limit status. Ensure your API key is active and not expired.

Verify the language parameter matches the input script if auto-detection fails for non-English Latin text.

Support Options

For unresolved technical issues, contact support via email. We do not offer live chat or phone support.

Include your request ID and error message in your email for faster resolution.

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.

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. Python documentation
  3. Tether (USDT)
  4. MDN: Web Speech API
  5. Creative Commons Attribution 4.0
  6. LibriVox public-domain audiobooks
  7. FFmpeg documentation
  8. ISO 639 language codes
  9. IETF RFC 7845: Ogg Opus
  10. Node.js documentation
  11. openai-node on GitHub
  12. LibriTTS-R corpus (OpenSLR 141)

More on this site