360 Secure SkillHub
360 安全技能中心

AIML Voice Transcript

这是调用AIMLAPI语音转写接口的技能,核心功能含任务排队、轮询结果、自动MIME类型检测,支持指定模型、设置轮询间隔等参数。典型场景为用户提供音频消息或本地音频文件时进行转写,输入支持ogg、mp3、wav等格式,输出可直接获取或保存为文本。需依赖Python3,且需配置AIMLAPI_API_KEY环境变量。

aimlapihello
aimlapihello
热度 57.02
最近更新 2026-05-11 17:27:32
分类:效率依赖:代码执行 / 第三方 API应用场景:文件转换

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add aiml-voice
Metadata
name
aimlapi-voice
description
Transcribe audio files (ogg, mp3, wav, etc.) using AIMLAPI. Use when the user provides audio messages or local audio files. Provides a reliable Python script with retries and polling.
metadata
{"openclaw":{"emoji":"🎙️","requires":{"bins":["python"],"env":["AIMLAPI_API_KEY"]},"primaryEnv":"AIMLAPI_API_KEY"}}

AIMLAPI Voice Transcription

Overview

A robust skill for transcribing audio via AIMLAPI's specialized speech-to-text endpoints. It handles queuing, polling for results, and automatic MIME-type detection.

Quick Start

# Set your API key first (if not in env)
# export AIMLAPI_API_KEY="your-key-here"

# Transcribe a file
python {baseDir}/scripts/transcribe.py path/to/audio.ogg

Tasks

Process Voice Messages

When an audio file is received, use this script to extract the text.

python {baseDir}/scripts/transcribe.py <file_path> \
  --model "#g1_whisper-medium" \
  --verbose

Arguments

  • file: (Required) Path to the audio file.
  • --model: Model ID (default: #g1_whisper-medium).
  • --out: Path to save the transcript text.
  • --poll-interval: Seconds between status checks (default: 5).
  • --max-wait: Stop waiting after N seconds (default: 300).

Dependencies

  • Python 3
  • AIMLAPI_API_KEY set in environment or provided via --apikey-file.