Bolt Assistant: wake-phrase voice assistant for Bolt
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
# Bolt Assistant: listens for "Hey Bolt" on the default mic. Ctrl+C to stop.
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")" && pwd)"
|
||||
if [ ! -d "$ROOT/.venv" ]; then
|
||||
python3 -m venv "$ROOT/.venv"
|
||||
"$ROOT/.venv/bin/pip" install --upgrade pip
|
||||
"$ROOT/.venv/bin/pip" install -r "$ROOT/requirements.txt"
|
||||
fi
|
||||
export PYTHONPATH="$ROOT${PYTHONPATH:+:$PYTHONPATH}"
|
||||
exec "$ROOT/.venv/bin/python" -m bolt_assistant "$@"
|
||||
Reference in New Issue
Block a user