-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-streaming.sh
More file actions
executable file
·35 lines (28 loc) · 1.15 KB
/
run-streaming.sh
File metadata and controls
executable file
·35 lines (28 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# Run VoxTerm in STREAMING mode (types as you speak!)
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR"
source venv/bin/activate
# Check for access key
if [ -z "$PICOVOICE_ACCESS_KEY" ]; then
# Try to load from .zshrc
if [ -f "$HOME/.zshrc" ]; then
source "$HOME/.zshrc"
fi
fi
if [ -z "$PICOVOICE_ACCESS_KEY" ]; then
echo ""
echo "⚠️ PICOVOICE_ACCESS_KEY not set"
echo " Run: source ~/.zshrc"
echo ""
exit 1
fi
echo ""
echo "╔══════════════════════════════════════════════════════════╗"
echo "║ ║"
echo "║ 🎤 STREAMING MODE - Types as you speak! ⚡ ║"
echo "║ ║"
echo "╚══════════════════════════════════════════════════════════╝"
echo ""
# Run streaming version
python -u main_streaming.py "$@"