This commit is contained in:
Morten Olsen
2025-09-12 10:59:19 +02:00
commit 25939b0141
13 changed files with 889 additions and 0 deletions

27
build.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
# Build script for Piper GLaDOS container
set -e
IMAGE_NAME="piper-glados-medium"
CONTAINER_NAME="piper-glados-medium"
echo "🏗️ Building Piper GLaDOS container..."
docker build -t "$IMAGE_NAME" .
echo "🧪 Testing if model files are correctly placed..."
docker run --rm "$IMAGE_NAME" ls -la /usr/share/piper-voices/en_US/glados/medium/
echo "🔍 Verifying Piper can load the model..."
docker run --rm "$IMAGE_NAME" piper --model /usr/share/piper-voices/en_US/glados/medium/en_US-glados-medium.onnx --help
echo "✅ Build completed successfully!"
echo ""
echo "To run the container:"
echo " docker run -d --name $CONTAINER_NAME -p 10200:10200 $IMAGE_NAME"
echo ""
echo "Or use docker-compose:"
echo " docker-compose up -d"
echo ""
echo "Test the voice API at: http://localhost:10200/api/voices"