flutter_baidutts 0.0.5

Flutter

flutter plugin for baidu tts

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