计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
package-transcription【效率与协作】Use WeNet as an installed Python package or console CLI for speech transcription, model loading, model-directory checks, and safe backend selection.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to transcribe audio with the installed
wenet package, load a pretrained or local WeNet model from Python, validate a
local model directory, or diagnose the user-facing package CLI.
Confirm the package imports before planning any download or inference:
python - <<'PY'
import wenet
from wenet import load_model, load_feature, load_tokenizer
print("WeNet package import OK")
PY
For CLI tasks, inspect the installed console entry point:
wenet --help
For local model directories, run the bundled checker before loading the model:
python sub-skills/package-transcription/scripts/check_wenet_package.py \
--model-dir /path/to/model_dir --device cpu
wenet command, CLI flags, alignment, context biasing, device
selection, or punctuation options.--device cuda/--device npu fails, or audio/alignment/context
options behave unexpectedly.import wenet) for simple transcription and
model loading. Do not rely on source-checkout scripts for package tasks.load_model() with a
built-in name.train.yaml, final.pt, and
units.txt; global_cmvn is optional and used when present.device="cpu" is the safest default. device="cuda" and device="npu"
require matching framework/runtime support in the user's environment; the CLI
accepting the flag does not prove the backend exists.