speak method
Implementation
@override
Future<bool> speak(String text) async {
try {
final result = await methodChannel.invokeMethod<bool>('speak', {
'text': text,
});
return result ?? false;
} on PlatformException catch (e) {
debugPrint('Error calling speak: ${e.message}');
return false;
}
}