# Send Gemini STT to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "gemini-stt",
    "name": "Gemini STT",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/araa47/gemini-stt",
    "canonicalUrl": "https://clawhub.ai/araa47/gemini-stt",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/gemini-stt",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gemini-stt",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "transcribe.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "gemini-stt",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-03T14:17:41.926Z",
      "expiresAt": "2026-05-10T14:17:41.926Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gemini-stt",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gemini-stt",
        "contentDisposition": "attachment; filename=\"gemini-stt-1.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "gemini-stt"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/gemini-stt"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/gemini-stt",
    "downloadUrl": "https://openagent3.xyz/downloads/gemini-stt",
    "agentUrl": "https://openagent3.xyz/skills/gemini-stt/agent",
    "manifestUrl": "https://openagent3.xyz/skills/gemini-stt/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/gemini-stt/agent.md"
  }
}
```
## Documentation

### Gemini Speech-to-Text Skill

Transcribe audio files using Google's Gemini API or Vertex AI. Default model is gemini-2.0-flash-lite for fastest transcription.

### Option 1: Vertex AI with Application Default Credentials (Recommended)

gcloud auth application-default login
gcloud config set project YOUR_PROJECT_ID

The script will automatically detect and use ADC when available.

### Option 2: Direct Gemini API Key

Set GEMINI_API_KEY in environment (e.g., ~/.env or ~/.clawdbot/.env)

### Requirements

Python 3.10+ (no external dependencies)
Either GEMINI_API_KEY or gcloud CLI with ADC configured

### Supported Formats

.ogg / .opus (Telegram voice messages)
.mp3
.wav
.m4a

### Usage

# 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

### Options

OptionDescription<audio_file>Path to the audio file (required)--model, -mGemini model to use (default: gemini-2.0-flash-lite)--vertex, -vForce use of Vertex AI with ADC--project, -pGCP project ID (for Vertex, defaults to gcloud config)--region, -rGCP region (for Vertex, default: us-central1)

### Supported Models

Any Gemini model that supports audio input can be used. Recommended models:

ModelNotesgemini-2.0-flash-liteDefault. Fastest transcription speed.gemini-2.0-flashFast and cost-effective.gemini-2.5-flash-liteLightweight 2.5 model.gemini-2.5-flashBalanced speed and quality.gemini-2.5-proHigher quality, slower.gemini-3-flash-previewLatest flash model.gemini-3-pro-previewLatest pro model, best quality.

See Gemini API Models for the latest list.

### How It Works

Reads the audio file and base64 encodes it
Auto-detects authentication:

If ADC is available (gcloud), uses Vertex AI endpoint
Otherwise, uses GEMINI_API_KEY with direct Gemini API


Sends to the selected Gemini model with transcription prompt
Returns the transcribed 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:

No authentication available (neither ADC nor GEMINI_API_KEY)
File not found
API errors
Missing GCP project (when using Vertex)

### Notes

Uses Gemini 2.0 Flash Lite by default for fastest transcription
No external Python dependencies (uses stdlib only)
Automatically detects MIME type from file extension
Prefers Vertex AI with ADC when available (no API key management needed)
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: araa47
- Version: 1.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-03T14:17:41.926Z
- Expires at: 2026-05-10T14:17:41.926Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/gemini-stt)
- [Send to Agent page](https://openagent3.xyz/skills/gemini-stt/agent)
- [JSON manifest](https://openagent3.xyz/skills/gemini-stt/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/gemini-stt/agent.md)
- [Download page](https://openagent3.xyz/downloads/gemini-stt)