fix(media-lab): 串行化普通扬声器播放与麦克风录音 - #60
Merged
Merged
Conversation
让 SDK Test Bench 的服务端和浏览器将普通扬声器、麦克风视为同一组共享音频资源。任一方向运行或等待期间,另一方向立即禁用并在跨标签页请求时返回 busy,避免触发设备 audio runtime 抢占。 补充资源策略与并发回归测试,并更新媒体资源租约文档。媒体实验室 Python 测试 75 项、浏览器测试 65 项通过,mypy 检查 86 个源码文件通过。
Contributor
Author
|
配套固件 orulink-ai/WatcheRobot_esp32#152 已完成 Mac 实机并发验收:两个普通音频方向均会由固件安全返回 busy,先运行方向完整结束。Test Bench 本 PR 进一步在浏览器和服务端提前串行化请求,避免正常 UI 操作触发该 busy 错误。直接相关测试:Python 75/75、JavaScript 65/65、mypy 86 个源码文件通过。当前 SDK CI 红灯继承自主分支已有的 Daemon 子进程/runner 失败(main 最近一次 run 32017892235 同样失败)。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题\n\nSDK Test Bench 把普通扬声器播放与麦克风录音当成独立资源,允许两个操作重叠,进而触发设备共享 audio runtime 的抢占。\n\n## 修复\n\n- 服务端让播放和录音同时获取 microphone、speaker 两把资源锁,覆盖跨标签页并发\n- 浏览器本地操作启动时立即保留两个资源,禁用冲突入口\n- 资源策略在任一普通音频方向占用时同时禁用播放与录音\n- 相机、云台、灯光、动画以及 video-only RTC 的独立并发能力保持不变\n- 更新媒体租约文档与并发回归测试\n\n## 验证\n\n- SDK Media Lab Python 测试:75/75 通过\n- 浏览器 JavaScript 测试:65/65 通过\n- mypy:86 个源码文件无错误\n- 仓库全量 pytest:775 通过、11 项既存 macOS/运行环境失败,与本次修改文件无关\n\n## 配套固件\n\n- orulink-ai/WatcheRobot_esp32#152