web_view_tts 0.0.1 copy "web_view_tts: ^0.0.1" to clipboard
web_view_tts: ^0.0.1 copied to clipboard

PlatformAndroid

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

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!

3
likes
140
pub points
52%
popularity

Publisher

verified publisherrohitsangwan.in

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_inappwebview, flutter_tts, plugin_platform_interface

More

Packages that depend on web_view_tts