fixed a lot of things and actually got it to work
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user