diff --git a/requirements.txt b/requirements.txt index ae172ba..d496865 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ pyaudio SpeechRecognition +sounddevice --extra-index-url https://download.pytorch.org/whl/cu116 torch -git+https://github.com/openai/whisper.git \ No newline at end of file +git+https://github.com/openai/whisper.git diff --git a/transcribe_demo.py b/transcribe_demo.py index 14ec910..34cdc5b 100644 --- a/transcribe_demo.py +++ b/transcribe_demo.py @@ -6,6 +6,7 @@ import speech_recognition as sr import whisper import torch +import sounddevice from datetime import datetime, timedelta from queue import Queue @@ -32,7 +33,6 @@ def main(): help="Default microphone name for SpeechRecognition. " "Run this with 'list' to view available Microphones.", type=str) args = parser.parse_args() - # The last time a recording was retrieved from the queue. phrase_time = None # Current raw audio bytes.