Google TTS JavaScript API: Accessible Audio for Dyslexia Support

By AccessiVoices editorial team · Updated 2026-11-19

This page explains how AccessiVoices helps product teams integrate high-quality text-to-speech into web apps for users with dyslexia. You will find concrete JavaScript workflows, voice options optimized for clarity, and technical specs for reliable audio output.

We cover pricing, privacy, and performance metrics so you can decide. If you need consistent, accessible audio without custom SDKs or complex integrations, this guide provides the exact steps to get started with our TTS API.

Google TTS JavaScript API: Accessible Audio for Dyslexia Support

Frequently asked questions

What is Google TTS JavaScript?

Q: What is AccessiVoices JavaScript? A: AccessiVoices is a cloud text-to-speech API accessible via standard JavaScript. You send text to POST https://api.11bets.cc/v1/audio/speech and receive an audio file. It uses the same request shape as the OpenAI speech endpoint, allowing you to use official OpenAI SDKs by simply changing the base_url to https://api.11bets.cc/v1.

How does Google TTS help with dyslexia?

Q: How does AccessiVoices help with dyslexia? A: Our API ensures consistent, clear audio outputs that support users with dyslexia and reading difficulties. By converting text into high-quality speech, we help product teams integrate accessible reading experiences directly into web apps. The clear narration helps users process information more easily without visual strain.

Which voices are best for reading assistance?

For reading assistance, aria (warm, clear narrator) and luna (soft, storytelling) are ideal. Sage offers a calm, instructional tone suitable for educational content. For conversational interfaces, milo (friendly, conversational) works well. All eight voices support 23 languages, allowing you to choose the best fit for your audience.

Can I use Google TTS for commercial products?

Yes, AccessiVoices is designed for commercial integration. Input text is used only to produce audio and is not used for training. Generated audio is returned in the response and not stored. You can integrate the API into your web apps without restrictions on usage volume beyond your rate limits.

How much does Google TTS cost per character?

A: AccessiVoices costs $10 per 1 million characters, or $0.01 per 1,000 characters. Spaces and punctuation count toward this total. Failed requests are free, with the charge returned in full. There are no monthly plans, seats, or minimum spends, making the API scalable for any product size.

Is there a free trial for the API?

Yes. Signing in with Google provides $0.50 of credit, valid for 7 days, covering about 50,000 characters. Accounts created with email and password start without trial credit. You can top up using USDT on the TRON network, with balances that do not expire.

What formats are supported for audio output?

The API supports mp3, wav, opus, flac, and pcm formats. You specify the desired format in the request body. These formats ensure compatibility with various web players and accessibility tools, allowing you to choose the best balance between quality and file size for your users.

Does the API support multiple languages?

Yes, we support 23 languages including English, Spanish, French, German, Japanese, and Arabic. Any voice can speak any of these languages. If the language is not set, it is guessed from the script, but you should explicitly set it for non-English Latin-script text to ensure accuracy.

How do I integrate the API with Node.js?

Use the official OpenAI SDK for Node.js. Change the base_url to https://api.11bets.cc/v1 and provide your API key. Send a POST request to /v1/audio/speech with the text, voice, and format. The SDK handles the JSON body and authentication, returning the audio file directly.

What happens if a request fails?

If synthesis fails, the charge is returned in full. You are not billed for failed requests. This ensures you only pay for successfully generated audio. You can retry the request or adjust parameters like speed or voice to resolve any issues with the input text.

Are input texts used for training models?

No, input text is used only to produce the audio and is not used for training. Generated audio is returned in the response and not stored. Only request metadata like time, characters, and status is kept for billing purposes, ensuring your content remains private.

Can I change my API key if it is compromised?

Yes, you can issue a new API key at any time from your account dashboard. When a new key is issued, the old one stops working immediately. This allows you to quickly secure your account if a key is exposed or compromised without interrupting your service.

What is the character limit per request?

