Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Audio output can be confirmed without playing a test sound

未关闭 适合新手
#359 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
62/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
javascript
领域
frontend

调研方向

从 web/interview.js 中的 confirmOutput() 开始,追踪测试音调和测试语音的播放操作是如何记录的。检查浏览器测试设置,确定应在哪里添加回归测试:在任一播放开始前,确认操作应不可用;播放开始后,确认操作应可用。Issue 没有明确说明这一行为变更是否符合预期,因此在实现之前请先确认这一预期。

由索引模型根据 Issue 内容生成。

描述

Problem

During the media preflight, users can click "I heard it" without playing either the test tone or the test voice. The Sound status immediately changes to "Confirmed", even though no audio playback has been attempted.

Steps to reproduce

  1. Start a CodeTrial interview and open the "Check your setup" dialog.
  2. Do not click "Play test tone" or "Can't hear the tone?".
  3. Click "I heard it".
  4. Observe that the Sound status changes to "Confirmed".

Actual behavior

The audio output check can be confirmed without attempting either playback test.

Expected behavior

Ideally, users should attempt audio playback before confirming that they heard the sound.

Investigation

In web/interview.js, confirmOutput() sets outputConfirmed = true without checking whether either playback action has occurred.

Proposed improvement

Consider allowing users to confirm audio output only after successfully starting either the test tone or test voice playback.

A browser regression test could verify that confirmation is unavailable before playback and becomes available afterward.

Question

Is allowing audio confirmation before playback intentional, or should users first attempt one of the audio tests?

I would be happy to work on this improvement if the proposed behavior is acceptable.

主要语言
Rust
星标
160
派生
64
平均合并
1 天 11 小时
30 天内合并 PR
132

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

sysprog21/codetrial 的其他 Issue

查看 sysprog21/codetrial 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。