Skip to content

yoni1988/flutterBaiduTts

Repository files navigation

flutter_baidutts

A new Flutter plugin for baidu tts

Getting Started

Config On Android

-keep class com.baidu.tts.**{*;}
-keep class com.baidu.speechsynthesizer.**{*;}

Add the obfuscated configuration to your file

Config On IOS

Just copy libBaiduSpeechSDK.a into your ios project

1.init config before use plugin

FlutterBaidutts.instance.init(
	appId:'appId',
	appKey:'appKey',
	appSecret:'appSecret',
);

2.just call speek function whatever you want to speek

FlutterBaidutts.instance.speek('speekWords');

Apis:

Future<int> speak(String word); //Synthetic speech

Future<int> setVolume(double volume); //Set the volume

Future<int> pause(); //pause

Future<int> resume(); //resume

Future<int> stop(); //stop

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published