Each request supports up to 4096 characters of input text. For longer texts, you should split the content into parts of this size and join the resulting audio files. This ensures efficient processing and maintains audio quality across longer documents or articles.

How fast is the audio generation?

Typical speed is roughly real time, generating about 25 characters of text per second of audio. Short phrases may take a few seconds. Requests are processed sequentially, so under load, a request may wait in a queue. Longer texts generally take time proportional to their length.

First request

curl

curl https://api.11bets.cc/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

Why Accessible TTS Matters

Sound wave illustration for: Why Accessible TTS Matters

Converting text to speech allows users with dyslexia to consume written content at their own pace, reducing cognitive load. This standardizes the reading experience across web applications, ensuring accessibility without requiring custom design for every user.

Clear audio output is essential for comprehension. Our API provides consistent, high-quality voices that support users with reading difficulties, delivering reliable results without complex infrastructure.

Dyslexia and Audio Consumption

Dyslexia and Audio Consumption

Text-to-speech enables users with dyslexia to bypass visual processing barriers. By listening to content, users can maintain focus and comprehension, turning static text into accessible audio.

Audio consumption reduces the effort required to decode letters and words. This is particularly valuable for long-form content, where visual fatigue often sets in.

  • Reduces cognitive load for dyslexic readers
  • Enables multi-tasking while consuming content
  • Supports varied reading speeds

Why Voice Clarity is Critical

Pronunciation errors can disrupt the listening experience. Our voices, such as Aria and Sage, are optimized for clarity, ensuring that words are articulated correctly.

Inconsistent voice quality can confuse users. Standardizing on clear, natural-sounding speech helps maintain engagement and reduces listener fatigue.

Clear audio output is essential for comprehension. Our API provides consistent, high-quality voices that support users with reading difficulties, delivering reliable results without complex infrastructure.

Standardizing the User Experience

Consistent voice quality across all pages ensures a predictable experience. Users know what to expect, reducing the learning curve for new features.

Using a standard API like ours allows product teams to integrate TTS seamlessly. This ensures that accessibility features are robust and reliable.

A unified voice strategy simplifies design decisions. Teams can focus on content rather than managing multiple audio sources or formats.

  • Consistent voice quality across pages
  • Seamless integration with existing workflows
  • Simplified design decisions

JavaScript Integration Made Simple

Sound wave illustration for: JavaScript Integration Made Simple

Integrating AccessiVoices into your web app requires no custom SDK. The API follows the standard OpenAI speech endpoint structure, allowing you to use official OpenAI JavaScript libraries with a simple base URL change.

This compatibility ensures consistent, clear audio outputs for users with dyslexia while keeping your integration code minimal and maintainable.

OpenAI SDK Compatibility

Use the official OpenAI SDK for JavaScript. Send text and receive audio files with the same request shape as the standard speech endpoint.

  • Use standard fetch or OpenAI SDK
  • Consistent JSON request body
  • Standard error handling

Easy Base URL Configuration

Change the base_url to https://api.11bets.cc/v1 in your SDK configuration. All endpoints like /v1/audio/speech work immediately without code changes.

Authentication uses a Bearer token in the header, identical to standard OAuth flows.

  • Base URL: https://api.11bets.cc/v1
  • Standard Bearer token auth
  • No custom middleware needed

No Custom SDK Required

No need to install a proprietary library. Standard HTTP clients and widely used SDKs handle the integration.

This reduces bundle size and dependency conflicts in your JavaScript application.

  • No proprietary dependencies
  • Works with standard fetch
  • Minimal bundle impact

Voices Optimized for Clarity

Sound wave illustration for: Voices Optimized for Clarity

For users with dyslexia, voice clarity directly impacts comprehension and reduces cognitive load. Standardizing audio output ensures a consistent experience across your web app, preventing the jarring shifts in tone that often distract readers. AccessiVoices provides eight presets, including three specifically valued for their distinct, non-distracting qualities.

