Cloud TTS API Guide for Accessibility Teams

By TextHear editorial team · Updated 2026-11-19

This guide helps Angular accessibility engineers replace inconsistent browser speech synthesis with a reliable cloud API. We cover practical workflows for integrating TextHear into learning support systems, ensuring consistent audio output for diverse user bases. You will learn how to handle long documents, manage voices like Aria and Luna, and adjust speeds for dyslexia-friendly reading.

You will find step-by-step instructions for HTTP integration, error handling, and cost management using USDT. The guide addresses specific needs of large teams, including language support for 23 languages, privacy policies, and testing strategies. It focuses on concrete code examples and real-world scenarios to help you build auditable, accessible text-to-speech features efficiently.

Cloud TTS API Guide for Accessibility Teams

Frequently asked questions

Which voice is best for dyslexia users?

We do not designate a single best voice for dyslexia. All eight presets—Aria, Nova, Luna, Sage, Felix, Milo, Atlas, and Orion—are available. Since individual needs vary, we recommend testing each voice to identify the clearest, most consistent audio for your specific audience. This allows your team to select the optimal voice for consistent, high-volume accessibility workflows.

How do I handle special characters in text?

Special characters are treated as standard characters and count toward the 4096-character limit per request. Spaces and punctuation also count. The API processes standard Unicode text directly. No special escaping or SSML tags are required for standard special characters.

Can I use the API with a CMS?

Yes. The API uses standard JSON over HTTP, compatible with any CMS that can make POST requests. You can send text from your CMS via a simple script or webhook. Since it follows the OpenAI request shape, many existing integrations will work with a base URL change.

What is the best speed for accessibility?

A: The default speed is 1.0, adjustable between 0.25 and 4.0. There is no single best speed for all dyslexia users. Teams should test different speeds with their audience. Slower speeds may aid comprehension, while faster speeds reduce listening time. Adjust based on user feedback.

How do I manage API keys for a team?

Each account holds one active API key. You can issue a new key at any time, and the old one stops immediately. This allows you to rotate keys securely. Share the current key among team members, but revoke it if it is compromised by generating a new one.

Does the API support offline mode?

No. This is a cloud API. You must send text to https://api.playstar75.cc/v1/audio/speech to receive an audio file. There is no offline mode, local processing, or on-premise install option. An internet connection is required for every synthesis request.

Can I generate audio in multiple formats?

Yes. You can choose mp3, wav, opus, flac, or pcm via the response_format field. This allows flexibility for different players and accessibility tools. Each format is generated on demand. There is no limit to the number of format conversions you can request.

How do I track API usage for billing?

Request metadata, including time, characters, and status, is kept for billing. Your account dashboard shows characters left and usage history. Failed requests are free. You can monitor your balance and character count directly in the account section of the site.

Is the API suitable for educational apps?

Yes. The API supports 23 languages and offers clear, consistent voices. It replaces unreliable browser implementations with predictable audio. Input text is not used for training. The simple JSON API integrates easily into educational platforms for reading support and content accessibility.

Can I use the API for audiobooks?

A: Yes. Our voices are derived from LibriVox recordings (CC BY 4.0) and public-domain audiobook readings. You can generate long texts by splitting them into 4,096-character parts and joining the audio files. The API handles the synthesis. Ensure you have the rights to the text content you are converting.

How do I handle language switching?

Set the optional language parameter to an ISO code (e.g., 'es', 'fr'). If omitted, the language is guessed from the script. For non-English Latin text, explicitly set the language to ensure correct pronunciation. All voices can speak all 23 supported languages.

What happens if the API goes down?

We do not provide an SLA or uptime guarantee. Requests are processed sequentially, so load may cause queues. If synthesis fails, the charge is returned in full. There is no on-premise option to keep generating audio if the cloud service is unavailable.

Can I use the API for podcasts?

Yes. You can generate high-quality audio in formats like mp3 or wav. Use voices like Felix for energetic promo content or Orion for deep, documentary-style narration. Split long scripts into parts under 4096 characters. Join the resulting audio files for the final podcast episode.

