搜尋套件、儲存庫與 APP 分類

套件詳情v0.0.1

web_view_tts

一個用於在 Flutter WebView Android 中新增文字轉語音支援的 Flutter 外掛

Android
近 30 天下載
12
喜歡數
3
Pub 分數
130

安裝套件

flutter pub add web_view_tts

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 插件,可在 Android 的 WebView 中啟用文字轉語音(TTS)功能。它允許在 Flutter WebView 中顯示的網頁內容使用裝置的 TTS 引擎朗讀出來。專為 Android 設計,可與 WebView 無縫整合,以增強可存取性和使用者參與度。該插件輕量且專注於從基於網頁的文字中提供可靠的語音輸出,無需複雜設定。

適用情境

  • 增強對視障用戶的可存取性
  • 在教育類應用程式中朗讀網頁內容
  • 支援數位雜誌中的音訊旁述
  • 改進新聞或文章閱讀器的使用者體驗

主要特色

  • 僅限 Android 的 TTS 集成
  • 無縫 WebView 兼容性
  • 用於觸發語音的簡單 API
  • 即時文字轉語音轉換
  • 對系統TTS引擎的內建支援

適合對象

  • 注重可存取性的Flutter應用
  • 教育和閱讀應用
  • 需要從網頁內容獲取音頻反饋的應用程式
  • 針對 Android WebView 的 TTS 需求的開發者

使用建議

  • 僅限 Android 平台
  • 設備上需要正確設定TTS引擎
  • 可能需要處理TTS服務的權限
  • 依賴於透過 JavaScript 可存取網頁內容

原始 README

以下為關聯原始碼儲存庫的 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!

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。