Funasr Transcribe Skill
by @limboinf
Use when the user needs local speech-to-text transcription for audio files, especially Chinese or mixed Chinese-English audio, without relying on cloud trans...
clawhub install funasr-transcribe-skillπ About This Skill
name: funasr-transcribe description: Use when the user needs local speech-to-text transcription for audio files, especially Chinese or mixed Chinese-English audio, without relying on cloud transcription APIs. homepage: https://github.com/limboinf/funasr-transcribe-skill metadata: clawdbot: emoji: "ποΈ" requires: env: [] files: ["README.md", "README.zh-CN.md", "LICENSE", "scripts/*"]
FunASR Transcribe
Local speech-to-text for audio files using FunASR. It is best suited to Chinese and mixed Chinese-English audio, runs on the local machine, and does not require a paid transcription API.
When to Use
.wav, .ogg, .mp3, .flac, or .m4a files into text.Do not use this skill when the user explicitly forbids local dependency installation or any network access for dependency/model download.
Quick Start
# Install dependencies and create a virtual environment
bash ~/.openclaw/workspace/skills/funasr-transcribe/scripts/install.shTranscribe an audio file
bash ~/.openclaw/workspace/skills/funasr-transcribe/scripts/transcribe.sh /path/to/audio.ogg
What It Does
~/.openclaw/workspace/funasr_env by default.funasr, torch, torchaudio, modelscope, and related dependencies..txt file.Models
damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorchdamo/speech_fsmn_vad_zh-cn-16k-common-pytorchdamo/punc_ct-transformer_zh-cn-common-vocab272727-pytorchExternal Endpoints
| Endpoint | Purpose | Data sent |
| --- | --- | --- |
| https://pypi.tuna.tsinghua.edu.cn/simple | Install Python packages during setup | Package names and installer metadata requested by pip |
| ModelScope and/or Hugging Face endpoints used by FunASR dependencies | Download model files on first run | Model identifiers and standard HTTP request metadata |
Security & Privacy
.txt file next to the source audio unless the write step fails.Model Invocation Note
Autonomous invocation is normal for this skill. If a user asks to transcribe local audio, an agent may install dependencies and run the helper scripts unless the user explicitly opts out of dependency installation or network access.
Trust Statement
By using this skill, package and model downloads may be fetched from third-party upstream sources such as the configured PyPI mirror and model hosting providers. Only install and use this skill if you trust those upstream sources.
Troubleshooting
python3 not found: install Python 3.7+ and rerun scripts/install.sh.scripts/install.sh --force to recreate the virtual environment.scripts/transcribe.py and change device="cpu" to a CUDA device after installing the correct CUDA build.β‘ When to Use
π‘ Examples
# Install dependencies and create a virtual environment
bash ~/.openclaw/workspace/skills/funasr-transcribe/scripts/install.shTranscribe an audio file
bash ~/.openclaw/workspace/skills/funasr-transcribe/scripts/transcribe.sh /path/to/audio.ogg
π Tips & Best Practices
python3 not found: install Python 3.7+ and rerun scripts/install.sh.scripts/install.sh --force to recreate the virtual environment.scripts/transcribe.py and change device="cpu" to a CUDA device after installing the correct CUDA build.