音频分类工具

OpenClaw是一款用于音频分类的工具,支持在WhatsApp、Telegram、Slack、Discord和Teams等平台上进行声音智能分析。

  • by Badajoz95
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 Badajoz95/h-ear-openclaw

使用说明

@h-ear/openclaw

OpenClaw技能 H-ear世界 音频分类。WhatsApp、Telegram、Slack、Discord和Teams中的声音智能。

安装

npm install @h-ear/openclaw

或者通过ClawHub搜索 h-ear 或粘贴 https://github.com/Badajoz95/h-ear-openclaw.

设置

集 HEAR_API_KEY 到您的H-ear Enterprise API密钥:

export HEAR_API_KEY=ncm_sk_your_key

命令

命令 描述
classify <url> 对URL中的音频进行分类
classify batch <url1> <url2>... 批量分类多个音频URL
sounds [search] 列出支持的声音类别(521+)
usage 显示API使用情况统计信息
jobs [last N] 列出最近的分类工作
job <id> 显示详细的作业结果
alerts on <sound> 通过webhook注册简单的声音警报
alerts off <sound> 删除声音警报
webhook list 列出企业webhook注册
webhook detail <id> 带有过滤器配置的Webhook详细信息
webhook create <url> 创建企业webhook(返回一次签名密钥)
webhook ping <id> 测试webhook连接
webhook deliveries <id> 交付审计跟踪
health 检查API状态

示例

在任何连接的消息通道中:

> classify https://example.com/city-noise.mp3

**Audio Classification Complete**
Duration: 45.2s | 15 noise events detected

| Sound      | Confidence | Category |
|------------|-----------|----------|
| Car horn   | 94%       | Vehicle  |
| Speech     | 87%       | Human    |
| Dog bark   | 72%       | Animal   |

程序化使用

import { createSkill, classifyCommand } from '@h-ear/openclaw';

const { client } = createSkill();
const result = await classifyCommand(client, 'https://example.com/audio.mp3');
console.log(result);

支持格式

MP3、WAV、FLAC、OGG、M4A

获取API密钥

访问 h-ear.world 以创建帐户并生成API密钥。

许可证

麻省理工学院