返回顶部
a

audio-command-executor音频指令执行器

Processes inbound audio files, transcribes them, and answers to resulting texts. Converts non-WAV inputs to WAV before transcription.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
130
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

audio-command-executor

技能名称:audio-command-executor

详细描述:

主体

触发器

  • - 进入 /home/sirko/.openclaw/media/inbound/ 目录的入站音频文件(例如 .ogg、.mp3 等)

输入

  • - 输入:音频文件路径(例如 /home/sirko/.openclaw/media/inbound/aufnahme.ogg)

工作流程
1) 格式标准化

  • - 如果输入不是 .wav 格式,则转换为 WAV:

ffmpeg -i {inputfile} -ar 16000 -ac 1 -c:a pcms16le {input_file}.wav
注意:目标文件名为 input_file.wav(示例:/.../aufnahme.ogg → /.../aufnahme.wav)

2) 转录

  • - 转录 WAV 文件:

/home/sirko/.openclaw/workspace/whisper.cpp/build/bin/whisper-cli -l DE -np -m /home/sirko/.openclaw/workspace/whisper.cpp/models/ggml-small.bin -f {inputwavfile}
  • - 捕获转录文本(标准输出)

3) 执行

  • - 将转录文本中产生的问题或指令,直接以德语回答,如同通过聊天输入的普通文本一样

输出

  • - 直接处理文本,如同通过文本私信接收
  • 出现错误时:提供清晰的错误信息并说明原因(例如文件未找到、转录为空、执行失败)

示例流程

  • - inbound/file.ogg → 转换 → /tmp/file.wav → whisper → 法国的首都是什么 → 确定答案并显示

备注

  • - 始终以德语回答

测试/测试场景

  • - 使用 file.ogg(4秒)进行测试 → 检查转录结果
  • 使用已有的 WAV 文件进行测试 → 直接转录
  • 使用损坏的文件进行测试 → 给出适当的错误信息

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 audio-command-executor-1775929580 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 audio-command-executor-1775929580 技能

通过命令行安装

skillhub install audio-command-executor-1775929580

下载

⬇ 下载 audio-command-executor v1.0.0(免费)

文件大小: 1.57 KB | 发布时间: 2026-4-12 09:04

v1.0.0 最新 2026-4-12 09:04
audio-command-executor 1.0.2

- Added automatic conversion of non-WAV audio files (e.g., .ogg, .mp3) to WAV format before transcription.
- Improved error handling with clearer messages for issues like missing files or empty transcriptions.
- Now processes transcribed audio commands as if they were normal chat text, always responding in German.
- Updated documentation with a detailed workflow, example usage, and specific test cases.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部