speech_recognition icon indicating copy to clipboard operation
speech_recognition copied to clipboard

stop when voice ends.

Open NTMS2017 opened this issue 7 years ago • 1 comments

Hi there,

I want to press a listen button and it will start listens me with few second. When I stop it will ends the listing and translates to text. How do we do that?

Example: when I say "what is my balance" its stop and converts to text and search from given list and finds the "balance" word match and it open the Account or Balance page.

NTMS2017 avatar May 16 '18 19:05 NTMS2017

You can override the setRecognitionCompleteHandler method and put the code you want to run after listening stops.

Example :

_speech.setRecognitionCompleteHandler(() { setState(() { _isListening = false; _isAvailable = true; }); // do some stuff });

garagecode avatar Apr 06 '19 13:04 garagecode