-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·59 lines (47 loc) · 1.99 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·59 lines (47 loc) · 1.99 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
set -e
echo ""
echo "Installing Interweave -- voice I/O for Claude Code"
echo ""
# Warn if not on Apple Silicon (mlx-audio / parakeet-mlx are MLX-only).
# Note: uname -m reports x86_64 under Rosetta even on Apple Silicon, so this is just a heads-up.
if [[ "$(uname -s)" != "Darwin" || "$(uname -m)" != "arm64" ]]; then
echo "Warning: Interweave is designed for macOS on Apple Silicon."
echo "Detected: $(uname -s) $(uname -m). Continuing anyway -- install may fail on MLX deps."
echo ""
fi
# Check for uv
if ! command -v uv &> /dev/null; then
echo "Error: uv is required but not installed."
echo "Install it with: curl -LsSf https://astral.sh/uv/install.sh | sh"
echo ""
exit 1
fi
# Install the package and dependencies
echo "[1/3] Installing package and dependencies..."
echo " This may take a few minutes on first install."
echo ""
uv tool install --force --upgrade --python ">=3.11" interweave 2>&1
echo ""
# Download ML models
echo "[2/3] Downloading ML models..."
echo ""
PYTHON="$(uv tool dir)/interweave/bin/python"
echo " Silero VAD (voice activity detection)..."
"$PYTHON" -c "from silero_vad import load_silero_vad; load_silero_vad(); print(' Done.')"
echo " Parakeet MLX (speech-to-text)..."
"$PYTHON" -c "import parakeet_mlx; parakeet_mlx.from_pretrained('animaslabs/parakeet-tdt-0.6b-v3-mlx'); print(' Done.')"
echo " Kokoro MLX (text-to-speech)..."
"$PYTHON" -c "from mlx_audio.tts.utils import load_model; m = load_model('mlx-community/Kokoro-82M-bf16'); print(' Done.')"
echo ""
# Register with Claude Code (user scope = available in all projects)
echo "[3/3] Registering with Claude Code (user scope)..."
if command -v claude &> /dev/null; then
claude mcp add --scope user interweave -- interweave 2>&1 || true
echo ""
echo "Done! Start a new Claude Code session and talk."
else
echo " Claude Code CLI not found. Register manually:"
echo " claude mcp add --scope user interweave -- interweave"
fi
echo ""