add web ui

This commit is contained in:
YuanHui
2025-12-02 12:22:06 +08:00
parent 27d6248833
commit 9d1429eeb2
25 changed files with 3184 additions and 0 deletions

28
web/start.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
# Quick start script for Edge TTS Web UI
echo "🎙️ Starting Edge TTS Web UI..."
echo ""
source ../.venv/bin/activate
# Check if Python is installed
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 is not installed. Please install Python 3.8 or higher."
exit 1
fi
# Check if dependencies are installed
if ! python3 -c "import fastapi" 2>/dev/null; then
echo "📦 Installing dependencies..."
pip3 install -r requirements.txt
echo ""
fi
# Start the server
echo "✅ Starting server on http://localhost:8000"
echo ""
echo "Press Ctrl+C to stop the server"
echo ""
python3 server.py