Package edu.tufts.hrilab.interfaces
Interface ASRInterface
public interface ASRInterface
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the last recognized piece of text.booleanChecks if the ASR system is actively listening and processing audio.voidmapParsedTextToAction(String parsedText) voidResets the ASR recognition process to clear any stored state or context.Starts the ASR recognition process.voidStops the ASR recognition process.
-
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
-
mapParsedTextToAction
-