SuperAPI AI 工具集

speech-to-text

通用与其它

查看项目

更新于 10-16 05:57

技能介绍

用途

该技能用于将音频转写为文本,通过 inference.sh 命令行工具(belt CLI)调用云端模型完成。适合需要批量或脚本化处理音频转写的用户。

主要能力

  • 支持三种模型:
    • ElevenLabs Scribe v2(App ID:elevenlabs/stt):98%+ 准确率,支持说话人分离(diarization),支持 90+ 语言。
    • Fast Whisper V3(App ID:infsh/fast-whisper-large-v3):适合快速转写。
    • Whisper V3 Large(App ID:infsh/whisper-v3-large):追求最高准确率。
  • 支持时间戳输出(timestamps 参数)。
  • 支持翻译任务(task 设为 translate,可翻译为英文)。
  • 支持从视频中先提取音频再转写。
  • 支持生成视频字幕的工作流(结合 caption-videos 应用)。
  • Whisper 支持 99+ 语言,包括英语、西班牙语、法语、德语、意大利语、葡萄牙语、中文、日语、韩语、阿拉伯语、印地语、俄语等。

使用方式

需先安装 inference.sh CLI(belt)。安装技能命令:

npx skills add belt-sh/cli

登录:

belt login

基础转写示例:

belt app run infsh/fast-whisper-large-v3 --input '{"audio_url": "https://audio.mp3"}'

带时间戳的转写:

belt app sample infsh/fast-whisper-large-v3 --save input.json

# {
#   "audio_url": "https://podcast.mp3",
#   "timestamps": true
# }

belt app run infsh/fast-whisper-large-v3 --input input.json

翻译为英文:

belt app run infsh/whisper-v3-large --input '{
  "audio_url": "https://french-audio.mp3",
  "task": "translate"
}'

从视频转写(先提取音频):

# Extract audio from video first
belt app run infsh/video-audio-extractor --input '{"video_url": "https://video.mp4"}' > audio.json

# Transcribe the extracted audio
belt app run infsh/fast-whisper-large-v3 --input '{"audio_url": "<audio-url>"}'

视频字幕工作流:

# 1. Transcribe video audio
belt app run infsh/fast-whisper-large-v3 --input '{
  "audio_url": "https://video.mp4",
  "timestamps": true
}' > transcript.json

# 2. Use transcript for captions
belt app run infsh/caption-videos --input '{
  "video_url": "https://video.mp4",
  "captions": "<transcript-from-step-1>"
}'

输出格式

返回 JSON,包含:

  • text:完整转写文本
  • segments:带时间戳的分段(如请求)
  • language:检测到的语言

适用场景

  • 会议:转写录音
  • 播客:生成文字稿
  • 字幕:为视频创建字幕
  • 语音笔记:转换为可搜索文本
  • 访谈:研究用转写
  • 无障碍:让音频内容可访问

相关技能

# ElevenLabs STT (98%+ accuracy, diarization)
npx skills add inference-sh/skills@elevenlabs-stt

# ElevenLabs TTS (reverse direction)
npx skills add inference-sh/skills@elevenlabs-tts

# Full platform skill (all apps)
npx skills add inference-sh/skills@infsh-cli

# Text-to-speech (reverse direction)
npx skills add inference-sh/skills@text-to-speech

# Video generation (add captions)
npx skills add inference-sh/skills@ai-video-generation

# AI avatars (lipsync with transcripts)
npx skills add inference-sh/skills@ai-avatar-video

浏览所有音频应用:

belt app list --category audio

限制

资料未提供各模型的具体收费、价格、速率限制、音频时长上限、文件格式支持范围等信息,暂未提供。