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!