34 lines
881 B
Bash
Executable File
34 lines
881 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Quick start script for DECTalk server
|
|
|
|
echo "🤖 Starting DECTalk TTS Server..."
|
|
|
|
# Check if node_modules exists
|
|
if [ ! -d "node_modules" ]; then
|
|
echo "📦 Installing dependencies (including authentic DECTalk)..."
|
|
npm install
|
|
fi
|
|
|
|
# Check if ffmpeg is available
|
|
if ! command -v ffmpeg &> /dev/null; then
|
|
echo "❌ Error: ffmpeg is not installed"
|
|
echo "Install it with:"
|
|
echo " - Ubuntu/Debian: sudo apt install ffmpeg"
|
|
echo " - Fedora: sudo dnf install ffmpeg"
|
|
echo " - Arch: sudo pacman -S ffmpeg"
|
|
exit 1
|
|
fi
|
|
|
|
# Check if dectalk package is installed
|
|
if [ ! -d "node_modules/dectalk" ]; then
|
|
echo "❌ Error: dectalk package not installed"
|
|
echo "Run: npm install"
|
|
exit 1
|
|
fi
|
|
|
|
# Start the server
|
|
echo "✅ Starting server on port ${PORT:-3000}..."
|
|
echo "🎙️ Using authentic DECTalk (Moonbase Alpha voice)"
|
|
npm start
|