Working on Flutter speech to text conversion and using speech to text library, added below code for listening:
speech.listen(
onResult: resultListener,
listenFor: Duration(minutes: 10),
localeId: _currentLocaleId,
onSoundLevelChange: soundLevelListener,
cancelOnError: false,
partialResults: true);
App listening continuously in Emulator but stops listening automatically after few seconds in physical device. I had tried many libraries like speech recognition still same issue occurs. Everything works on emulator device, not in physical device.
Please give some suggestion about this.
Thanks in advance.