From a46a378f9e8b973ad045eaf9c0815b1cec2b965c Mon Sep 17 00:00:00 2001 From: Andalib Malit Samandari Date: Tue, 8 Oct 2024 22:37:29 -0400 Subject: [PATCH] Update speech_recognition_thread.py Changed Whisper model initialization to the proper format per [official code](https://github.com/aarnphm/whispercpp/blob/main/src/whispercpp/__init__.py); otherwise this line triggers a RuntimeError --- llama_assistant/speech_recognition_thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama_assistant/speech_recognition_thread.py b/llama_assistant/speech_recognition_thread.py index e11c7f5..0f2f479 100644 --- a/llama_assistant/speech_recognition_thread.py +++ b/llama_assistant/speech_recognition_thread.py @@ -22,7 +22,7 @@ def __init__(self): self.recording = False # Initialize Whisper model - self.whisper = Whisper("tiny") + self.whisper = Whisper.from_pretrained("tiny.en") # Create temporary folder for audio files self.tmp_audio_folder = llama_assistant_dir / "tmp_audio"