Skip to content

[FEAT] Offline Voice-to-Query (Local Whisper Integration) #194

Description

@Adithyakp86

🔴 Problem
The project currently supports Voice Output (TTS) but lacks Voice Input (STT). This limits accessibility for users in high-pressure legal environments who need to query the law database while handling physical documents. There is no way to perform a "hands-free" search for specific BNS/IPC sections.

✅ Proposed Solution
Whisper Integration: Add faster-whisper or whisper.cpp Python bindings for real-time, local transcription of user queries.
Streamlit Audio Pipeline: Implement a custom Streamlit component to capture microphone input and pipe it directly to the local model.
Semantic Routing: Develop a post-transcription logic that determines if the user is asking for a "Section Mapping" (IPC -> BNS) or a "General Search" (RAG) and routes the query automatically.

Assign this issue to me under OSCG .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions