A new Flutter plugin for baidu tts
-keep class com.baidu.tts.**{*;}
-keep class com.baidu.speechsynthesizer.**{*;}
Add the obfuscated configuration to your file
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');
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