asr
Transcribe audio files to text using local speech recognition. Triggers on: "转录", "transcribe", "语音转文字", "ASR", "识别音频", "把这段音频转成文字". --- ## When to Use - User wants to transcribe an audio file to text - User provides an audio file path and asks for transcription - User says "转录", "识别", "transcribe", "语音转文字" ## When NOT to Use - User wants to synthesize speech from text (use `/tts`) - User wants to create a podcast or explainer (use `/podcast` or `/explainer`) ## Purpose Transcribe audio files to text using `coli asr`, which runs fully offline via local speech recognition models. No API key required. Supports Chinese, English, Japanese, Korean, and Cantonese (sensevoice model) or English-only (whisper model). Run `coli asr --help` for current CLI options and supported flags. ## Hard Constraints - No shell scripts. Use direct commands only. - Always read config following `shared/config-pattern.md` before any interaction - Follow `shared/common-patterns.md` for interaction patterns - Never ask more than one question at a time <HARD-GATE> Use the AskUserQuestion tool for every multiple-choice step — do NOT print options as plain text. Ask one question at a time. Wait for the user's answer before proceeding. After all parameters are collected, summarize and ask the user to confirm before running any transcription. </HARD-GATE> ## Interaction Flow ### Step 0: Prerequisites Check Before config setup, silently check the environment: ```bash COLI_OK=$(which coli 2>/dev/null && echo yes || echo no) FFMPEG_OK=$(which ffmpeg 2>/dev/null && echo yes || echo no) MODELS_DIR="$HOME/.coli/models" MODELS_OK=$([ -d "$MODELS_DIR" ] && ls "$MODELS_DIR" | grep -q sherpa && echo yes || echo no) ``` | Issue | Action | |-------|--------| | `coli` not found | Block. Tell user to run `npm install -g @marswave/coli` first | | `ffmpeg` not found | Warn (WAV files still work). Suggest `brew install ffmpeg` / `sudo apt install ffmpeg` | | Models not downloaded | Inform user: first transcription w
Changelog: Source: GitHub https://github.com/marswaveai/skills
No comments yet. Be the first one!