Skip to main content

noise-reduction-integration

Add or modify microphone noise-reduction providers in assistant-api with denoiser factory wiring, packet safety, and option/UI compatibility.

来源信息

仓库
rapidaai/voice-ai
最近来源活动
2026年9月26日 18:58
检测到的 SKILL.md 语言
英语
星标
737
分支
121

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
6 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
noise-reduction-integration
description
Add or modify microphone noise-reduction providers in assistant-api with denoiser factory wiring, packet safety, and option/UI compatibility.
# Noise Reduction Integration Skill ## Mission Integrate denoisers that reduce background noise while preserving speech intelligibility, timing stability, and packet ordering. ## Inputs expected from user 1. Provider/runtime type: native library, SDK, or cloud API. 2. Input audio assumptions: sample rate, channels, encoding. 3. Target tradeoff: stronger suppression vs speech naturalness. If missing: - Assume mono LINEAR16 internal audio path. - Preserve existing frame/chunk cadence and low-latency defaults. ## Hard boundaries In scope: - `api/assistant-api/internal/denoiser/internal/<provider>/...` - `api/assistant-api/internal/denoiser/denoiser.go` - `api/assistant-api/internal/type/packet.go` only if packet compatibility requires it - provider option wiring for `microphone.denoising.provider` in API/UI config paths Out of scope: - STT/TTS model internals - EOS/VAD algorithms - telephony transport adapters unless required by codec compatibility ## Packet contract Input: - `DenoiseAudioPacket` Required behavior: - emit denoised audio without changing packet ordering - preserve timestamps/chunk cadence expected by downstream STT/VAD/EOS - avoid generating duplicate or empty audio packets Optional diagnostics: - conversation/debug events with denoiser provider and processing stats ## Implementation workflow 1. Pick nearest baseline (`rn_noise`, `krisp`). 2. Implement provider package under `internal/<provider>/`. 3. Register provider in denoiser factory switch. 4. Handle init/close lifecycle and fallback behavior safely. 5. Wire provider option/config in API and UI provider config where needed. 6. Add provider tests for default selection, invalid provider fallback, and chunk integrity. ## Lifecycle integration - `development-lifecycle` owns tier selection and the repository-level change contract. - Use `change-analysis` when ownership, consumers, or blast radius is not already proven. - This skill owns its domain evidence and boundaries; `developing-change` owns implementation discipline. - Use `debugging` for unexplained failures and `writing-documentation` for documentation changes. - Use `reviewing-change` for independent review and `responding-to-review` for its findings. - Use `preparing-delivery` only when the user explicitly requests a delivery action. ## Governed lifecycle - Classify work as Fast, Standard, or Governed using `DEVELOPMENT_PROCESS.md`; use the full gated lifecycle only for Governed work. - This skill operates only in its assigned phase and path ownership; it may not approve its own plan or code review. - Governed implementation starts only from a coordinator-attested approved plan; Fast and Standard work follows its lighter documented lifecycle. - Return changed-file and verification evidence to the coordinator, then route the complete verified diff to the read-only `code-reviewer`. ## Validation commands - `go test ./api/assistant-api/internal/denoiser/...` - `go test -run TestGetDenoiser ./api/assistant-api/internal/denoiser/...` - `cd ui && yarn test providers` - `./.codex/skills/noise-reduction-integration/scripts/validate.sh --check-diff --provider <provider>` ## References - `references/checklist.md` - `references/noise-reduction-checklist.md` - `examples/sample.md`
在 GitHub 查看