Skip to content

feat: add voice search (speech-to-text) support #95

@gauravkr-dev

Description

@gauravkr-dev

Define You:

  • Contributor

Is your feature request related to a problem? Please describe.

Typing in the search bar can be slow or inconvenient for many users. Modern browsers provide voice search for faster input, but Peersky Browser currently lacks this feature. Users who prefer speaking instead of typing need a more accessible way to search.

Describe the solution you'd like...

Add a voice search feature by integrating a microphone icon inside the search bar.
When clicked:

  • The browser should start listening to the user’s voice.

  • Speech should be converted into text automatically (speech-to-text).

  • The recognised text should appear inside the search bar in real time.

  • Auto language detection should be supported so the user doesn’t need to choose a language manually.

  • The voice input should stop when clicked again or after a short silence.

Describe alternatives you've considered?

  • Using Chromium’s built-in Web Speech API (but it’s not fully offline and may not auto-detect language correctly).

  • Using cloud speech APIs (Google, Azure, etc.), but these require paid plans and internet access.

Approach to be followed (optional):

  1. Add a mic icon inside the search bar UI.

  2. Use Vosk (offline STT engine) for speech-to-text with a multi-language model for auto detection.

  3. Start audio recording when the mic icon is clicked.

  4. Send audio stream to Vosk for real-time transcription.

  5. Insert transcription into the search bar input.

  6. Handle stop events:

  • Click again

  • Silence timeout

  1. Display a visual indicator (e.g., mic glowing) while recording.

Additional context

  • Vosk is free and works offline.

  • Chromium is open-source, no API payments required.

  • This feature improves accessibility and user experience.

  • Helps users who prefer speaking over typing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UI/UXRelated to designenhancementNew feature or requestpriority: lowFor minor issues that don’t affect the project in significant ways

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions