scripts env setup script w/ whisper
This commit is contained in:
2
scripts/.gitignore
vendored
2
scripts/.gitignore
vendored
@@ -1,2 +1,2 @@
|
||||
models/
|
||||
__pycache__/
|
||||
env/
|
||||
|
31
scripts/env.sh
Normal file
31
scripts/env.sh
Normal 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
|
||||
|
@@ -1,6 +1,6 @@
|
||||
wheel
|
||||
requests
|
||||
vosk
|
||||
openai-whisper
|
||||
numpy
|
||||
scipy
|
||||
simpleaudio
|
Reference in New Issue
Block a user