Warm Narrator: Aria

Aria offers a clear, warm tone ideal for narrative content. Her delivery remains steady and easy to follow, making her suitable for long-form articles where sustained attention is required without fatigue.

Calm Instructor: Sage

Sage delivers a calm, instructional voice perfect for educational materials or step-by-step guides. Her neutral pacing helps users process complex information without feeling rushed, supporting better retention for readers with reading difficulties.

Neutral News: Atlas

Atlas provides a neutral, news-style delivery that removes emotional bias from the text. This clarity is essential for factual content, ensuring the message remains the focus rather than the voice's personality.

Technical Specifications

Sound wave illustration for: Technical Specifications

Our API enforces a strict 4,096-character limit per request, requiring text splitting for longer content. This ensures consistent processing and predictable latency for web applications handling substantial text volumes.

Audio is generated in standard formats including mp3, wav, opus, flac, and pcm. You control playback quality and file size by selecting the appropriate response format for your specific use case.

Input Character Limits

Each request accepts a maximum of 4,096 characters. Inputs exceeding this limit must be split into smaller chunks and concatenated client-side or via middleware. Spaces and punctuation count toward this character total.

  • Maximum input: 4,096 characters per request
  • Characters include spaces and punctuation

Audio Format Options

Select from MP3, WAV, OPUS, FLAC, or PCM. MP3 offers efficient compression for web delivery, while WAV provides uncompressed quality. OPUS balances quality and bandwidth, ideal for mobile users.

  • MP3, WAV, OPUS, FLAC, PCM
  • Choose based on bandwidth and quality needs

Speed Adjustment Range

Adjust speech speed between 0.25x and 4.0x. This allows fine-tuning for listeners who need slower pacing or prefer faster consumption. The default speed provides a natural, balanced rhythm.

  • Range: 0.25 to 4.0
  • Adjustable per request for accessibility needs

Language Support

Sound wave illustration for: Language Support

Our API supports 23 languages, ensuring your web app serves a global audience. Each voice can speak any of these languages, providing consistent audio quality regardless of the target locale.

This broad support allows product teams to standardize their accessibility strategy across diverse user bases, ensuring that users with dyslexia or reading difficulties receive clear, predictable audio output in their preferred language.

23 Supported Languages

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. Any voice can speak any of these languages, so you can mix voices and languages freely without worrying about voice-specific language constraints.

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

Automatic Language Detection

If the language field is omitted, the API guesses the language from the script. Latin text defaults to English, which simplifies integration for English-first applications but may misinterpret other Latin-script languages.

Explicit Language Setting

For non-English Latin-script text, always set the language parameter to ensure correct pronunciation. This explicit setting guarantees that the synthetic speech matches the intended linguistic context, reducing errors for users relying on audio for comprehension.

Language Support

Pricing for Startups

Sound wave illustration for: Pricing for Startups

AccessiVoices uses a straightforward per-character billing model at $0.01 per 1,000 characters, ensuring you only pay for what you process. Spaces and punctuation count toward the total, making cost prediction precise for your accessibility features.

There are no monthly plans, seats, or minimum spend requirements. Your balance does not expire, allowing you to scale usage up or down without administrative overhead or recurring subscription commitments.

Per-Character Billing

We charge $10 per 1 million characters, which equals $0.01 per 1,000 characters. This transparent metric helps product teams budget accurately for high-volume text-to-speech features without hidden tiers.

  • $0.01 per 1,000 characters
  • Spaces and punctuation count
  • Transparent, usage-based billing

No Monthly Plans

Unlike traditional SaaS products, we do not enforce monthly plans or seat limits. You can pause usage at any time without losing access to your data or incurring unused fees.

  • No monthly plans
  • No minimum spend
  • No subscription lock-in

Free Trial Credit

