Skip to content

fix: firefox mic access error for SR modal#556

Open
AnkittChauhan wants to merge 11 commits intotenstorrent:devfrom
AnkittChauhan:dev-ankit/fix-firefox-mic-error
Open

fix: firefox mic access error for SR modal#556
AnkittChauhan wants to merge 11 commits intotenstorrent:devfrom
AnkittChauhan:dev-ankit/fix-firefox-mic-error

Conversation

@AnkittChauhan
Copy link
Contributor

What does this PR do ?

Fixes the mic/speech-to-text issue on Firefox browsers by removing the hardcoded sampleRate and allowing the browser to use its default audio configuration

Fixes #317

517830063-e74bdc0a-d5e4-4afd-91dc-ae3591108fb1.mov

Copilot AI review requested due to automatic review settings December 11, 2025 18:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes microphone access issues in Firefox by removing hardcoded sample rate constraints from the audio recording configuration. The fix allows browsers to use their native audio settings during recording, with resampling to the required 16kHz happening later in the audio conversion pipeline.

Key Changes:

  • Removed hardcoded 16kHz sample rate constraint from getUserMedia call
  • Removed hardcoded sample rate from AudioContext initialization
  • Maintained existing resampling logic in waveConverter.ts to ensure consistent 16kHz output

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Add copyright notice for shadcn to the file.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…alizer.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@anirudTT anirudTT added the community Community-driven issues and suggestions. label Jan 8, 2026
@anirudTT anirudTT self-assigned this Jan 12, 2026
@anirudTT anirudTT self-requested a review January 12, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Community-driven issues and suggestions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants