Skip to content

[FEAT]: Interactive Voice Feedback Loop for Missing Incident Data #106

@yassinezadod

Description

@yassinezadod

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 pyttsx3 or gTTS) in src/backend.py.
  • Logic change in textToJSON to trigger a question if a value is returned as "-1".
  • Update to requirements.txt for 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions