| Language | Voice Commands | Responses |
|---|---|---|
| English | ✅ | ✅ |
| Hindi | ✅ (romanised) | ✅ |
| Telugu | ✅ (romanised) | ✅ |
| Spanish | ✅ | ✅ |
SPF_Final/
├── api.py ← Flask server (run this)
├── language.py ← Language detection + multilingual responses (NEW)
├── intent_model.py ← LSTM trained on EN+HI+TE+ES phrases
├── entity.py ← Multilingual entity extractor
├── action.py
├── context.py
├── preprocess.py
├── speech.py
├── wakeword.py
├── requirements.txt
└── templates/
└── dashboard.html ← Full UI with 4-language mic support
pip install flask flask-cors speechrecognition pyttsx3 nltk tensorflow pyaudioIf NLTK errors on first run:
import nltk; nltk.download('punkt'); nltk.download('punkt_tab')python api.pyOpen: http://localhost:5000 (Chrome or Edge)
- "Set temperature to 24 degrees"
- "Open the window"
- "Play music"
- "Navigate to home"
- "Call mom"
- "Temperature 24 karo"
- "Khidki kholo"
- "Gaana bajao"
- "Ghar chalo"
- "Maa ko call karo"
- "Temperature 24 cheyyi"
- "Kiddiki teruvu"
- "Paata veyyi"
- "Illu ki vellu"
- "Amma ki call cheyyi"
- "Pon la temperatura a 24"
- "Abre la ventana"
- "Pon musica"
- "Navega a casa"
- "Llama a mama"
- Browser's Web Speech API runs 4 recognizers in parallel (EN/HI/TE/ES)
- First one to get a result wins
- Flask's
language.pyscores keyword matches to confirm language - Response is generated in the detected language
- Memory panel shows detected language with flag