Skip to content

feat(playback): add browser TTS mute detection and notification#329

Open
cox-yj wants to merge 1 commit intoTHU-MAIC:mainfrom
cox-yj:feat/browser-tts-mute-detection
Open

feat(playback): add browser TTS mute detection and notification#329
cox-yj wants to merge 1 commit intoTHU-MAIC:mainfrom
cox-yj:feat/browser-tts-mute-detection

Conversation

@cox-yj
Copy link
Copy Markdown

@cox-yj cox-yj commented Mar 30, 2026

feat(playback): add browser TTS mute detection and notification

Summary

Add browser TTS mute state detection that displays a notification when the browser is muted.

Related Issues

Closes #

Changes

  • Detect abnormally fast TTS completion in playback engine (indicating muted state)
  • Show toast notification when mute is detected
  • Add bilingual prompts for Chinese and English users

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)
  • CI/CD or build changes

Verification

Steps to reproduce / test

  1. Start the app and navigate to the playback interface
  2. Mute your system or browser
  3. Play content with TTS enabled
  4. Observe if the mute notification toast appears

What you personally verified

  • TTS correctly triggers notification when muted
  • No false positives during normal volume playback
  • Chinese and English UI display correct prompt text

Evidence

  • CI passes (pnpm check && pnpm lint && npx tsc --noEmit)
  • Manually tested locally
  • Screenshots / recordings attached (if UI changes)
image

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have added/updated documentation as needed
  • My changes do not introduce new warnings

- detect abnormally fast TTS completion indicating muted state
- show toast notification when browser TTS appears muted
- add bilingual prompts for Chinese and English users

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
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.

1 participant