-
Notifications
You must be signed in to change notification settings - Fork 114
Description
name: 🚀 Feature Request
about: Suggest an idea or a new capability for FireForm.
title: "[FEAT]: Interactive Voice Feedback Loop for Missing Incident Data"
labels: enhancement
assignees: ''
📝 Description
Implementation of a "Human-in-the-loop" interactive feedback system. If the LLM (Mistral) fails to extract a mandatory field from the transcript, the system will use Text-to-Speech (TTS) to verbally ask the responder for the missing information.
💡 Rationale
In high-stress emergency environments, responders need a hands-free experience. If a recording is unclear, the current system simply leaves a "-1" or empty field. This feature ensures 100% data integrity without requiring the user to stop and type manually.
🛠️ Proposed Solution
- Integrate a lightweight TTS engine (like
pyttsx3orgTTS) insrc/backend.py. - Logic change in
textToJSONto trigger a question if a value is returned as "-1". - Update to
requirements.txtfor audio dependencies. - New prompt for Mistral to generate concise clarification questions.
✅ Acceptance Criteria
- Feature works in Docker container (with audio device access).
- System successfully triggers a voice prompt when a field is missing.
- JSON output is updated based on the voice response.
📌 Additional Context
This leverages local AI processing to maintain privacy while ensuring the final PDF is fully populated before it is sent to the UN HQ.