Is there a limit to concurrent requests?

Requests are processed one after another. There is no explicit concurrency limit, but under load, requests may wait in a queue. The rate limit is 60 requests per minute per key. This sequential processing ensures consistent audio generation but may increase latency during high volume.

Why Accessibility Teams Need Cloud TTS

Sound wave illustration for: Why Accessibility Teams Need Cloud TTS

Browser-based text-to-speech engines vary significantly across devices and operating systems, creating inconsistent reading experiences for users with dyslexia or visual impairments. A cloud API ensures that every user hears the same high-quality audio, regardless of whether they are on iOS, Android, or desktop browsers.

Consistency for diverse user bases

Standard browser implementations often default to robotic voices or vary in clarity depending on the user’s device. By routing requests through a dedicated cloud endpoint, you guarantee uniform voice quality and articulation for all users, reducing cognitive load for those relying on auditory reading aids.

Predictable performance

Accessibility tools require reliable latency. Our API generates audio at roughly real-time speed, processing approximately 25 characters per second. This predictability allows Angular applications to buffer audio effectively, preventing playback stuttering during long reading sessions for users with attention or processing differences.

Compliance with accessibility standards

Consistent audio output supports WCAG guidelines by providing reliable non-text content. Unlike variable browser voices, our API delivers auditable, synthetic speech with consistent pacing and tone, ensuring that assistive technologies receive a stable audio file for users relying on screen readers or custom TTS players.

Choosing the Right Voice

Sound wave illustration for: Choosing the Right Voice

Selecting the correct voice is critical for accessibility. Different cognitive loads require distinct auditory styles. Clear narration reduces strain for readers with dyslexia, while upbeat tones maintain engagement for younger audiences. Consistency in voice selection helps users build familiarity with the interface.

Our eight preset voices are designed for specific use cases. Each voice offers a distinct emotional tone without requiring complex configuration. Teams should test these presets with their actual user base to determine which voices best support their specific accessibility goals.

Aria for clear narration

Aria provides a warm, clear narrator style ideal for standard reading tasks. Her voice is easy to follow, making her suitable for educational content, news updates, and general information. This clarity helps reduce cognitive load for users who struggle with complex audio processing.

Users with dyslexia often benefit from consistent, predictable speech patterns. Aria’s steady delivery ensures that text is processed without unnecessary emotional distractions. This makes her an excellent default choice for long-form reading applications.

  • Warm, clear narrator style
  • Ideal for educational content
  • Reduces cognitive load
  • Steady, predictable delivery

Nova for upbeat content

Nova offers a bright, upbeat tone perfect for interactive or promotional content. Her energetic voice keeps users engaged during short passages or notifications. This tone is particularly effective for younger audiences or in gamified learning environments.

Use Nova when you want to convey positivity or excitement. Her voice adds a layer of enthusiasm that can make dry text feel more dynamic. This is useful for announcements, alerts, or motivational messages.

  • Bright, upbeat tone
  • Keeps users engaged
  • Ideal for interactive content
  • Adds enthusiasm to announcements

Luna for storytelling

Luna delivers a soft, storytelling voice suited for narrative content. Her gentle tone is less jarring, making her ideal for bedtime stories, audiobooks, or calming content. This voice helps create a relaxed listening experience for users who need a softer auditory environment.

For content that requires emotional nuance, Luna’s storytelling style provides the necessary depth. She handles narrative arcs well, making her a strong choice for literary content or guided meditations. Her voice supports immersive listening experiences without overwhelming the user.

  • Soft, storytelling voice
  • Ideal for narratives
  • Creates a relaxed experience
  • Supports immersive listening

Handling Long Text Documents

Sound wave illustration for: Handling Long Text Documents

Long texts exceed the 4096-character limit per request. Accessibility teams must split documents into smaller segments before sending them to the API. This ensures reliable synthesis without truncation.

Each segment generates a separate audio file. Your application must join these files sequentially to create a continuous listening experience for users with dyslexia or visual impairments.

Splitting text into chunks

Break your input text into segments of up to 4096 characters. Spaces and punctuation count toward this limit. Preserve sentence boundaries where possible to maintain natural audio flow.

Use your application logic to identify chunk boundaries before making API calls. This prevents mid-sentence cuts that disrupt user comprehension.

  • Limit each request to 4096 characters.
  • Count spaces and punctuation in your character total.
  • Preserve sentence boundaries for natural audio.

Joining audio files

The API returns audio files for each chunk. Your Angular service must concatenate these files in the order they were requested. Use the response_format parameter to ensure compatibility with your player.

Ensure the joining process is seamless. Users should not hear pauses between chunks that indicate separate synthesis events.

Managing memory in Angular

Large documents can generate significant audio data. Stream audio chunks as they become available rather than waiting for all files, as the API does not support streaming. This reduces memory usage in the browser.

Monitor memory usage during playback. Unload completed chunks from memory to prevent performance issues on low-end devices.

Speed and Tone Adjustments

Sound wave illustration for: Speed and Tone Adjustments

The TextHear API allows precise control over speech synthesis speed, a critical feature for accessibility engineering. By adjusting the speed parameter between 0.25 and 4.0, teams can tailor audio output to individual user needs without requiring complex client-side audio manipulation.

Slowing down for dyslexia

Reducing the playback speed to 0.5–0.75x helps users with dyslexia process spoken text more effectively. This adjustment compensates for the cognitive load of decoding written language, allowing listeners to follow the narrative without losing context.

  • Set speed: 0.6 for optimal comprehension in educational content.
  • Combine with voice: sage for a calm, instructional tone.

Adjusting pitch and tone

While pitch remains fixed per voice preset, tone varies significantly across the eight available voices, as the API does not support SSML. Selecting nova for upbeat marketing or atlas for neutral news ensures the audio matches the content’s intent without additional processing.

The API does not support SSML or phoneme-level pitch adjustments, so tone selection happens at the voice preset level during the request.

User-controlled speed settings

Enable users to dynamically adjust speed via your Angular application’s UI. Store the user’s preference and pass it as the speed field in each TTS request to the API endpoint.

This approach ensures consistent audio generation while respecting individual accessibility preferences, reducing the need for multiple pre-generated audio files.

Language Support for Global Teams

Sound wave illustration for: Language Support for Global Teams

TextHear supports 23 languages, including English, Spanish, German, French, Japanese, and Arabic. This coverage allows accessibility teams to serve diverse global user bases without managing multiple voice providers. The API handles multilingual content seamlessly, ensuring consistent audio quality across different linguistic contexts.

Explicit language coding is critical for non-English Latin-script text. While the API guesses language from the script (defaulting to English for Latin), setting the language parameter ensures accurate pronunciation for languages like German or Dutch. This prevents misinterpretation and maintains clarity for users with dyslexia or visual impairments.

Supporting 23 languages

The platform supports Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. Any voice can speak any of these languages, allowing teams to standardize on a single API endpoint for global content.

This broad support eliminates the need for complex integrations with multiple regional TTS services. Accessibility engineers can deploy a unified solution that meets the needs of users across different linguistic regions, ensuring consistent auditory experiences.

  • - Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish.
  • - Any voice can speak any of these languages.
  • - Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali are not supported.

Explicit language coding

Set the language field in the request body to the ISO code (e.g., de for German). This overrides script-based guessing, ensuring precise pronunciation for languages that share the Latin script. Without this, non-English Latin text may default to English pronunciation.

This explicit control is vital for accessibility. Incorrect pronunciation can hinder comprehension for users relying on text-to-speech for reading assistance. Configuring the language parameter ensures the audio output matches the intended linguistic context.

Handling mixed language text

For text containing multiple languages, the API attempts to detect the language per segment. However, for mixed-language content, it is best practice to send separate requests for each language segment. This ensures accurate pronunciation for each part of the text.

Combine the resulting audio files on the client side. This approach provides the highest quality audio for mixed-language documents, avoiding potential mispronunciations that can occur when the API guesses language transitions.

Error Handling in Angular

Sound wave illustration for: Error Handling in Angular

In Angular applications, network instability or API service interruptions are common. Implementing a robust retry mechanism ensures that transient failures do not result in lost audio for end-users. Using Angular’s HttpInterceptor allows you to automatically retry failed requests with exponential backoff, preventing immediate user frustration while maintaining application stability.

Rate limits are strict: 60 requests per minute per key, or 10 before the first top-up. Exceeding this results in a 429 error. Your Angular service should catch these errors, pause new synthesis requests, and resume once the window resets, ensuring no credits are wasted on rejected calls.

Retrying failed requests

Use Angular’s retryWhen operator to handle transient network errors. Configure a delay strategy that increases wait time between attempts to avoid overwhelming the server during outages.

Ensure that each retry respects the authentication header to maintain session integrity without requiring re-login or key regeneration.

  • Implement exponential backoff for retries.
  • Limit maximum retry attempts to prevent infinite loops.
  • Log retry events for debugging performance issues.

Handling rate limits

Detect HTTP 429 responses and immediately pause the synthesis queue. Wait for the Retry-After header duration before resuming requests.

This prevents unnecessary character consumption since failed requests are free, but repeated rapid retries can still trigger temporary blocks.

  • Monitor the 4096-character input limit to avoid payload errors.
  • Queue requests if the rate limit is hit.
  • Display a loading state to the user during delays.

User feedback for errors

Provide clear, non-technical error messages to users. For example, “Audio generation failed. Please try again.” instead of generic HTTP codes.

If the error persists, guide users to check their internet connection or report the issue via the support email, as there is no live chat.,

image

Cost Management for Large Teams

Sound wave illustration for: Cost Management for Large Teams

Large teams generating high-volume audio need precise tracking of character consumption to avoid unexpected depletion. Since billing is based on a per-character model, understanding usage patterns helps prevent service interruptions during critical accessibility workflows.

The API tracks request metadata for accurate billing, ensuring that only successful generations incur charges. Failed requests are refunded in full, providing a safety net for bulk processing operations.

Monitoring usage

The dashboard provides visibility into characters consumed and remaining balance. Teams can monitor usage trends to identify peak consumption periods and adjust generation strategies accordingly.

Request metadata includes timestamps and status codes, allowing engineering teams to audit exactly when and why characters were deducted. This transparency supports internal compliance reporting.

  • Real-time balance updates
  • Detailed request history
  • Character count per voice

Budgeting with USDT

Top-ups are processed via USDT on the TRON network (TRC-20), with a minimum deposit of $5. Credits appear automatically within minutes, ensuring continuous availability for large-scale deployments.

There are no monthly subscriptions or minimum spend requirements. Teams can top up exactly when needed, avoiding unused credit expiry since balances do not expire.

Optimizing character counts

Since costs scale linearly with character count, optimizing input text reduces expenses. Spaces and punctuation count as characters, so removing unnecessary whitespace before sending text to the API can lower costs.

For long documents, splitting text into chunks of 4096 characters prevents request failures. Efficient chunking ensures consistent audio quality without wasting characters on redundant metadata or headers.

Cost Management for Large Teams

Testing and Quality Assurance

Sound wave illustration for: Testing and Quality Assurance

Testing ensures your accessibility features meet user expectations before deployment. Use the free trial to validate voice selection and audio quality without consuming your main budget.

Structure your testing workflow to verify consistency across different text lengths and language combinations, ensuring reliable performance for diverse user groups.

Using the free trial

Sign in with Google to receive $0.50 in credit, valid for seven days. This provides approximately 50,000 characters for testing, allowing you to validate API integration and voice presets before committing funds.

  • Google sign-in grants immediate trial credit
  • Credit expires after 7 days
  • Email/password accounts start without trial credit

A/B testing voices

Compare Aria, Nova, Luna, and other presets using identical text samples. Evaluate clarity for dyslexic users and narration quality for general content. Select the voice that best suits your specific accessibility requirements.

  • Test all 8 voice presets
  • Use identical input text for fair comparison
  • Evaluate based on user feedback

Performance benchmarking

Measure generation time against text length. Expect roughly real-time speed (25 characters per second) for long texts. Monitor queue times under load to ensure acceptable latency for your users.

  • Track generation time vs. character count
  • Monitor queue wait times
  • Validate rate limit handling (60 req/min)

Security and Privacy

Sound wave illustration for: Security and Privacy

For accessibility teams, reliable audio generation hinges on secure key handling. Each account issues a single active tts-... key, visible in the dashboard. Rotating keys instantly invalidates the previous one, ensuring that only authorized services generate speech. This simplicity reduces the attack surface for large Angular deployments where multiple microservices might consume the API.

API key management

Store the Bearer token in environment variables, never in client-side code. Since the API is designed for server-side or controlled environments, keeping the key out of public bundles prevents unauthorized usage from your Angular app’s network tab. You can issue a new key at any time via the dashboard; the old one stops immediately.

  • Use Authorization: Bearer tts-... header.
  • Issue new keys to invalidate old ones instantly.
  • Rotate keys regularly via the dashboard.

Data usage policy

Input text is used solely for synthesis and is not retained for training models. This ensures that user content remains private. Request metadata, including time, character count, and status, is kept for billing purposes only. This minimal data retention supports compliance with strict accessibility and privacy standards without storing the actual spoken content.

  • Text is not used for training.
  • Metadata kept for billing only.
  • No third-party data sharing.

No storage of generated audio

Generated audio files are returned in the response and are not stored on our servers. This means your users’ audio files remain ephemeral unless you choose to cache them. This approach reduces liability and storage costs, as we do not hold copies of the synthesized speech after delivery.

Integration with Existing Systems

Sound wave illustration for: Integration with Existing Systems

Angular accessibility teams often need to inject synthesized audio into existing content management systems (CMS) or learning management systems (LMS) without disrupting the primary content structure. By routing text through the TextHear API, you ensure that all user-generated or editorial content receives consistent, auditable speech output, replacing unreliable browser-native implementations with predictable audio files.

This approach allows your team to maintain full control over voice selection and speed settings, ensuring compliance with accessibility standards across diverse user bases. The API’s simple JSON structure integrates seamlessly with Angular services, making it easy to trigger speech synthesis on demand rather than pre-generating large audio assets.

Connecting to CMS

Most CMS platforms store content as plain text or HTML. You can use an Angular service to intercept content publication events, send the text to the TextHear endpoint, and store the returned audio URL alongside the original content. This ensures that every article or blog post has a consistent audio companion without manual intervention.

  • Intercept content save events in Angular services
  • Send text to POST /v1/audio/speech
  • Store returned audio URL in CMS metadata

Integrating with LMS

Learning Management Systems often require audio support for dyslexic learners. By integrating the API, you can dynamically generate speech for course modules, quizzes, and reading materials. The API’s support for 23 languages allows global teams to provide consistent audio resources without managing multiple voice providers.

  • Dynamic audio generation for course modules
  • Support for 23 languages for global teams
  • Consistent audio quality across all learning materials

Embedding in learning apps

Angular-based learning apps can embed audio players that fetch speech on demand. This reduces initial load times and storage costs. Users can control playback speed, which is crucial for accessibility, allowing them to adjust the rate between 0.25x and 4.0x to suit their reading pace.

  • On-demand audio generation reduces initial load
  • User-controlled speed settings (0.25x–4.0x)
  • Minimal storage overhead for learning apps

Common Pitfalls and Solutions

Sound wave illustration for: Common Pitfalls and Solutions

Teams often encounter unexpected behavior when input text contains special characters, encoding issues, or exceeds the 4096-character limit. Network timeouts can also disrupt audio playback, especially in high-latency environments, leading to poor user experience.

