Desmond-Dong commited on
Commit
2efbff7
·
1 Parent(s): ae5f443

refactor: remove all local STT/TTS dependencies and code

Browse files

- Remove openai-whisper and piper-tts from dependencies (STT/TTS handled by Home Assistant)
- Remove gradio from dependencies (not needed for Reachy Mini app)
- Remove opencv-python and mediapipe from core dependencies (moved to optional vision)
- Remove stt_engine, stt_model, tts_engine, tts_model from default config
- Remove gradio config section
- Keep only essential dependencies for core functionality
- This fixes the protobuf version conflict between aioesphomeapi and mediapipe
- Users can install vision features with: pip install -e .[vision]

pyproject.toml CHANGED
@@ -72,6 +72,8 @@ vision = [
72
  "pollen-vision",
73
  "torch>=2.0.0",
74
  "transformers>=4.30.0",
 
 
75
  ]
76
 
77
  dev = [
 
72
  "pollen-vision",
73
  "torch>=2.0.0",
74
  "transformers>=4.30.0",
75
+ "opencv-python>=4.8.0",
76
+ "mediapipe>=0.10.0",
77
  ]
78
 
79
  dev = [
src/reachy_mini_ha_voice/config/manager.py CHANGED
@@ -56,11 +56,7 @@ class ConfigManager:
56
  },
57
  "voice": {
58
  "wake_word": "okay_nabu",
59
- "wake_word_dirs": ["wakewords"],
60
- "stt_engine": "whisper",
61
- "stt_model": "base",
62
- "tts_engine": "piper",
63
- "tts_model": "en_US-lessac-medium"
64
  },
65
  "motion": {
66
  "enabled": True,
@@ -76,11 +72,6 @@ class ConfigManager:
76
  "host": "localhost",
77
  "wireless": False
78
  },
79
- "gradio": {
80
- "enabled": False,
81
- "host": "127.0.0.1",
82
- "port": 7860
83
- },
84
  "logging": {
85
  "level": "INFO",
86
  "file": "reachy_mini_ha_voice.log"
 
56
  },
57
  "voice": {
58
  "wake_word": "okay_nabu",
59
+ "wake_word_dirs": ["wakewords"]
 
 
 
 
60
  },
61
  "motion": {
62
  "enabled": True,
 
72
  "host": "localhost",
73
  "wireless": False
74
  },
 
 
 
 
 
75
  "logging": {
76
  "level": "INFO",
77
  "file": "reachy_mini_ha_voice.log"