hotwords uses installed rust-whisper
This commit is contained in:
@@ -113,7 +113,7 @@ class Parser(threading.Thread):
|
||||
p = "/tmp/whisper-cpp.wav"
|
||||
with open("/tmp/whisper-cpp.wav", "wb") as f:
|
||||
f.write(wav)
|
||||
proc = subprocess.run(f"./main -m ./models/ggml-{os.environ.get('MODEL','tiny.en')}.bin -t 4 -f {p} --no-timestamps".split(), capture_output=True)
|
||||
proc = subprocess.run(f"MODEL=./models/ggml-{os.environ.get('MODEL','tiny.en')}.bin WAV={p} P=2 rust-whisper", capture_output=True, shell=True)
|
||||
result = proc.stdout.decode().strip()
|
||||
if os.environ.get("DEBUG", None):
|
||||
log("raw transcript:", result)
|
||||
|
||||
4
whisper-cpp-2023/requirements.txt
Normal file
4
whisper-cpp-2023/requirements.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
git+https://github.com/openai/whisper.git
|
||||
soundfile
|
||||
PyAudio
|
||||
SpeechRecognition
|
||||
Reference in New Issue
Block a user