Debugging audio issues requires careful attention to response formats and rate limits. Understanding how the API handles errors and character counts helps avoid common integration pitfalls in Angular applications.

Handling special characters

Ensure text is properly encoded before sending it to the API. Special characters like em dashes or non-breaking spaces count toward the 4096-character limit and may cause truncation if not managed correctly.

Test edge cases with mixed scripts or punctuation-heavy text to verify consistent audio generation. Validate input before submission to avoid silent failures or malformed audio.

  • Escape HTML entities before sending text
  • Count spaces and punctuation as characters
  • Validate character length before API call

Managing network timeouts

Set appropriate timeout values in your HTTP client to handle variable latency. Long texts or high load may delay responses, so implement retry logic with exponential backoff.

Monitor request status codes to distinguish between network errors and API errors. Use Angular's HttpClient interceptors to standardize error handling across your application.

  • Implement retry logic for transient errors
  • Use exponential backoff for rate limits
  • Monitor HTTP status codes

Debugging audio issues

Verify the response format matches your expectations (mp3, wav, opus, flac, pcm). Check that the audio file is playable and contains the expected content.

Use the free trial to test different voices and languages. Compare outputs to ensure consistency and identify any discrepancies in tone or clarity.

  • Validate audio format and playback
  • Test with free trial credits
  • Compare outputs across voices

Future-Proofing Your Implementation

Sound wave illustration for: Future-Proofing Your Implementation

Future-proofing your TTS integration ensures your accessibility tools remain reliable as user bases grow and standards evolve. By designing scalable architectures and staying informed about API updates, accessibility engineers can maintain consistent audio quality without disruptive downtime.

This approach minimizes technical debt and allows teams to adapt quickly to new language support or voice additions, ensuring long-term compliance with accessibility guidelines like WCAG.

Scalability considerations ['Your Angular application should handle concurrent synthesis requests efficiently. Since requests are processed sequentially under load, implement queuing logic to prevent UI freezing. Monitor character volume to anticipate processing delays during peak usage.', 'For large teams, consider caching frequently used audio segments. This reduces API calls and lowers costs while maintaining consistent playback experiences for users with dyslexia or visual impairments.'] ['Implement request queuing in your Angular service layer', 'Cache static audio assets to reduce API dependency', 'Monitor character count trends to predict resource needs']

Updating API versions ['The API uses a fixed v1 endpoint structure, reducing breaking changes. However, always verify the base_url configuration (https://api.playstar75.cc/v1) when deploying updates. New voices or format options may be added without altering core request shapes.', 'Keep your OpenAI SDK or HTTP client library updated to ensure compatibility with future JSON body structures. Test new releases in a staging environment before rolling out to production users.'] ['Verify base_url consistency after updates', 'Test new voice presets in staging environments', 'Keep SDK dependencies current']

Monitoring service changes ['Check the /docs/ page regularly for announcements. Since there is no SLA, proactive monitoring helps you manage user expectations during brief processing delays.', 'Track rate limit usage (60 requests/minute) to avoid throttling. Adjust your application’s request frequency if you notice increased latency during high-volume periods.', 'By staying informed, you can quickly adapt workflows to new features like additional response formats (opus, flac) without disrupting existing accessibility integrations.'] ['Check /docs/ for feature announcements', 'Monitor rate limit adherence (60 req/min)', 'Adopt new formats (opus, flac) as needed']

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. This prevents misinterpretation and maintains clarity for users with dyslexia or visual impairments.

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. W3C WAI: making audio and video accessible
  3. Tether (USDT)
  4. LibriTTS-R corpus (OpenSLR 141)
  5. Python documentation
  6. FFmpeg documentation
  7. ISO 639 language codes
  8. curl documentation
  9. LibriTTS-R paper (arXiv 2305.18802)
  10. IETF RFC 7845: Ogg Opus
  11. OpenAI API reference: create speech
  12. LibriVox public-domain audiobooks

More on this site