startListening method
void
startListening({
- required void speechListenFunction(
- SpeechRecognitionResult?
Each time to start a speech recognition session
Implementation
void startListening(
{required void Function(SpeechRecognitionResult?)
speechListenFunction}) async {
kLog("Listening...!!!");
await _speechToText.listen(
pauseFor: const Duration(seconds: 5), onResult: speechListenFunction);
}