Skip to content

feat(#623): adaptive noise gate via DynamicsCompressorNode - #907

Open
Shan7Usmani wants to merge 7 commits into
shouri123:mainfrom
Shan7Usmani:feat/623-adaptive-noise-gate
Open

feat(#623): adaptive noise gate via DynamicsCompressorNode#907
Shan7Usmani wants to merge 7 commits into
shouri123:mainfrom
Shan7Usmani:feat/623-adaptive-noise-gate

Conversation

@Shan7Usmani

Copy link
Copy Markdown

Description

Implements an adaptive noise gate using the Web Audio API DynamicsCompressorNode to silence ambient noise before it reaches the transcriber, reducing Whisper API costs.

Changes

  • offscreenAudioGraph.ts: Added createNoiseGate() using DynamicsCompressorNode with adaptive threshold, high ratio, and fast attack to gate low-amplitude ambient noise
  • Audio graph now routes tab audio through the noise gate before the recorder destination
  • Microphone audio bypasses the noise gate (already has hardware noise suppression constraints)
  • Updated offscreenAudioGraph tests with MockDynamicsCompressorNode and routing assertions
  • TypeScript compiles clean, all 7 offscreenAudioGraph tests pass

Fixes #623

Shan7Usmani and others added 7 commits June 24, 2026 20:02
…icipant names

- Fix initials derivation in createTranscriptEntryHTML to use escaped speaker
- Use sanitizeDataAttr for data-* attributes instead of escapeHtml
- Consolidate duplicate escapeHtml: deprecate sanitize.ts version, keep domHelpers.ts canonical
- Harden getEmptyStateHTML and truncatedNoticeHtml with escapeHtml for defense-in-depth
- Add domHelpers.test.ts with XSS, attribute-context, and regression tests
- Update sanitize.test.ts to import escapeHtml from canonical source
- Remove redundant DOM mock from sanitize.test.ts

Audit result: 0 active XSS vulnerabilities across all 47 innerHTML assignments.
@Shan7Usmani
Shan7Usmani requested a review from shouri123 as a code owner July 25, 2026 07:43
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Thank You for Contributing to Late-Meet

Please ensure that:

  • the issue was assigned to you before opening this PR
  • the PR references the related issue
  • your changes follow repository contribution guidelines
  • the project builds successfully before submission

Unassigned, duplicate, or low-quality PRs may be closed.

Thank you for contributing 💙

@coderabbitai

coderabbitai Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@Shan7Usmani, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 59 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 56f12b14-415c-436d-a0ba-fb53cf5330bf

📥 Commits

Reviewing files that changed from the base of the PR and between d216444 and 383f703.

📒 Files selected for processing (10)
  • README.md
  • src/background.ts
  • src/dashboard.ts
  • src/manifest.json
  • src/offscreen.ts
  • src/offscreenAudioGraph.ts
  • src/utils/domHelpers.test.ts
  • src/utils/sanitize.test.ts
  • src/utils/sanitize.ts
  • tests/offscreenAudioGraph.test.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added gssoc Official GSSoC contribution issue gssoc:approved GSSoC: PR approved and scored size/L type:feature Type: New Feature labels Jul 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

👋 Thank you @Shan7Usmani for your contribution to Late-Meet!

✅ Verified: You are assigned to the linked issue #623.

Please review any automated suggestions or code review comments that may appear below! We will review your PR as soon as possible!


Please consider starring the repository ⭐ to show your support!

@github-actions github-actions Bot added type:docs Type: Documentation type:code Type: Code change type:test Type: Test files security-review Requires security review before merge labels Jul 25, 2026
@sonarqubecloud

Copy link
Copy Markdown

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

Labels

gssoc:approved GSSoC: PR approved and scored gssoc Official GSSoC contribution issue security-review Requires security review before merge size/L type:code Type: Code change type:docs Type: Documentation type:feature Type: New Feature type:test Type: Test files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Implement adaptive Web Audio API noise gate for offscreen audio capture

2 participants