Skip to content

[FEATURE] Implement Web Speech API Voice Commands for Hands-Free Waste Dispatching #677

Description

@knoxiboy

Problem Statement

Providers submitting waste dispatches often have their hands dirty or are wearing protective gear, making it difficult and unhygienic to tap or swipe smartphone screens to initiate camera scans and submit forms.

Proposed Solution

Integrate Web Speech API voice commands for hands-free operations:

  1. Implement a speech recognition service using window.SpeechRecognition (Web Speech API) in src/intelligence.js.
  2. Listen for voice triggers such as "Scan Waste" (launches camera), "Confirm Weight" (records input), and "Submit Dispatch" (posts request).
  3. Provide audio feedback cues using SpeechSynthesis to guide the user through the process.

Alternatives Considered

Adding physical button shortcuts, but voice control is the only truly hands-free solution for mobile PWA devices.

Additional Context

Level: Intermediate
Affected Files: src/intelligence.js (new), src/scanner.js

Can you please assign this issue to me? I would like to work on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions