requirements-optional.txt 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. # Trixy Voice Assistant - Optional Requirements
  2. # =============================================
  3. # Optional dependencies for extended features, platform-specific optimizations,
  4. # and experimental functionality. Install as needed for specific use cases.
  5. # ===================================
  6. # ENHANCED AUDIO PROCESSING
  7. # ===================================
  8. # Advanced audio analysis and processing
  9. aubio>=0.4.9 # Real-time audio analysis
  10. madmom>=0.16.0 # Music information retrieval
  11. essentia>=2.1 # Audio analysis library
  12. pyworld>=0.3.0 # WORLD vocoder for speech analysis
  13. praat-parselmouth>=0.4.0 # Praat phonetics software interface
  14. # High-quality audio resampling and filtering
  15. soxr>=0.3.0 # High-quality resampling library
  16. pyrubberband>=0.3.0 # Pitch and time stretching
  17. # Room acoustics and spatial audio
  18. pyroomacoustics>=0.6.0 # Room acoustics simulation
  19. sound-field-analysis>=2019.8.15 # Sound field analysis
  20. # Audio quality metrics
  21. pystoi>=0.3.0 # Short-time objective intelligibility
  22. pesq>=0.0.3 # Perceptual evaluation of speech quality
  23. py-webrtcvad>=2.0.10 # Enhanced WebRTC VAD bindings
  24. # ===================================
  25. # ADVANCED MACHINE LEARNING
  26. # ===================================
  27. # Large Language Models and NLP
  28. openai>=0.27.0 # OpenAI API client
  29. anthropic>=0.3.0 # Anthropic Claude API
  30. langchain>=0.0.200 # LLM application framework
  31. huggingface-hub>=0.14.0 # Hugging Face model hub
  32. sentence-transformers>=2.2.0 # Sentence embeddings
  33. # Advanced speech models
  34. nemo-toolkit>=1.17.0 # NVIDIA NeMo speech toolkit
  35. fairseq>=0.12.0 # Facebook AI sequence modeling
  36. speechbrain>=0.5.0 # Already in server reqs, speech processing
  37. # Computer vision (for gesture recognition, etc.)
  38. opencv-python>=4.7.0 # Computer vision library
  39. mediapipe>=0.9.0 # Google MediaPipe framework
  40. face-recognition>=1.3.0 # Face recognition library
  41. dlib>=19.24.0 # Machine learning toolkit
  42. # Advanced deep learning frameworks
  43. lightning>=1.9.0 # PyTorch Lightning
  44. catalyst>=22.4.0 # Deep learning framework
  45. ignite>=0.4.0 # PyTorch Ignite
  46. # Model optimization and quantization
  47. torch-tensorrt>=1.3.0 # TensorRT integration for PyTorch
  48. intel-neural-compressor>=2.0 # Intel optimization toolkit
  49. openvino>=2023.0.0 # Intel OpenVINO toolkit
  50. # ===================================
  51. # HARDWARE ACCELERATION
  52. # ===================================
  53. # GPU acceleration (NVIDIA)
  54. cupy-cuda11x>=11.0.0 # CUDA-accelerated NumPy
  55. pycuda>=2022.1 # CUDA Python bindings
  56. nvidia-ml-py>=11.495.46 # NVIDIA management library
  57. tensorrt>=8.5.0 # NVIDIA TensorRT
  58. # Intel optimization
  59. mkl>=2023.0.0 # Intel Math Kernel Library
  60. intel-extension-for-pytorch>=1.13.0 # Intel PyTorch extensions
  61. # ARM optimization (for Raspberry Pi, etc.)
  62. arm-compute-library>=23.02 # ARM Compute Library (if available)
  63. # ===================================
  64. # SPECIALIZED AUDIO HARDWARE
  65. # ===================================
  66. # USB audio interfaces
  67. python-rtmidi>=1.4.9 # MIDI support
  68. mido>=1.2.10 # MIDI objects for Python
  69. # Raspberry Pi GPIO and hardware
  70. gpiozero>=1.6.2 # GPIO control (Raspberry Pi)
  71. RPi.GPIO>=0.7.1 # Raspberry Pi GPIO library
  72. adafruit-circuitpython-busdevice>=5.2.0 # I2C/SPI device support
  73. adafruit-circuitpython-motor>=3.4.0 # Motor control
  74. adafruit-circuitpython-servokit>=1.3.0 # Servo control
  75. # Arduino integration
  76. pyfirmata>=1.1.0 # Arduino Firmata protocol
  77. pyserial>=3.5 # Serial communication
  78. # Audio hardware interfaces
  79. python-jack-client>=0.5.4 # JACK audio system
  80. pyo>=1.0.4 # Digital signal processing
  81. python-osc>=1.8.0 # Open Sound Control
  82. # ===================================
  83. # ADVANCED NETWORKING
  84. # ===================================
  85. # Network discovery and protocols
  86. upnpy>=1.1.8 # UPnP protocol
  87. ssdp>=1.1.0 # SSDP discovery protocol
  88. bluetooth-python>=0.1.0 # Bluetooth support (if available)
  89. pybluez>=0.23 # Bluetooth socket support
  90. # Advanced WebRTC
  91. aiortc>=1.5.0 # WebRTC implementation
  92. python-webrtc-vad>=2.0.10 # WebRTC Voice Activity Detection
  93. # IoT and smart home integration
  94. paho-mqtt>=1.6.0 # MQTT client
  95. home-assistant-api>=0.1.0 # Home Assistant integration
  96. zigpy>=0.54.0 # Zigbee protocol support
  97. # ===================================
  98. # DATABASE AND STORAGE
  99. # ===================================
  100. # Advanced databases
  101. asyncpg>=0.27.0 # PostgreSQL async driver
  102. aiomysql>=0.1.0 # MySQL async driver
  103. motor>=3.1.0 # MongoDB async driver
  104. aioredis>=2.0.0 # Already in server reqs, async Redis
  105. elasticsearch>=8.6.0 # Elasticsearch client
  106. # Time series databases
  107. influxdb-client>=1.36.0 # InfluxDB client
  108. prometheus-client>=0.16.0 # Already in server reqs, Prometheus metrics
  109. # Vector databases for embeddings
  110. pinecone-client>=2.2.0 # Pinecone vector database
  111. weaviate-client>=3.15.0 # Weaviate vector database
  112. chromadb>=0.3.0 # Chroma vector database
  113. # ===================================
  114. # CLOUD SERVICES INTEGRATION
  115. # ===================================
  116. # AWS services
  117. boto3>=1.26.0 # AWS SDK
  118. aiobotocore>=2.4.0 # Async AWS SDK
  119. # Google Cloud
  120. google-cloud-speech>=2.17.0 # Google Cloud Speech-to-Text
  121. google-cloud-texttospeech>=2.14.0 # Google Cloud Text-to-Speech
  122. google-cloud-storage>=2.7.0 # Google Cloud Storage
  123. # Microsoft Azure
  124. azure-cognitiveservices-speech>=1.26.0 # Azure Speech Services
  125. azure-storage-blob>=12.14.0 # Azure Blob Storage
  126. # ===================================
  127. # SECURITY AND ENCRYPTION
  128. # ===================================
  129. # Advanced cryptography
  130. pynacl>=1.5.0 # Modern cryptography
  131. python-gnupg>=0.5.0 # GPG encryption
  132. jwcrypto>=1.4.0 # JSON Web Crypto
  133. # Security scanning
  134. bandit>=1.7.4 # Security linting
  135. safety>=2.3.0 # Dependency vulnerability scanning
  136. # ===================================
  137. # MONITORING AND OBSERVABILITY
  138. # ===================================
  139. # APM and distributed tracing
  140. opentelemetry-api>=1.15.0 # OpenTelemetry tracing
  141. jaeger-client>=4.8.0 # Jaeger tracing
  142. datadog>=0.44.0 # Datadog monitoring
  143. # Metrics and alerting
  144. statsd>=3.3.0 # StatsD metrics
  145. grafana-api>=1.0.3 # Grafana API client
  146. # Log aggregation
  147. python-logstash>=0.4.8 # Logstash integration
  148. fluentd-logger>=0.10.0 # Fluentd logging
  149. # ===================================
  150. # DEVELOPMENT AND TESTING
  151. # ===================================
  152. # Load testing and benchmarking
  153. locust>=2.14.0 # Load testing framework
  154. pytest-benchmark>=4.0.0 # Performance benchmarking
  155. # API testing
  156. tavern>=1.23.0 # API testing framework
  157. schemathesis>=3.19.0 # API testing with property-based testing
  158. # Mock services
  159. wiremock>=2.1.0 # HTTP service mocking
  160. testcontainers>=3.7.0 # Integration testing with containers
  161. # ===================================
  162. # USER INTERFACE EXTENSIONS
  163. # ===================================
  164. # Web interface
  165. streamlit>=1.20.0 # Web UI framework
  166. gradio>=3.20.0 # ML model interface
  167. dash>=2.8.0 # Interactive web apps
  168. flask>=2.2.0 # Lightweight web framework
  169. # GUI applications
  170. tkinter-page>=0.1.0 # Tkinter utilities (if available)
  171. pyside6>=6.4.0 # Qt6 Python bindings
  172. kivy>=2.1.0 # Cross-platform GUI framework
  173. # ===================================
  174. # MOBILE AND EMBEDDED
  175. # ===================================
  176. # Mobile app backends
  177. kivy>=2.1.0 # Mobile app framework
  178. beeware>=0.3.0 # Mobile app toolkit
  179. # Embedded system support
  180. micropython>=1.19.0 # MicroPython (for microcontrollers)
  181. circuitpython>=8.0.0 # CircuitPython libraries
  182. # ===================================
  183. # CONTENT AND MEDIA
  184. # ===================================
  185. # Image processing
  186. pillow>=9.4.0 # Image processing library
  187. wand>=0.6.0 # ImageMagick binding
  188. # Video processing
  189. moviepy>=1.0.3 # Video editing library
  190. opencv-python>=4.7.0 # Already listed, computer vision
  191. # Document processing
  192. pypdf2>=3.0.0 # PDF processing
  193. python-docx>=0.8.11 # Word document processing
  194. openpyxl>=3.1.0 # Excel file processing
  195. # ===================================
  196. # SCIENTIFIC COMPUTING
  197. # ===================================
  198. # Advanced scientific libraries
  199. sympy>=1.11.0 # Symbolic mathematics
  200. statsmodels>=0.13.5 # Statistical models
  201. networkx>=3.0 # Graph analysis
  202. igraph>=0.10.0 # Graph analysis library
  203. # Numerical optimization
  204. cvxpy>=1.3.0 # Convex optimization
  205. scipy>=1.10.0 # Already in base, scientific computing
  206. # ===================================
  207. # INTERNATIONALIZATION
  208. # ===================================
  209. # Language detection and translation
  210. langdetect>=1.0.9 # Language detection
  211. googletrans>=4.0.0 # Google Translate API
  212. polyglot>=16.7.4 # Multilingual NLP toolkit
  213. # Text processing
  214. unidecode>=1.3.0 # ASCII transliteration
  215. emoji>=2.2.0 # Emoji support
  216. python-levenshtein>=0.20.0 # String similarity
  217. # ===================================
  218. # INSTALLATION NOTES
  219. # ===================================
  220. # Platform-specific installation:
  221. #
  222. # All platforms:
  223. # pip install -r requirements-optional.txt
  224. #
  225. # Raspberry Pi (ARM64):
  226. # pip install opencv-python-headless # Instead of opencv-python
  227. # sudo apt-get install libatlas-base-dev # For NumPy acceleration
  228. #
  229. # NVIDIA GPU systems:
  230. # pip install cupy-cuda11x # Match your CUDA version
  231. # pip install tensorrt # Requires NVIDIA TensorRT SDK
  232. #
  233. # Intel systems with MKL:
  234. # conda install mkl # Or pip install mkl
  235. #
  236. # macOS with Apple Silicon:
  237. # pip install tensorflow-metal # For GPU acceleration (if using TensorFlow)
  238. #
  239. # Production servers:
  240. # pip install gunicorn[gevent] supervisor # Process management
  241. #
  242. # Development workstations:
  243. # pip install jupyter ipython # Interactive development
  244. # System dependencies (Ubuntu/Debian):
  245. # sudo apt-get install build-essential cmake
  246. # sudo apt-get install libopencv-dev python3-opencv
  247. # sudo apt-get install libasound2-dev portaudio19-dev
  248. # sudo apt-get install ffmpeg libavcodec-extra
  249. # sudo apt-get install redis-server postgresql
  250. # sudo apt-get install nodejs npm # For web UI features
  251. # Hardware requirements:
  252. # - GPU: NVIDIA RTX 3060 or better (for CUDA acceleration)
  253. # - RAM: 8GB+ for full ML features
  254. # - Storage: 10GB+ for all optional models
  255. # - Network: Gigabit Ethernet for high-quality audio streaming
  256. # Usage examples:
  257. # pip install -r requirements-optional.txt # Install all optional features
  258. # pip install opencv-python mediapipe # Install just computer vision
  259. # pip install boto3 google-cloud-speech # Install just cloud services