360 Secure SkillHub
360 安全技能中心

qwen-asr

基于 Qwen3-ASR 的本地语音转文字 Skill,CPU 运行,无需 API Key 或云端。提供安装脚本下载二进制与约 1.5GB 模型,支持 wav、mp3、m4a 等格式,非 WAV 经 ffmpeg 转换,可用静音、语言、分段与流式等参数,仅支持 macOS 与 Linux。

huanglizhuo
huanglizhuo
热度 60.73
最近更新 2026-09-12 15:29:00
分类:效率依赖:代码执行 / 读写文件 / 第三方 API应用场景:文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add qwen-asr-local
Metadata
name
qwen-asr
description
Local speech-to-text using Qwen3-ASR (CPU-only, no API key, no cloud). Use when: (1) a voice message or audio file needs transcription, (2) user asks to transcribe audio, (3) speech-to-text is needed. Supports offline, segmented, and streaming modes. macOS and Linux only.
metadata
{"openclaw":{"emoji":"🗣️","os":["darwin","linux"],"requires":{"bins":["qwen-asr"]}}}

qwen-asr

Local, CPU-only speech-to-text powered by Qwen3-ASR. No API key or cloud needed.

Install

Run the install script to download the pre-built binary and model:

bash {baseDir}/scripts/install.sh

This will:

  1. Download the qwen-asr binary for your platform from GitHub Releases
  2. Download the qwen3-asr-0.6b model (~1.5 GB) from HuggingFace

Usage

Transcribe an audio file

bash {baseDir}/scripts/transcribe.sh <audio-file>

Supports any audio format: wav, mp3, m4a, ogg, flac, opus, webm, aac, etc. Non-WAV files are automatically converted via ffmpeg (must be installed).

Or call qwen-asr directly (WAV only):

qwen-asr -d ~/.openclaw/tools/qwen-asr/qwen3-asr-0.6b -i <audio-file> --silent

From stdin

cat audio.wav | qwen-asr -d ~/.openclaw/tools/qwen-asr/qwen3-asr-0.6b --stdin --silent

Common parameters

Flag Description
--silent Print only transcription text (no progress)
--language <lang> Force language (e.g., zh, en)
-S <seconds> Segmented mode — split audio into chunks
--stream Streaming mode — process audio in real time
--stdin Read audio from stdin

Model path

Default model directory: ~/.openclaw/tools/qwen-asr/qwen3-asr-0.6b