diff --git a/.DS_Store b/.DS_Store index 778f4f6..9b3a277 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/hci.py b/hci.py index 550b11b..f69ab1c 100644 --- a/hci.py +++ b/hci.py @@ -391,32 +391,3 @@ def recognize_speech(self, duration:int=5, sample_rate:int=16000) -> str: except Exception as e: raise RuntimeError(f"An error occurred during speech recognition: {e}") - - -# Example usage: -if __name__ == "__main__": - actions = { - "validate": [ - "confirm", "approve", "verify", "validate", - "authenticate", "ratify", "endorse", "certify", - "pass", "authorize", "accredit", "yes" - ], - "invalidate": [ - "reject", "deny", "invalidate", "disapprove", - "refuse", "void", "nullify", "revoke", - "discredit", "disqualify", "abrogate", "annul", "no" - ] - } - - instance = Speech2Interact( - actions=actions, - wav2vec_model="facebook/wav2vec2-large-960h", - sentence_similarity_model="sentence-transformers/all-mpnet-base-v2" - ) - - while True: - action = instance.recognize_speech( - duration=3 - ) - - print(action)