FLUTTER ECOSYSTEM

rohitsangwan01/web_view_tts

在 Flutter WebView 中新增文字轉語音支援(Android)

web_view_tts 專案封面
Stars
6
Forks
2
最近推送(UTC)
2022年8月26日
專案狀態
未封存
Rohit Sangwan GitHub avatar
GITHUB User

Rohit Sangwan ↗

Haryana India
語言DartJavaScriptKotlin

此儲存庫發佈的套件

使用的依賴

依賴清單 6 項

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 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!