通过 Crazyrouter API(OpenAI Whisper)将音频/视频文件转写为文字,支持 mp3、mp4、wav、m4a、webm 格式。用户提问时使用。
Transcribe audio files using OpenAI Whisper through Crazyrouter.
Agent Execution:
SKILL_DIR = this SKILL.md file's directory${SKILL_DIR}/scripts/main.mjsbash
[ -n "${CRAZYROUTER_API_KEY}" ] && echo "key_present" || echo "not_set"
ResultActionkey_presentContinuenot_setAsk user to set CRAZYROUTER_API_KEY. Get key at https://crazyrouter.com
bash
# 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
OptionDescriptionDefault--input <file>Audio file (required)—--output <file>Save transcript to filestdout--language <code>Language hint (ISO 639-1)auto-detect--translateTranslate to Englishfalse--model <id>``whisper-1``whisper-1
mp3, mp4, mpeg, mpga, m4a, wav, webm