jjordanoc / azure_speech_recognition_null_safety

A Flutter plugin that enables interaction with the Azure Cognitive Services Speech-To-Text API
GNU General Public License v3.0
11 stars 14 forks source link

Stopping continuous recording and checking its status #10

Closed sman-cn closed 1 year ago

sman-cn commented 1 year ago

Thank you for providing this awesome plugin!

  1. How can I manually stop the continuous recording?
  2. Is there a way to check if continuousRecording is currently running?
jjordanoc commented 1 year ago

Hello, sorry for the late reply, I've been quite busy.

  1. To manually stop the continuous recording you must call AzureSpeechRecognition.continuousRecording(); as shown in the README. This method works as a toggle between the recording and not recording states.
  2. No, you must keep track of the recording state in your application's logic.