Skip to content

feat: Add voice input using browser speech recognition (web only)#18225

Open
s2x wants to merge 4 commits intoanomalyco:devfrom
crazy-goat:feature/speech-recognition
Open

feat: Add voice input using browser speech recognition (web only)#18225
s2x wants to merge 4 commits intoanomalyco:devfrom
crazy-goat:feature/speech-recognition

Conversation

@s2x
Copy link

@s2x s2x commented Mar 19, 2026

Issue for this PR

Closes #18226

Type of change

  • New feature

What does this PR do?

Adds speech-to-text support to the prompt input. A microphone button appears when the browser supports the SpeechRecognition API. Next to it is a language selector populated from navigator.languages (browser preferences), with en-US always included as fallback. Both controls are grouped in a styled box matching the existing UI design system.

Transcribed text is inserted at the cursor position, preserving any existing content before and after. The mic icon animates while recording.

How did you verify your code works?

Tested locally in Chrome with Polish and English browser languages configured. Verified text insertion at cursor, language switching, and recording animation.

Screenshots / recordings

image
Nagranie.ekranu.z.2026-03-19.11-33-59.mp4

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Piotr Hałas added 4 commits March 19, 2026 11:12
- Add useSpeechRecognition hook with browser SpeechRecognition API
- Add language selector dropdown populated from navigator.languages with en-US fallback
- Group mic button and language selector in styled box matching UI design system
- Insert transcribed text at cursor position preserving existing content
- Animate mic icon during recording
@s2x s2x requested a review from adamdotdevin as a code owner March 19, 2026 10:35
@github-actions github-actions bot added the needs:compliance This means the issue will auto-close after 2 hours. label Mar 19, 2026
@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

@github-actions github-actions bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Mar 19, 2026
@github-actions
Copy link
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]:: Add voice input using browser speech recognition (web only)

1 participant