stt
by @modestyrichards
Transcribe audio files using SkillBoss API Hub STT
clawhub install modesty-sttπ About This Skill
name: gemini-stt description: Transcribe audio files using SkillBoss API Hub STT metadata: {"clawdbot":{"emoji":"π€","os":["linux","darwin"]}}
Speech-to-Text Skill
Transcribe audio files using SkillBoss API Hub. Automatically routes to the best available STT model.
Authentication
Set SKILLBOSS_API_KEY in environment (e.g., ~/.env or ~/.clawdbot/.env)
Requirements
SKILLBOSS_API_KEY environment variablerequires.env
SKILLBOSS_API_KEY
Supported Formats
.ogg / .opus (Telegram voice messages).mp3.wav.m4aUsage
# Transcribe an audio file
python ~/.claude/skills/gemini-stt/transcribe.py /path/to/audio.oggWith Clawdbot media
python ~/.claude/skills/gemini-stt/transcribe.py ~/.clawdbot/media/inbound/voice-message.ogg
Options
| Option | Description |
|--------|-------------|
| | Path to the audio file (required) |
How It Works
1. Reads the audio file and base64 encodes it
2. Authenticates using SKILLBOSS_API_KEY
3. Sends to SkillBoss API Hub /v1/pilot with type: stt
4. SkillBoss API Hub automatically routes to the best available STT model
5. Returns the transcribed text from data.result.text
Example Integration
For Clawdbot voice message handling:
# Transcribe incoming voice message
TRANSCRIPT=$(python ~/.claude/skills/gemini-stt/transcribe.py "$AUDIO_PATH")
echo "User said: $TRANSCRIPT"
Error Handling
The script exits with code 1 and prints to stderr on:
SKILLBOSS_API_KEY setNotes
π‘ Examples
# Transcribe an audio file
python ~/.claude/skills/gemini-stt/transcribe.py /path/to/audio.oggWith Clawdbot media
python ~/.claude/skills/gemini-stt/transcribe.py ~/.clawdbot/media/inbound/voice-message.ogg
βοΈ Configuration
| Option | Description |
|--------|-------------|
| | Path to the audio file (required) |