计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
faster-whisper【效率与协作】Use the faster-whisper package for CTranslate2-backed Whisper transcription, model selection, CPU/CUDA setup, audio utilities, VAD, timestamps, and conversion guidance.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task involves faster-whisper, CTranslate2 Whisper ASR,
speech-to-text transcription, batched audio inference, word timestamps, VAD,
Whisper model aliases, local CTranslate2 model directories, or CPU/CUDA runtime
troubleshooting for this package.
faster-whisper is a Python reimplementation of OpenAI Whisper inference using
CTranslate2. It exposes a small Python API centered on WhisperModel and
BatchedInferencePipeline rather than a package-owned command-line interface.
Install the package in the target runtime:
pip install faster-whisper
For a source checkout, use editable install only when developing that checkout:
pip install -e .
Run the minimal import check:
python - <<'PY'
import faster_whisper
from faster_whisper import WhisperModel, available_models
print(faster_whisper.__version__)
print(available_models()[:5])
PY
For environment diagnostics, run the bundled helper:
python scripts/check_install.py
Route detailed transcription work to sub-skills/transcription/SKILL.md.
references/repo-routing-metadata.json is structured metadata used by the
managed repo-skills router importer; it is not a human workflow guide.| Sub-skill | Use when | Main outputs |
|---|---|---|
| transcription | The task asks for ASR/transcription, batched inference, language detection, translation, word timestamps, VAD, hotwords, clip timestamps, stereo decoding, or segment output handling. | API recipes, transcription workflows, troubleshooting, and a configurable transcription helper. |
device="cuda" and an appropriate compute_type.WhisperModel with the local CTranslate2 model directory.from faster_whisper import WhisperModel, BatchedInferencePipeline
model = WhisperModel("tiny", device="cpu", compute_type="int8")
segments, info = model.transcribe("audio.mp3", language="en")
for segment in segments: # transcription starts when iterated
print(segment.start, segment.end, segment.text)
Use the transcription sub-skill for option details before writing production code, especially around generator consumption, batched defaults, VAD, timestamps, and CUDA/CPU compute types.
This is a user-facing operating skill, not a maintainer checklist. It does not
cover release publishing, linting policy, or exhaustive benchmark reproduction.
It also does not replace CTranslate2, Hugging Face Hub, PyAV, or ONNX Runtime
documentation; it records how faster-whisper uses those dependencies for the
package workflows above.