Search packages, repositories and app categories

Package detailsv0.0.1

web_view_tts

A flutter plugin to add Text-To-Speech Support in Flutter WebView Android

Android
30-day downloads
12
Likes
3
Pub points
130

Install package

flutter pub add web_view_tts

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter plugin that enables Text-to-Speech (TTS) functionality within a WebView on Android. It allows web content displayed in a Flutter WebView to be read aloud using the device's TTS engine. Designed specifically for Android, it integrates seamlessly with web views to enhance accessibility and user engagement. The plugin is lightweight and focuses on delivering reliable speech output from web-based text without requiring complex setup.

Use cases

  • Enhancing accessibility for visually impaired users
  • Reading web content aloud in educational apps
  • Supporting audio narration in digital magazines
  • Improving user experience in news or article readers

Key features

  • Android-only TTS integration
  • Seamless WebView compatibility
  • Simple API for triggering speech
  • Real-time text-to-speech conversion
  • Built-in support for system TTS engines

Suitable for

  • Accessibility-focused Flutter apps
  • Educational and reading applications
  • Apps requiring audio feedback from web content
  • Developers targeting Android WebView with TTS needs

Considerations

  • Limited to Android platform
  • Requires proper TTS engine setup on device
  • May need permission handling for TTS services
  • Depends on web content being accessible via JavaScript

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

WebView TTS

web_view_tts version

Flutter library To add Text-To-Speech Support in Android WebView

Getting Started

Using flutter_inappwebview for WebView and flutter_tts for Android TTS

Import these Libraries in your pubspec.yaml

flutter_inappwebview: ^5.4.3+7
web_view_tts: 0.0.1

Add WebView in your Project , Check flutter_inappwebview docs for setting up WebView

And check flutter_tts docs for adding TTS

Usage

in your onLoadStart callback of flutter_inappwebview , add this method

onLoadStart(controller) async {
    await WebViewTTS.init(controller: controller);
}

Checkout /example app for more details

Features

The web_view_tts lib supports the following TTS Api's:

  • Speak
  • Stop
  • Pause
  • Resume
  • getVoices
  • setVolume
  • setPitch
  • setRate

Note

This library will add TTS polyfill for android only , because IOS WebView already supports this

Additional information

This is Just The Initial Version feel free to Contribute or Report any Bug!

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package

No data available yet.