refactor: integrate local STT with existing upload flow

- Simplify STT_SERVICE config to local/MODEL_SIZE format
- Remove separate STT routes, integrate with document upload
- Add local STT support to audio file processing pipeline
- Remove React component, use existing upload interface
- Support both local Faster-Whisper and external STT services
- Tested with real speech: 99% accuracy, 2.87s processing
This commit is contained in:
Nabhan 2025-10-12 10:50:55 +05:00
parent bd6b198e20
commit cf0e265107
7 changed files with 47 additions and 238 deletions

View file

@ -106,9 +106,6 @@ class Config:
STT_SERVICE = os.getenv("STT_SERVICE")
STT_SERVICE_API_BASE = os.getenv("STT_SERVICE_API_BASE")
STT_SERVICE_API_KEY = os.getenv("STT_SERVICE_API_KEY")
# Local STT Configuration
LOCAL_STT_MODEL = os.getenv("LOCAL_STT_MODEL", "base")
# Validation Checks
# Check embedding dimension