Transcribe audio files using Google's Gemini API or Vertex AI
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install gemini-stt或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install gemini-stt⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/gemini-stt/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: gemini-stt description: Transcribe audio files using Google's Gemini API or Vertex AI metadata: {"clawdbot":{"emoji":"🎤","os":["linux","darwin"]}} ---
Transcribe audio files using Google's Gemini API or Vertex AI. Default model is gemini-2.0-flash-lite for fastest transcription.
gcloud auth application-default login
gcloud config set project YOUR_PROJECT_ID
The script will automatically detect and use ADC when available.
Set GEMINI_API_KEY in environment (e.g., ~/.env or ~/.clawdbot/.env)
.ogg / .opus (Telegram voice messages).mp3.wav.m4a# Auto-detect auth (tries ADC first, then GEMINI_API_KEY)
python ~/.claude/skills/gemini-stt/transcribe.py /path/to/audio.ogg
# Force Vertex AI
python ~/.claude/skills/gemini-stt/transcribe.py /path/to/audio.ogg --vertex
# With a specific model
python ~/.claude/skills/gemini-stt/transcribe.py /path/to/audio.ogg --model gemini-2.5-pro
# Vertex AI with specific project and region
python ~/.claude/skills/gemini-stt/transcribe.py /path/to/audio.ogg --vertex --project my-project --region us-central1
# With Clawdbot media
python ~/.claude/skills/gemini-stt/transcribe.py ~/.clawdbot/media/inbound/voice-message.ogg
| Option | Description | |--------|-------------| | | Path to the audio file (required) | | --model, -m | Gemini model to use (default: gemini-2.0-flash-lite) | | --vertex, -v | Force use of Vertex AI with ADC | | --project, -p | GCP project ID (for Vertex, defaults to gcloud config) | | --region, -r | GCP region (for Vertex, default: us-central1) |
Any Gemini model that supports audio input can be used. Recommended models:
| Model | Notes | |-------|-------| | gemini-2.0-flash-lite | Default. Fastest transcription speed. | | gemini-2.0-flash | Fast and cost-effective. | | gemini-2.5-flash-lite | Lightweight 2.5 model. | | gemini-2.5-flash | Balanced speed and quality. | | gemini-2.5-pro | Higher quality, slower. | | gemini-3-flash-preview | Latest flash model. | | gemini-3-pro-preview | Latest pro model, best quality. |
See Gemini API Models for the latest list.
- If ADC is available (gcloud), uses Vertex AI endpoint - Otherwise, uses GEMINI_API_KEY with direct Gemini API
For Clawdbot voice message handling:
# Transcribe incoming voice message
TRANSCRIPT=$(python ~/.claude/skills/gemini-stt/transcribe.py "$AUDIO_PATH")
echo "User said: $TRANSCRIPT"
The script exits with code 1 and prints to stderr on:
安装 Gemini STT 后,可以对 AI 说这些话来触发它
Help me get started with Gemini STT
Explains what Gemini STT does, walks through the setup, and runs a quick demo based on your current project
Use Gemini STT to transcribe audio files using Google's Gemini API or Vertex AI
Invokes Gemini STT with the right parameters and returns the result directly in the conversation
What can I do with Gemini STT in my design & creative workflow?
Lists the top use cases for Gemini STT, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/gemini-stt/ 目录(个人级,所有项目可用),或 .claude/skills/gemini-stt/(项目级)。重启 AI 客户端后,用 /gemini-stt 主动调用,或让 AI 根据上下文自动发现并使用。
Gemini STT 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Gemini STT 可免费安装使用。请查阅仓库了解许可证信息。
Transcribe audio files using Google's Gemini API or Vertex AI
Gemini STT 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Gemini STT
Identifies repetitive steps in your workflow and sets up Gemini STT to handle them automatically