Speech to text

From inference-sh/skills · View interactive version

Speech to text is an AI agent skill from the GitHub repository inference-sh/skills. Transcribe audio to text with ElevenLabs Scribe and OpenAI GPT Transcribe via inference.sh CLI. Models: ElevenLabs Scribe v2 (98%+ accuracy, diarization, word timestamps), GPT Transcribe (fast, low cost, key-term hints). Capabilities: transcription, multi-language, timestamps, speaker diarization, a

How to use this skill

Skill file

Install the belt CLI skill: npx skills add belt-sh/cli

Speech-to-Text

Transcribe audio to text via inference.sh CLI.

!Speech-to-Text

Quick Start

Requires inference.sh CLI (belt). Install instructions

belt login

belt app run openai/gpt-transcribe --input '{"audio": "https://audio.mp3"}'

Available Models

| Model | App ID | Best For |

|-------|--------|----------|

| ElevenLabs Scribe v2 | elevenlabs/stt | 98%+ accuracy, diarization, 90+ languages |

| GPT Transcribe | openai/gpt-transcribe | Fast, low-cost transcription; key-term hints |

Examples

Basic Transcription

belt app run openai/gpt-transcribe --input '{"audio": "https://meeting.mp3"}'

With Timestamps

belt app sample elevenlabs/stt --save input.json

# {
#   "audio": "https://podcast.mp3",
#   "diarize": true
# }

belt app run elevenlabs/stt --input input.json

The result's words array carries word-level timestamps and speaker labels.

Language Hints and Key Terms

belt app run openai/gpt-transcribe --input '{
  "audio": "https://french-audio.mp3",
  "languages": ["fr"],
  "keyterms": ["inference.sh", "Seedance"]
}'

From Video

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

# Transcribe the extracted audio
belt app run openai/gpt-transcribe --input '{"audio": "<audio-url>"}'

Workflow: Video Subtitles

# 1. Extract the audio track (Scribe takes audio files, not video)
belt app run infsh/video-audio-extractor --input '{
  "video_file": "https://video.mp4"
}' > audio.json

# 2. Transcribe it
belt app run elevenlabs/stt --input '{
  "audio": "<audio_file-from-step-1>"
}' > transcript.json

# 3. Group the word timestamps into caption segments
belt app run infsh/caption-videos --input '{
  "video_file": "https://video.mp4",
  "segments": [{"start": 0.0, "end": 2.5, "text": "<segments-from-step-2>"}]
}'

Supported Languages

Both models support 90+ languages including:

English, Spanish, French, German, Italian, Portuguese, Chinese, Japanese, Korean, Arabic, Hindi, Russian, and many more.

Use Cases

Output Format

Returns JSON with:

Related Skills

# 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

Browse all audio apps: belt app list --category audio

Documentation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.