fixed a lot of things and actually got it to work
All checks were successful
Build and Publish Docker Images / build-cuda (push) Successful in 6m12s
Build and Publish Docker Images / build-rocm (push) Successful in 6m33s
Build and Publish Docker Images / build-cpu (push) Successful in 18m51s

This commit is contained in:
2026-06-13 09:56:48 +00:00
parent a0ff64629c
commit 4ddf29aeb7
14 changed files with 215 additions and 137 deletions

View File

@@ -12,8 +12,36 @@ else
ls -la "$MODEL_DIR"
fi
# Ensure NLTK data is available
python -c "
import nltk
try:
nltk.data.find('taggers/averaged_perceptron_tagger_eng')
except LookupError:
nltk.download('averaged_perceptron_tagger_eng')
try:
nltk.data.find('corpora/cmudict')
except LookupError:
nltk.download('cmudict')
"
HALF="${HALF:-false}"
PRELOAD="${PRELOAD:-false}"
HALF_FLAG=""
if [ "$HALF" = "true" ]; then
HALF_FLAG="--half"
fi
PRELOAD_FLAG=""
if [ "$PRELOAD" = "true" ]; then
PRELOAD_FLAG="--preload"
fi
echo "Starting Wyoming GLaDOS TTS server..."
exec python -m wyoming_glados \
--model-dir "$MODEL_DIR" \
--uri "${URI:-tcp://0.0.0.0:10200}" \
--device "${DEVICE:-cpu}"
--device "${DEVICE:-cpu}" \
$HALF_FLAG \
$PRELOAD_FLAG