Skip to content
Back to skills

Asr Python Api

ASecurity

"Use WhisperX's Python API for ASR model loading, audio arrays,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
toolspythonapibackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill asr-python-api --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Asr Python Api?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Asr Python Api
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-asr-python-api/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-asr-python-api)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: asr-python-api
description: "Use WhisperX's Python API for ASR model loading, audio arrays,
  VAD-batched transcription, progress callbacks, local cache use, and
  device/memory tuning."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 2-Clause
---

# WhisperX ASR Python API

Use this sub-skill when a task needs WhisperX through Python code rather than the `whisperx` command line: importing the package, loading ASR models, representing audio as paths or NumPy arrays, running VAD-batched transcription, reporting progress, using local model caches, or choosing device/compute/memory settings.

Do **not** use this sub-skill for:

- CLI flag catalogs or command construction; route to `../transcription-cli/`.
- Forced alignment, word/character timestamps, or alignment models; route to `../alignment-timestamps/` after ASR segments exist.
- Diarization or speaker labels; route to `../diarization-speakers/` after ASR or alignment results exist.
- Rendering JSON/SRT/VTT/TXT/TSV/Audacity files; route to `../outputs-subtitles/` after result dictionaries exist.

## Read first

- [`references/api-reference.md`](references/api-reference.md) — use when you need verified Python signatures, return schemas, `TranscriptionResult` fields, audio constants, or ASR/VAD option names.
- [`references/workflows.md`](references/workflows.md) — use when you need self-contained Python recipes for path audio, cached NumPy-array transcription, progress callbacks, and memory-conscious runs.
- [`references/model-and-backend-notes.md`](references/model-and-backend-notes.md) — use before choosing `device`, `compute_type`, `batch_size`, `download_root`, `local_files_only`, VAD method, language, or cache behavior.
- [`references/troubleshooting.md`](references/troubleshooting.md) — use when imports, ffmpeg audio loading, model cache/downloads, CUDA/compute type, low memory, CPU slowness, language detection, `suppress_numerals`, or cache-only operation fails.

## Safe bundled helpers

- [`scripts/inspect_whisperx_api.py`](scripts/inspect_whisperx_api.py) — run for a no-download import/signature report, public lazy API presence, package version, and torch CUDA availability. It intentionally does not call `load_model` or `transcribe`.
- [`scripts/check_audio_loading.py`](scripts/check_audio_loading.py) — run for a tiny generated-WAV `whisperx.load_audio` smoke check. It writes only to a temporary directory and catches missing `ffmpeg`.

## Operating facts

- Distribution/package version covered by this skill: `whisperx 3.8.7rc1`; import name: `whisperx`.
- Supported Python range from package metadata: `>=3.10,<3.14`.
- Public top-level functions such as `whisperx.load_model` and `whisperx.load_audio` are lazy wrappers; use the source signatures in the API reference for real arguments.
- Full ASR execution may download model weights unless the caller intentionally uses `local_files_only=True` with a populated cache. The bundled helpers are safe by default and do not run model inference.

## Minimal routing pattern

1. Inspect the runtime surface with `python scripts/inspect_whisperx_api.py` if the environment is unknown.
2. For path audio, confirm `ffmpeg` or run `python scripts/check_audio_loading.py`; for already-decoded audio, provide a mono `float32` NumPy array sampled at 16 kHz.
3. Load ASR with `whisperx.load_model(...)`, choosing cache and backend settings from `model-and-backend-notes.md`.
4. Call `model.transcribe(audio, ...)` and treat the returned object as `TranscriptionResult`: `{"segments": [...], "language": "..."}`.
5. Route any post-ASR alignment, diarization, or file rendering to the sibling sub-skills above.

Files in this skill

  • SKILL.md3.6 KB
  • references/api-reference.md10.5 KB
  • references/model-and-backend-notes.md6.1 KB
  • references/troubleshooting.md6.5 KB
  • references/workflows.md7.3 KB
  • scripts/check_audio_loading.py5.4 KB
  • scripts/inspect_whisperx_api.py7.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.