scripts env setup script w/ whisper

This commit is contained in:
2025-04-04 09:52:53 -05:00
parent 441c1f7777
commit 47ae2e7da4
3 changed files with 33 additions and 2 deletions

2
scripts/.gitignore vendored
View File

@@ -1,2 +1,2 @@
models/
__pycache__/
env/

31
scripts/env.sh Normal file
View File

@@ -0,0 +1,31 @@
#! /bin/bash
# Usage: source env.sh
if [ -d "env" ]; then
source env/bin/activate
exit 0
fi
if [ -z "$(which ffmpeg)" ]; then
echo "ffmpeg must be installed!"
fi
PYTHON=$(which python)
if [ -z "$PYTHON" ]; then
PYTHON=$(which python3)
fi
if [ -z "$PYTHON" ]; then
echo "No python!"
fi
$PYTHON -m venv env
source env/bin/activate
pip install -r requirements.txt
case "$OSTYPE" in
msys*) ;;
cygwin*) ;;
*) pip install -r requirements-unix.txt
esac

View File

@@ -1,6 +1,6 @@
wheel
requests
vosk
openai-whisper
numpy
scipy
simpleaudio