360 Secure SkillHub
360 安全技能中心

Assemblyai Transcriber

通过 python3 脚本调用 AssemblyAI 服务,把本地音频文件或音频 URL 转写为文本,支持说话人分离、逐句时间戳、100+ 语言与自动语言检测,可用 --json 输出原始结果;需要配置 AssemblyAI 密钥。

legionspace-hackathon
legionspace-hackathon
热度 90.97
最近更新 2026-07-08 06:35:21
分类:效率依赖:代码执行 / 第三方 API / 读写文件应用场景:会议纪要 / 文件转换

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add legionspace-hackathon/assemblyai-transcriber
Metadata
name
assemblyai-transcriber
description
Transcribe audio files with speaker diarization (who speaks when). Supports 100+ languages, automatic language detection, and timestamps. Use for meetings, interviews, podcasts, or voice messages. Requires AssemblyAI API key.
metadata
{"openclaw":{"requires":{"env":["ASSEMBLYAI_API_KEY"]}}}

AssemblyAI Transcriber 🎙️

Transcribe audio files with speaker diarization (who speaks when).

Features

  • ✅ Transcription in 100+ languages
  • ✅ Speaker diarization (Speaker A, B, C...)
  • ✅ Timestamps per utterance
  • ✅ Automatic language detection
  • ✅ Supports MP3, WAV, M4A, FLAC, OGG, WEBM

Setup

  1. Create AssemblyAI account: https://www.assemblyai.com/
  2. Get API key (free tier: 100 min/month)
  3. Set environment variable:
export ASSEMBLYAI_API_KEY="your-api-key"

Or save to config file:

// ~/.assemblyai_config.json
{
  "api_key": "YOUR_API_KEY"
}

Usage

Transcribe local audio

python3 scripts/transcribe.py /path/to/recording.mp3

Transcribe from URL

python3 scripts/transcribe.py https://example.com/meeting.mp3

Options

python3 scripts/transcribe.py audio.mp3 --no-diarization  # Skip speaker labels
python3 scripts/transcribe.py audio.mp3 --json            # Raw JSON output

Output Format

## Transcript

*Language: EN*
*Duration: 05:32*

**Speaker A** [00:00]: Hello everyone, welcome to the meeting.
**Speaker B** [00:03]: Thanks! Happy to be here.
**Speaker A** [00:06]: Let's start with the first item...

Pricing

  • Free Tier: 100 minutes/month free
  • After: ~$0.01/minute

Tips

  • For best speaker diarization: clear speaker changes, minimal overlap
  • Background noise is filtered well
  • Multi-language auto-detection works reliably

Author: xenofex7 | Version: 1.1.0