Sign in with Google to receive $0.50 in trial credit, valid for 7 days. This provides approximately 50,000 characters, allowing your team to test voice quality and integration latency before committing to top-ups.

  • $0.50 trial credit
  • Valid for 7 days
  • Google sign-in only

Data Privacy

Sound wave illustration for: Data Privacy

We prioritize user privacy by ensuring that input text is used exclusively to produce the requested audio file. It is not retained for training or model improvement. Once the audio is generated and returned in the response, the input data is not stored on our servers.

Generated audio files are also not stored after delivery. The only data retained is the request metadata—such as timestamp, character count, and status—which is kept solely for accurate billing purposes.

No Training on Input

Input text is used strictly for synthesis and is never used to train our models.

This ensures your content remains private and is not repurposed for other users.

No Audio Storage

Generated audio is returned directly in the API response and is not stored on our servers.

This minimizes data retention and reduces privacy risks for your users.

Metadata for Billing

We keep minimal metadata including request time, character count, and status.

This information is used exclusively to calculate charges and verify billing accuracy.

Performance Metrics

Sound wave illustration for: Performance Metrics

Performance metrics define how reliably AccessiVoices integrates into your accessibility layer. We prioritize consistent audio generation that supports users with dyslexia without introducing unpredictable latency during reading sessions.

Understanding generation speed and queue behavior helps product teams set appropriate UI expectations for users requesting audio playback.

Real-Time Generation Speed

Long texts generate at roughly real-time speed, processing about 25 characters of text per second of audio. Short phrases typically take a few seconds to synthesize and return.

This consistent pace ensures that audio output aligns closely with natural reading rhythms, supporting users who rely on audio to bypass text decoding difficulties.

  • ~25 characters of text per second of audio for long texts

Queue Handling Under Load

Requests are processed sequentially. Under high load, a request may wait in a queue before synthesis begins. This linear processing ensures stable output quality without concurrent engine strain.

Product teams should account for potential short delays during peak usage to maintain a smooth user experience.

  • Requests processed one after another

Request Limits per Minute

Each API key is limited to 60 requests per minute once funded. Before the first top-up, the limit is 10 requests per minute.

These limits prevent burst overages and ensure fair usage across the 23 supported languages without requiring complex rate-limiting logic in your JavaScript client.

  • 60 requests/minute per key (post-top-up)
  • 10 requests/minute pre-top-up

Getting Started

Sound wave illustration for: Getting Started

AccessiVoices allows product teams to integrate accessible audio into web apps quickly. Sign up on our get-api-key/ page using your Google account to receive a $0.50 free trial credit valid for 7 days.

Once registered, you can generate your API key and start sending requests immediately. No monthly fees or subscriptions are required, and you only pay for what you use.

Sign Up with Google

Navigate to the /get-api-key/ page and select "Sign in with Google." This creates an independent account for 11bets.cc and instantly provides your free trial credit.

Generate Your API Key

Your dashboard displays your unique API key starting with "tts-". Copy this key to your clipboard; it is the only active key for your account.

Run Your First Request

Use the OpenAI JavaScript SDK with base_url https://api.11bets.cc/v1. Send a POST request to /v1/audio/speech with your text, voice preset, and key in the Authorization header.

  • Endpoint: POST https://api.11bets.cc/v1/audio/speech
  • Auth: Bearer tts-<your_key>
  • Body: {"model": "tts-1", "input": "Hello", "voice": "aria"}

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. You can use any voice with any language, giving you flexibility in tone without restricting linguistic options.

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. Node.js documentation
  3. Creative Commons Attribution 4.0
  4. Tether (USDT)
  5. FFmpeg documentation
  6. IETF RFC 7845: Ogg Opus
  7. OpenAI API reference: create speech
  8. LibriTTS-R paper (arXiv 2305.18802)
  9. TRON developer hub: TRC-20
  10. LibriVox public-domain audiobooks
  11. LibriTTS-R corpus (OpenSLR 141)
  12. ISO 639 language codes

More on this site