🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Crazyrouter Stt

by @xujfcn

Speech-to-text transcription via Crazyrouter API (OpenAI Whisper). Transcribe audio/video files to text. Supports mp3, mp4, wav, m4a, webm. Use when user ask...

TERMINAL
clawhub install crazyrouter-stt

πŸ“– About This Skill


name: crazyrouter-stt description: Speech-to-text transcription via Crazyrouter API (OpenAI Whisper). Transcribe audio/video files to text. Supports mp3, mp4, wav, m4a, webm. Use when user asks to transcribe audio, extract text from video, or convert speech to text. Requires environment variable CRAZYROUTER_API_KEY (get at https://crazyrouter.com).

Speech-to-Text via Crazyrouter

Transcribe audio files using OpenAI Whisper through Crazyrouter.

Script Directory

Agent Execution: 1. SKILL_DIR = this SKILL.md file's directory 2. Script path = ${SKILL_DIR}/scripts/main.mjs

Step 0: Check API Key β›” BLOCKING

[ -n "${CRAZYROUTER_API_KEY}" ] && echo "key_present" || echo "not_set"

| Result | Action | |--------|--------| | key_present | Continue | | not_set | Ask user to set CRAZYROUTER_API_KEY. Get key at https://crazyrouter.com |

Usage

# Transcribe audio
node ${SKILL_DIR}/scripts/main.mjs --input audio.mp3

Save to file

node ${SKILL_DIR}/scripts/main.mjs --input meeting.m4a --output transcript.txt

Specify language hint

node ${SKILL_DIR}/scripts/main.mjs --input chinese.mp3 --language zh

Translate to English

node ${SKILL_DIR}/scripts/main.mjs --input french.mp3 --translate

Options

| Option | Description | Default | |--------|-------------|---------| | --input | Audio file (required) | β€” | | --output | Save transcript to file | stdout | | --language | Language hint (ISO 639-1) | auto-detect | | --translate | Translate to English | false | | --model | whisper-1 | whisper-1 |

Supported Formats

mp3, mp4, mpeg, mpga, m4a, wav, webm

πŸ’‘ Examples

# Transcribe audio
node ${SKILL_DIR}/scripts/main.mjs --input audio.mp3

Save to file

node ${SKILL_DIR}/scripts/main.mjs --input meeting.m4a --output transcript.txt

Specify language hint

node ${SKILL_DIR}/scripts/main.mjs --input chinese.mp3 --language zh

Translate to English

node ${SKILL_DIR}/scripts/main.mjs --input french.mp3 --translate

Options

| Option | Description | Default | |--------|-------------|---------| | --input | Audio file (required) | β€” | | --output | Save transcript to file | stdout | | --language | Language hint (ISO 639-1) | auto-detect | | --translate | Translate to English | false | | --model | whisper-1 | whisper-1 |

Supported Formats

mp3, mp4, mpeg, mpga, m4a, wav, webm

βš™οΈ Configuration

| Option | Description | Default | |--------|-------------|---------| | --input | Audio file (required) | β€” | | --output | Save transcript to file | stdout | | --language | Language hint (ISO 639-1) | auto-detect | | --translate | Translate to English | false | | --model | whisper-1 | whisper-1 |

Supported Formats

mp3, mp4, mpeg, mpga, m4a, wav, webm