feat: Enhance speech and AI configuration with advanced environment settings
- Update `.env.example` with comprehensive speech and AI configuration options - Modify Docker Compose speech configuration for more flexible audio and ASR settings - Enhance Dockerfile to support Python virtual environment and speech dependencies - Refactor environment loading to use Bun's file system utilities - Improve device listing tool with more detailed device statistics - Add support for multiple AI models and dynamic configuration
This commit is contained in:
28
.env.example
28
.env.example
@@ -3,6 +3,7 @@ NODE_ENV=development
|
||||
PORT=3000
|
||||
DEBUG=false
|
||||
LOG_LEVEL=info
|
||||
MCP_SERVER=http://localhost:3000
|
||||
|
||||
# Home Assistant Configuration
|
||||
HASS_HOST=http://homeassistant.local:8123
|
||||
@@ -40,18 +41,18 @@ MAX_REQUEST_SIZE=1048576
|
||||
MAX_REQUEST_FIELDS=1000
|
||||
|
||||
# AI Configuration
|
||||
PROCESSOR_TYPE=claude
|
||||
PROCESSOR_TYPE=openai
|
||||
OPENAI_API_KEY=your_openai_api_key
|
||||
OPENAI_MODEL=gpt-3.5-turbo
|
||||
MAX_RETRIES=3
|
||||
ANALYSIS_TIMEOUT=30000
|
||||
|
||||
# Speech Features Configuration
|
||||
ENABLE_SPEECH_FEATURES=false
|
||||
ENABLE_WAKE_WORD=false
|
||||
ENABLE_SPEECH_TO_TEXT=false
|
||||
ENABLE_SPEECH_FEATURES=true
|
||||
ENABLE_WAKE_WORD=true
|
||||
ENABLE_SPEECH_TO_TEXT=true
|
||||
WHISPER_MODEL_PATH=/models
|
||||
WHISPER_MODEL_TYPE=tiny
|
||||
WHISPER_MODEL_TYPE=base
|
||||
|
||||
# Audio Configuration
|
||||
NOISE_THRESHOLD=0.05
|
||||
@@ -62,6 +63,13 @@ CHANNELS=1
|
||||
CHUNK_SIZE=1024
|
||||
PULSE_SERVER=unix:/run/user/1000/pulse/native
|
||||
|
||||
# Whisper Configuration
|
||||
ASR_MODEL=base
|
||||
ASR_ENGINE=faster_whisper
|
||||
WHISPER_BEAM_SIZE=5
|
||||
COMPUTE_TYPE=float32
|
||||
LANGUAGE=en
|
||||
|
||||
# SSE Configuration
|
||||
SSE_MAX_CLIENTS=50
|
||||
SSE_RECONNECT_TIMEOUT=5000
|
||||
@@ -78,5 +86,11 @@ TEST_PORT=3001
|
||||
# Version
|
||||
VERSION=0.1.0
|
||||
|
||||
# Advanced (Docker)
|
||||
COMPOSE_PROJECT_NAME=mcp
|
||||
# Docker Configuration
|
||||
COMPOSE_PROJECT_NAME=mcp
|
||||
|
||||
# Resource Limits
|
||||
FAST_WHISPER_CPU_LIMIT=4.0
|
||||
FAST_WHISPER_MEMORY_LIMIT=2G
|
||||
MCP_CPU_LIMIT=1.0
|
||||
MCP_MEMORY_LIMIT=512M
|
||||
Reference in New Issue
Block a user