-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathsetup-unix.sh
More file actions
31 lines (23 loc) · 753 Bytes
/
setup-unix.sh
File metadata and controls
31 lines (23 loc) · 753 Bytes
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
# create .env
touch .env
# create dirs
mkdir models tmp
mkdir tmp/input tmp/output tmp/transcripts
# install deps
bun install
# download models
echo "Downloading models..."
cd models
curl -O https://hf-mirror.com/hexgrad/Kokoro-82M/resolve/main/kokoro-v0_19.onnx
curl -O https://github.com/farshed/sage/releases/download/voices.json_v0.1/voices.json
if [[ "$(uname)" == "Darwin" ]]; then
curl -O https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-large-v3-turbo-encoder.mlmodelc.zip
unzip ggml-large-v3-turbo-encoder.mlmodelc.zip
else
curl -O https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-large-v3-turbo.bin
fi
# compile whisper and kokoro
cd ../whisper
cargo build --release
cd ../kokoro
cargo build --release