Interface ASRInterface


public interface ASRInterface
  • Method Details

    • startRecognition

      String startRecognition()
      Starts the ASR recognition process.
    • stopRecognition

      void stopRecognition()
      Stops the ASR recognition process.
    • resetRecognition

      void resetRecognition()
      Resets the ASR recognition process to clear any stored state or context.
    • getLastRecognizedText

      String getLastRecognizedText()
      Retrieves the last recognized piece of text.
      Returns:
      The most recently recognized text.
    • isRecognitionActive

      boolean isRecognitionActive()
      Checks if the ASR system is actively listening and processing audio.
      Returns:
      true if the ASR system is active, false otherwise.
    • logParse

      void logParse(String parsedText)
    • mapParsedTextToAction

      String mapParsedTextToAction(String parsedText)