微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🎙️

精准语音转文字,会议笔记一键生成

OATDA Transcribe Audio · v1.1.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
效率 安全 A 级 作者 devcsde 公开目录收录
709 下载 0 安装 2.9k 收藏 1 浏览

简介

基于 OATDA 统一音频 API 的语音转录技能,支持多模型语音识别、时间戳标记与字幕导出,为会议、播客、语音备忘录提供专业级转写服务。

原始描述

Transcribe audio to text using OATDA's unified audio API. Triggers when the user wants speech-to-text, transcription of meetings, podcasts, voice notes, subt...

通过你的 Agent 添加

安装目录:oatda-transcribe-audio/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/oatda-transcribe-audio/
Codex CLI~/.codex/skills/oatda-transcribe-audio/
DeepSeek Harness~/.agents/skills/oatda-transcribe-audio/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

OATDA Audio Transcription 是一款面向语音内容处理的 Agent 技能,通过调用 OATDA 统一音频 API 实现高质量的语音转文字功能。用户只需提供音频文件(支持本地文件上传或 Base64 编码),即可快速获取转录文本。技能默认采用 OpenAI Whisper-1 模型,同时支持通过 provider/model 格式灵活切换其他语音识别引擎。

API 调用支持两种主要方式:multipart/form-data 表单上传(推荐用于本地文件)和 JSON Base64 数据流(适用于已编码的音频数据)。最大支持 25MB 的音频文件,输出格式涵盖纯文本、JSON、SRT 字幕、VTT 字幕及带说话人分离的 diarized_json 等多种形态,满足会议记录、视频字幕、播客整理等多场景需求。

显著优点

多模型统一接口:通过 OATDA 平台聚合多家语音服务提供商,用户无需分别对接不同厂商 API,降低集成复杂度。技能内置智能模型映射,"whisper""transcription""speech to text"等常见表述均能自动路由至最优模型。

丰富的输出格式:除基础文本外,支持段落级(segment)和词级(word)时间戳,可生成 SRT/VTT 标准字幕文件,并可选配说话人分离(diarization)功能,极大简化后期编辑流程。

成本透明可控:API 返回包含详细的费用明细(inputCost/outputCost/totalCost),便于用户预估和管理转写成本。支持 temperature 调节和 prompt 注入,可针对专业术语、人名缩写等场景优化识别准确率。

灵活的认证机制:支持环境变量 OATDA_API_KEY 和本地配置文件 ~/.oatda/credentials.json 双轨认证,并内置安全校验(仅展示 API Key 前 8 位),兼顾便捷性与安全性。

潜在缺点与局限性

文件大小限制:25MB 的单文件上限对于长会议录音、高清播客等场景可能构成瓶颈,用户需预先进行音频分割或压缩处理,增加了额外的操作步骤。

依赖外部服务稳定性:转录质量与所选 provider 的服务状态强绑定,若 OpenAI 或其他后端服务出现延迟或中断,将直接影响用户体验。技能虽提供错误重试机制(429 状态码),但无法完全规避第三方依赖风险。

语言支持边界:虽然支持 ISO-639-1 语言代码指定,但 Whisper 等模型对低资源语言、方言及带口音语音的识别准确率仍有限,专业术语领域需配合 prompt 调优。

流式输出限制:stream 参数的支持情况因模型而异,并非所有 provider 都具备实时转写能力,长音频等待时间可能较长。

适合的目标群体

本技能尤其适合以下用户:

  • 知识工作者:需要将会议、访谈、讲座录音快速整理为可搜索文本的职场人士
  • 内容创作者:播客制作者、视频博主,需批量生成字幕文件或节目脚本
  • 科研与教育工作者:整理访谈数据、课堂录音、学术报告的研究人员和学生
  • 企业运营团队:处理客服录音、销售通话记录,进行合规审查与数据沉淀
  • 多语言团队:跨国企业需处理多语种会议内容,借助语言参数优化识别效果

使用风险说明

数据隐私风险:音频文件需上传至 OATDA 服务器及后端 provider 进行处理,敏感会议内容、个人隐私对话存在潜在的云端传输与存储暴露风险,建议避免处理机密级材料。

API 额度与计费风险:技能调用消耗 OATDA 账户 credits,高频使用可能导致额度快速耗尽(402 错误),生产环境需配置余额监控与告警机制。

工具链依赖风险:运行依赖 curl 和 jq 系统工具,在精简容器或特定操作系统环境中可能缺失,需提前验证环境完整性。

配置泄露风险:虽然技能内置 API Key 掩码逻辑,但用户若在命令行直接硬编码密钥或误操作打印环境变量,仍可能导致凭证泄露,建议严格遵循文档推荐的安全配置方式。

技能正文


name: oatda-transcribe-audio description: Transcribe audio to text using OATDA's unified audio API. Triggers when the user wants speech-to-text, transcription of meetings, podcasts, voice notes, subtitles, timestamps, or Whisper-style transcription through OATDA. homepage: https://oatda.com metadata: { "openclaw": { "emoji": "📝", "requires": { "bins": ["curl", "jq"], "env": ["OATDA_API_KEY"], "config": ["~/.oatda/credentials.json"] }, "primaryEnv": "OATDA_API_KEY", }, }

