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.

Ir a la instalación

Datos de origen

Repositorio
rapidaai/voice-ai
Última actividad en el origen
23 de agosto de 2026 a las 07:23
Idioma detectado de SKILL.md
inglés
Estrellas
733
Forks
120

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Explorador de archivos
6 archivos

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
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. ## 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` - `./skills/noise-reduction-integration/scripts/validate.sh --check-diff --provider <provider>` ## References - `references/checklist.md` - `references/noise-reduction-checklist.md` - `examples/sample.md`
Ver en GitHub