open-edge-platform/edge-ai-libraries/audio-analyzer-dev
Claude Code and agent skill by open-edge-platform/edge-ai-libraries
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Build, configure, deploy, and operate the Audio Analyzer microservice. Use this skill when a developer or operator wants to: run the service with Docker Compose or on the host; build the image from source; select an ASR provider and device (openai/openvino/whispercpp on CPU/GPU/NPU); enable speaker diarization or voice sentiment; wire Docker volumes, device passthrough (`/dev/dri`, `ACCEL_MOUNT_PATH`); tune `config.yaml` and `AUDIO_ANALYZER__...` overrides; run the root-level or tiered test sui…
Install
npx vskill@latest install open-edge-platform/edge-ai-libraries/audio-analyzer-devSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as open-edge-platform/edge-ai-libraries/audio-analyzer-dev.
Audio Analyzer Developer Skill
Help developers and operators build, configure, deploy, and troubleshoot the Audio Analyzer microservice.
Codebase root:microservices/audio-analyzer/
When to Use
- Deploying the service with Docker Compose (prebuilt image or local build)
- Running the service directly on the host with a Python virtualenv
- Choosing and validating an ASR provider/device combination
- Enabling speaker diarization (Hugging Face gated model + token) or voice
sentiment analysis
- Wiring GPU (
/dev/dri) or NPU (ACCEL_MOUNT_PATH) device passthrough - Debugging a service that will not start, fails health checks, reports the
wrong devices, or raises permission errors on mounted volumes
- Running the root-level lightweight tests or the tiered functional suite
(tier1/tier2/tier3), including the Tier-3 Docker build verification tests
- Inspecting a running deployment's active model/device or last-call
latency via the undocumented debug endpoints
Quick Facts
| Fact | Value | |||
|---|---|---|---|---|
| Default port | 8010 (standalone and Docker both bind here; VSS Compose expects 8000 — override via AUDIO_ANALYZER_SERVER_PORT) | |||
| Config file | config.yaml, same file for standalone and container runs | |||
| Config overrides | AUDIO_ANALYZER__<SECTION>__<KEY>=<value> environment variables | |||
| Container user | UID/GID 1000:1000 (baked into the image — do not change) | |||
| Named volumes | audio_analyzer_models, audio_analyzer_chunks, audio_analyzer_storage, audio_analyzer_cache | |||
| ASR provider/device matrix | openai: CPU only · whispercpp: CPU only · openvino: CPU \ | GPU \ | NPU | |
| Health check | GET /health → {"status": "ok"} | |||
| Debug endpoints | GET /v1/model-info (active model/provider/device), GET /v1/performance (last ASR call latency) — not in the published API reference | |||
| Test suites | Root-level tests/*.py (unmarked, no model weights/GPU needed) and tiered tests/functional/ (tier1/tier2/tier3) — different invocations, see below |
Reference Lookup
| Reference | When to read | |
|---|---|---|
| deployment-architecture.md | Compose service topology, volumes, device passthrough, config load order, image build vs. pull | |
| model-and-device-config.md | ASR provider/device matrix, precision/weight_format, diarization and sentiment setup, per-request device override | |
| troubleshooting-deployment.md | Permission errors, GPU/NPU visibility, whisper-large NPU limitation, slow first startup | |
| testing-and-debugging.md | Both test suites' correct invocations, the Tier-3 Docker build suite, debug endpoints, startup failure diagnosis |
Example Prompts
| File | Covers | |
|---|---|---|
| examples-prompts/docker-compose-deploy.md | Standing up the service with Docker Compose and verifying health | |
| examples-prompts/enable-gpu-npu-acceleration.md | Configuring OpenVINO GPU/NPU device passthrough end-to-end | |
| examples-prompts/enable-diarization-and-sentiment.md | Turning on speaker diarization and voice sentiment analysis | |
| examples-prompts/run-tests-and-debug.md | Running the correct test suite and diagnosing a failing deployment |
Architecture Summary
Procedure: Deploying with Docker Compose
Read deployment-architecture.md first.
- From
microservices/audio-analyzer/, reviewconfig.yamland edit the
models.asr, sentiment, and audio_preprocessing sections as needed — this file is bind-mounted, so edits apply on docker compose restart.
- Copy
.env.exampleto.envand setREGISTRY,RELEASE_TAG, and (for
GPU) RENDER_GID and (for NPU) ACCEL_MOUNT_PATH.
- Start the service:
``bash docker compose pull # or: docker compose build docker compose up -d ``
- Verify:
``bash curl --noproxy '*' http://127.0.0.1:8010/health ``
[!IMPORTANT]The container always runs as UID/GID1000:1000. Named volumes areinitialized with that ownership on first run — do not overrideuser:inCompose, and do not reuse volumes created by an older root-only run (seethe troubleshooting reference for the reset procedure).
Procedure: Choosing and Validating an ASR Provider/Device
Read model-and-device-config.md first.
The supported provider/device matrix is fixed:
| Provider | CPU | GPU | NPU | |
|---|---|---|---|---|
openai | ✅ | ❌ | ❌ | |
whispercpp | ✅ | ❌ | ❌ | |
openvino | ✅ | ✅ | ✅ |
Set models.asr.provider and models.asr.device in config.yaml. For GPU or NPU, use the Docker Compose path — it is the verified configuration for accelerator visibility (/dev/dri is passed through by default; NPU needs ACCEL_MOUNT_PATH). Running directly from a host .venv without the full Intel GPU/NPU runtime stack typically reports only CPU in ov.Core().available_devices and fails fast at startup instead of silently falling back.
[!IMPORTANT]whisper-largeis confirmed unsupported for inference on NPU (Level ZeropfnAppendGraphExecutefailure on current driver/firmware) even though itloads and compiles. Usewhisper-tiny/base/small/mediumon NPU, ormovewhisper-largetoCPU/GPU.
Procedure: Building From Source or Running Standalone
- Docker build:
docker compose build && docker compose up -d(tags the
same ${REGISTRY}/audio-analyzer:${RELEASE_TAG} so later up calls reuse the local build), or docker build -t audio-analyzer:local . directly.
- Standalone: install host packages (
ffmpeg,alsa-utils,libsndfile1),
create a venv, pip install -r requirements.txt, then python main.py (default bind 127.0.0.1:8010; override with AUDIO_ANALYZER_SERVER_HOST / AUDIO_ANALYZER_SERVER_PORT).
Procedure: Running Tests and Debugging the Codebase
Read testing-and-debugging.md first — this codebase has two independently organized test suites, and using the wrong invocation silently runs zero tests.
[!IMPORTANT]Suite A's tests have notier1/tier2/tier3markers at all — never adda-mfilter when running them, or every test is excluded. Suite B'sconftest.pystubs heavy ML libraries (torch,openvino,pyannote,whisper, etc.) intosys.modulessotier1tests can import app codewithout the full ML stack installed; an already-installed real packagealways takes precedence.
For a running deployment, check the active model/device and last-call latency without digging through logs:
If a container exits immediately after startup, grep logs for the exact phrase "ASR model is unavailable" first — it distinguishes a model acquisition failure (ensure_model) from a model loading failure (preload_models) before you investigate further.
Procedure: Debugging a Deployment Failure
Read troubleshooting-deployment.md for the full catalog. Quick diagnosis checklist:
Common root causes, roughly in likelihood order:
- Config/device mismatch (e.g.
provider: openaiwithdevice: GPU) — fails
startup validation immediately with a clear error.
- NPU/GPU runtime not visible because the service was started via host
.venv instead of Docker Compose.
ACCEL_MOUNT_PATHnot set (or pointing at the wrong node) before
docker compose up.
- Named volumes initialized by an earlier root-only run — permission denied
under /app/audio_analyzer/storage/....
- Diarization enabled without an accepted Pyannote license / valid
HF_TOKEN
— the service does not crash, it logs a warning and disables diarization for that session only.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingmicroservices/audio-analyzer/.github/skills/audio-analyzer-dev/SKILL.md
Popularity
- Repository stars
- 174
- Repository forks
- 157
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/open-edge-platform/edge-ai-libraries/audio-analyzer-dev)