OATDA Audio Transcription

Transcribe audio files to text through OATDA's unified audio API.

API Key Resolution

All commands need the OATDA API key. Resolve it inline for each exec call:

export OATDA_API_KEY="${OATDA_API_KEY:-$(cat ~/.oatda/credentials.json 2>/dev/null | jq -r '.profiles[.defaultProfile].apiKey' 2>/dev/null)}"

If the key is empty or null, tell the user to get one at https://oatda.com and configure it.

Security: Never print the full API key. Only verify existence or show first 8 chars.

Model Mapping

User says Provider Model
whisper, whisper-1, openai whisper (default) openai whisper-1
transcription, speech to text, stt openai whisper-1

Default: openai / whisper-1 if no model specified.

If the user provides provider/model format directly (for example openai/whisper-1), split on /.

⚠️ Models change over time. If a model ID fails, query oatda-list-models with ?type=audio first.

Input Preparation

The transcription endpoint supports:

  • multipart/form-data with a local file upload
  • JSON with a base64 data URL in file
  • JSON with file_base64 for providers that support direct base64 payloads

Maximum audio file size is 25MB.

For local files, prefer multipart upload because it is simpler and avoids large JSON bodies.

Discovering Audio Model Parameters

export OATDA_API_KEY="${OATDA_API_KEY:-$(cat ~/.oatda/credentials.json 2>/dev/null | jq -r '.profiles[.defaultProfile].apiKey' 2>/dev/null)}" && \
curl -s -X GET "https://oatda.com/api/v1/llm/models?type=audio" \
  -H "Authorization: Bearer $OATDA_API_KEY" | jq '.audio_models[] | {id, supported_params}'

Look for:

  • audio_modes containing transcription
  • supported response_format values
  • optional timestamp, diarization, or streaming support

API Call (multipart)

export OATDA_API_KEY="${OATDA_API_KEY:-$(cat ~/.oatda/credentials.json 2>/dev/null | jq -r '.profiles[.defaultProfile].apiKey' 2>/dev/null)}" && \
curl -s -X POST "https://oatda.com/api/v1/llm/transcriptions" \
  -H "Authorization: Bearer $OATDA_API_KEY" \
  -F "provider=<PROVIDER>" \
  -F "model=<MODEL>" \
  -F "file=@<AUDIO_FILE>" \
  -F "response_format=json"

Alternative API Call (base64 JSON)

AUDIO_DATA_URL="data:audio/mpeg;base64,$(base64 -w 0 audio.mp3)"

export OATDA_API_KEY="${OATDA_API_KEY:-$(cat ~/.oatda/credentials.json 2>/dev/null | jq -r '.profiles[.defaultProfile].apiKey' 2>/dev/null)}" && \
curl -s -X POST "https://oatda.com/api/v1/llm/transcriptions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OATDA_API_KEY" \
  -d "$(jq -n \
    --arg provider \"<PROVIDER>\" \
    --arg model \"<MODEL>\" \
    --arg file \"$AUDIO_DATA_URL\" \
    '{provider: $provider, model: $model, file: $file, response_format: \"json\"}')"

Common Parameters

  • language: ISO-639-1 language code like en, de, fr
  • prompt: Context for names, acronyms, or domain-specific terms
  • response_format: json, text, srt, verbose_json, vtt, or diarized_json
  • temperature: 0 to 1
  • timestamp_granularities: word and/or segment
  • chunking_strategy: auto
  • hotwords: Provider-specific keyword hints
  • stream: true if supported by the selected model

Response Format

The API returns JSON like:

{
  "text": "The transcribed text...",
  "language": "en",
  "duration": 42.5,
  "segments": [],
  "words": [],
  "costs": {
    "inputCost": 0,
    "outputCost": 0.0001,
    "totalCost": 0.0001,
    "currency": "USD"
  }
}

Present the text field to the user. Include subtitles, segments, or words if the requested format includes them.

Error Handling

HTTP Status Meaning Action
401 Invalid API key Tell user to check their key
402 Insufficient credits Tell user to check balance
400 Bad request / model not supported Check model or file format and query oatda-list-models with type=audio
413 File too large Keep audio under 25MB or split it
429 Rate limited or monthly cap Wait briefly and retry once

Example

export OATDA_API_KEY="${OATDA_API_KEY:-$(cat ~/.oatda/credentials.json 2>/dev/null | jq -r '.profiles[.defaultProfile].apiKey' 2>/dev/null)}" && \
curl -s -X POST "https://oatda.com/api/v1/llm/transcriptions" \
  -H "Authorization: Bearer $OATDA_API_KEY" \
  -F "provider=openai" \
  -F "model=whisper-1" \
  -F "file=@meeting.mp3" \
  -F "response_format=json"

Notes

  • Endpoint: /api/v1/llm/transcriptions
  • Prefer multipart upload for local files
  • Use response_format=srt or vtt for subtitles
  • Use language to improve recognition when source language is known
  • Equivalent capability name: transcribe_audio
  • Related skills: oatda-generate-speech, oatda-translate-audio, oatda-list-models

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

content-mediaproductivityapiautomationdocs

同类 Skill