Files
vosk-datacleaner/vosk/vosk_service/install_deps.sh

51 lines
1.0 KiB
Bash

#!/bin/bash
# Installation script for Vosk service dependencies
echo "🚀 Installing Vosk service dependencies..."
# Check if we're in the right directory
if [ ! -f "app_optimized.py" ]; then
echo "❌ Please run this script from the vosk_service directory"
exit 1
fi
# Install dependencies
echo "📦 Installing dependencies..."
# Core dependencies
pip install vosk>=0.3.45
pip install Flask>=2.3.0
pip install soundfile>=0.12.1
# Async dependencies
pip install aiohttp>=3.8.0
pip install asyncio-throttle>=1.0.0
# Production server
pip install gunicorn>=21.0.0
# Additional dependencies
pip install numpy>=1.24.0
pip install requests>=2.31.0
echo "✅ Dependencies installed successfully!"
# Test imports
echo "🧪 Testing imports..."
python -c "
try:
import flask
import aiohttp
import gunicorn
import vosk
import soundfile
import numpy
import requests
print('✅ All modules imported successfully!')
except ImportError as e:
print(f'❌ Import error: {e}')
exit(1)
"
echo "🎯 Vosk service is ready to run!"