-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathinstall-whisper-cpp.sh
More file actions
executable file
·20 lines (16 loc) · 824 Bytes
/
install-whisper-cpp.sh
File metadata and controls
executable file
·20 lines (16 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# tinyagentos installer for whisper.cpp via pywhispercpp
# ---------------------------------------------------------------------------
# Cross-platform STT backend. Uses pywhispercpp (pip wheel) on most
# platforms, falls back to building from source if no wheel exists.
# ---------------------------------------------------------------------------
set -euo pipefail
log() { echo -e "\033[1;34m[whisper-cpp]\033[0m $*"; }
die() { echo -e "\033[1;31m[whisper-cpp]\033[0m $*" >&2; exit 1; }
PY="${TAOS_WHISPER_PYTHON:-python3}"
$PY -c "import pywhispercpp; print('already installed:', pywhispercpp.__version__)" 2>/dev/null && {
log "pywhispercpp already installed"; exit 0;
}
log "installing pywhispercpp via pip (may build from source on aarch64/other)"
$PY -m pip install --user pywhispercpp
log "done"