fix: use onnxruntime for Apple Silicon, venv python path, ignore .venv
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>main
parent
1568cc9eeb
commit
1189f6000c
|
|
@ -4,3 +4,4 @@ dist/
|
|||
.env
|
||||
.idea/
|
||||
.DS_Store
|
||||
python/.venv/
|
||||
|
|
|
|||
|
|
@ -13,8 +13,9 @@ function startWakeword({ onWake }, retries = 0) {
|
|||
running = true;
|
||||
|
||||
const scriptPath = path.join(__dirname, '../python/wakeword.py');
|
||||
const pythonPath = path.join(__dirname, '../python/.venv/bin/python3');
|
||||
|
||||
const proc = spawn('python3', [scriptPath], {
|
||||
const proc = spawn(pythonPath, [scriptPath], {
|
||||
stdio: ['pipe', 'pipe', 'pipe'],
|
||||
});
|
||||
wakewordProcess = proc;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,12 @@ RATE = 16000
|
|||
THRESHOLD = 0.5
|
||||
|
||||
def main():
|
||||
model = Model(wakeword_models=["hey_jarvis"])
|
||||
import openwakeword
|
||||
openwakeword.utils.download_models(["hey_jarvis"])
|
||||
model = Model(
|
||||
wakeword_models=["hey_jarvis"],
|
||||
inference_framework="onnx"
|
||||
)
|
||||
|
||||
pa = pyaudio.PyAudio()
|
||||
stream = pa.open(
|
||||
|
|
|
|||
Loading…
Reference in New Issue