| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- # Trixy Voice Assistant - Server Requirements
- # ==========================================
- # Full server deployment with all features including TUI, plugins, ML inference
- # Includes base requirements plus server-specific components
- # Include base requirements
- -r requirements.txt
- # Textual TUI Framework
- textual>=0.40.0 # Modern TUI framework for server interface
- rich>=12.0.0 # Already in base, rich text rendering for TUI
- # Advanced ML inference (server handles ML processing)
- torch>=1.11.0,<2.0.0 # Already in base, PyTorch for ML models
- torchaudio>=0.11.0,<1.0.0 # Already in base, audio processing
- onnx>=1.12.0 # ONNX model format support
- onnxruntime>=1.12.0 # ONNX runtime for optimized inference
- # Advanced audio processing for server-side STT/TTS
- librosa>=0.9.0 # Advanced audio analysis
- scipy>=1.7.0 # Scientific computing for signal processing
- soundfile>=0.10.3 # Already in base, audio file I/O
- resampy>=0.2.2 # High-quality audio resampling
- # Speech-to-Text integration
- speechbrain>=0.5.0 # SpeechBrain toolkit
- transformers>=4.15.0 # Hugging Face transformers for STT models
- datasets>=2.0.0 # Hugging Face datasets for model data
- # Text-to-Speech integration
- espnet>=202207 # ESPnet for TTS capabilities
- coqui-tts>=0.13.0 # Coqui TTS engine
- piper-tts>=1.0.0 # Piper TTS (lightweight alternative)
- # Voice Activity Detection
- webrtcvad>=2.0.0 # WebRTC VAD
- silero-vad>=4.0.0 # Silero VAD models
- # Advanced voice recognition and speaker identification
- pyannote.audio>=2.0.0 # Speaker diarization
- pyannote.core>=4.5.0 # Core utilities for pyannote
- speechrecognition>=3.8.0 # Generic speech recognition wrapper
- # Plugin system and dynamic loading
- importlib-metadata>=4.11.0 # Package metadata for plugin discovery
- pkgutil-style>=1.0.0 # Plugin discovery utilities (if available)
- # Web API framework for plugin interfaces
- fastapi>=0.75.0 # Web API framework
- uvicorn>=0.17.0 # ASGI server
- starlette>=0.19.0 # Web framework components
- pydantic>=1.8.0,<2.0.0 # Already in base, data validation
- # Database support for plugin data storage
- sqlalchemy>=1.4.0 # SQL toolkit and ORM
- aiosqlite>=0.17.0 # Async SQLite support
- alembic>=1.7.0 # Database migrations
- # Caching and session management
- redis>=4.1.0 # Redis client for caching
- aioredis>=2.0.0 # Async Redis client
- # Advanced networking and protocol handling
- aiohttp>=3.8.0 # Async HTTP client/server
- websockets>=10.0 # WebSocket support for real-time communication
- httpx>=0.23.0 # Modern HTTP client
- # Scheduling and task management
- celery>=5.2.0 # Distributed task queue
- croniter>=1.3.0 # Cron expression parsing
- apscheduler>=3.9.0 # Advanced Python scheduler
- # Configuration management
- dynaconf>=3.1.0 # Advanced configuration management
- python-decouple>=3.6 # Environment configuration
- configparser-crypt>=1.0.0 # Encrypted configuration (if available)
- # Monitoring and metrics
- prometheus-client>=0.13.0 # Metrics collection
- psutil>=5.8.0 # Already in base, system monitoring
- gpustat>=1.0.0 # GPU monitoring (if applicable)
- py-cpuinfo>=8.0.0 # CPU information
- # Logging and observability
- structlog>=21.0.0 # Already in base, structured logging
- loguru>=0.6.0 # Enhanced logging
- python-json-logger>=2.0.0 # JSON logging format
- elastic-apm>=6.9.0 # APM monitoring (optional)
- # Advanced cryptography for model protection and communication
- cryptography>=3.4.8 # Already in base, enhanced cryptography
- pynacl>=1.5.0 # Modern cryptography library
- cryptography-vectors>=3.4.8 # Test vectors for cryptography
- # Asset management and file handling
- aiofiles>=0.8.0 # Async file operations
- pathspec>=0.9.0 # Path specification utilities
- send2trash>=1.8.0 # Safe file deletion
- # Internationalization
- babel>=2.9.0 # I18n utilities
- flufl.i18n>=3.1.0 # Enhanced i18n support
- # Advanced data processing
- pandas>=1.3.0 # Data manipulation (for analytics)
- arrow>=1.2.0 # Better date/time handling
- python-dateutil>=2.8.0 # Already in base, date utilities
- # Security and authentication
- passlib>=1.7.0 # Password hashing
- python-jose>=3.3.0 # JWT handling
- python-multipart>=0.0.5 # Multipart form handling
- authlib>=1.0.0 # OAuth and authentication
- # Email notifications (for alerts)
- aiosmtplib>=1.1.0 # Async SMTP client
- premailer>=3.10.0 # HTML email preprocessing
- # Document processing (for configuration docs)
- markdown>=3.3.0 # Markdown processing
- mistune>=2.0.0 # Fast markdown parser
- pymdown-extensions>=9.0.0 # Markdown extensions
- # Advanced audio codecs and formats
- pydub>=0.25.1 # Audio manipulation
- ffmpeg-python>=0.2.0 # FFmpeg bindings
- mutagen>=1.45.0 # Audio metadata handling
- # Machine learning utilities for server-side processing
- scikit-learn>=1.0.0 # Already in base, ML utilities
- joblib>=1.1.0 # Parallel processing and persistence
- numpy>=1.21.0,<2.0.0 # Already in base, numerical computing
- # Real-time audio processing
- pyaudio>=0.2.11 # Real-time audio I/O
- sounddevice>=0.4.0 # Audio device interface
- rtaudio>=0.1.0 # Real-time audio
- # Network discovery and service advertisement
- zeroconf>=0.38.0 # Bonjour/Avahi service discovery
- mdns>=1.0.0 # mDNS service registration
- # Protocol buffers for efficient communication
- protobuf>=3.19.0 # Protocol buffers
- grpcio>=1.44.0 # gRPC framework (if used)
- # Message queues and communication
- pika>=1.2.0 # RabbitMQ client
- aiokafka>=0.7.0 # Kafka client (if using Kafka)
- # Advanced serialization
- msgpack>=1.0.0 # Efficient binary serialization
- orjson>=3.6.0 # Fast JSON library
- ujson>=5.1.0 # Ultra-fast JSON
- # Template engine for dynamic content
- jinja2>=3.0.0 # Template engine
- markupsafe>=2.1.0 # Safe string handling
- # HTTP utilities and middleware
- starlette-middleware>=0.1.0 # Additional middleware (if available)
- slowapi>=0.1.0 # Rate limiting
- starlette-prometheus>=0.9.0 # Prometheus metrics
- # WebSocket extensions
- websocket-client>=1.3.0 # WebSocket client utilities
- # Advanced file watching
- watchfiles>=0.15.0 # Fast file watching (Rust-based)
- # Memory and performance optimization
- pympler>=0.9 # Memory analysis
- line-profiler>=3.5.0 # Performance profiling
- memory-profiler>=0.60.0 # Already in base, memory profiling
- # Container and deployment support
- gunicorn>=20.1.0 # WSGI HTTP server
- gevent>=21.12.0 # Async networking
- # Development and debugging utilities (production-safe)
- devtools>=0.8.0 # Development utilities
- icecream>=2.1.0 # Enhanced debugging output
- # Optional: Enterprise features
- # ldap3>=2.9.0 # LDAP authentication
- # python-keycloak>=2.6.0 # Keycloak integration
- # System integration
- systemd-python>=234 # systemd integration (Linux)
- python-daemon>=2.3.0 # Unix daemon support
- # Advanced error handling and recovery
- tenacity>=8.0.0 # Retry utilities
- circuit-breaker>=1.0.0 # Circuit breaker pattern
- # API documentation
- redoc>=0.1.0 # API documentation
- swagger-ui-bundle>=0.1.0 # Swagger UI
- # Content delivery and caching
- aiohttp-cache>=0.1.0 # HTTP caching (if available)
- diskcache>=5.4.0 # Disk-based caching
- # Background task processing
- dramatiq>=1.12.0 # Background task processing
- huey>=2.4.0 # Lightweight task queue
- # Hardware abstraction
- gpiozero>=1.6.0 # GPIO control (Raspberry Pi) - optional
- adafruit-circuitpython-* # Hardware libraries (optional)
- # System requirements:
- # - Sufficient RAM (minimum 2GB, recommended 4GB+)
- # - CPU with AVX support for optimized ML inference
- # - GPU support (optional, for CUDA acceleration)
- # - Audio system (ALSA/PulseAudio on Linux)
- # - Network interfaces for client connections
- # - Storage for models, logs, and plugin data
- # Installation:
- # pip install -r requirements-server.txt
- #
- # For GPU support:
- # pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu118
- #
- # For production deployment:
- # pip install -r requirements-server.txt gunicorn[gevent]
- #
- # System packages (Ubuntu/Debian):
- # sudo apt-get install portaudio19-dev python3-pyaudio libasound2-dev
- # sudo apt-get install redis-server # If using Redis
- # sudo apt-get install ffmpeg # For audio processing
- # Performance notes:
- # - Use Redis for caching and session storage
- # - Configure asyncio event loop policy for better performance
- # - Use gunicorn with gevent workers for production
- # - Consider NVIDIA TensorRT for GPU inference optimization
- # - Use connection pooling for database connections
- # Approximate install size: ~2-3GB (full ML + server environment)
|