FLUTTER ECOSYSTEM

rohitsangwan01/web_view_tts

Adicione suporte de texto para fala no Flutter WebView (Android)

Capa do projeto web_view_tts
Stars
6
Forks
2
Último push (UTC)
26 de ago. de 2022
Status do projeto
Ativo
Rohit Sangwan GitHub avatar
GITHUB User

Rohit Sangwan ↗

Haryana India
LinguagensDartJavaScriptKotlin

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 6 itens

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

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!