Groq Voice

Transcribe voice messages (.ogg) via Groq Whisper API. When you see <media:audio> in a message, extract the file path and transcribe it using the included script.

qwwiwi Updated

File contents

Groq Voice Transcription

When you receive a message containing <media:audio> tag, the user sent a voice message.

MANDATORY: Transcribe BEFORE responding

When you see <media:audio>:

  1. Extract the .ogg file path from the [media attached: /path/to/file.ogg] line
  2. Run the transcription script:
bash $CLAUDE_SKILL_DIR/scripts/transcribe.sh "/path/to/file.ogg"
  1. Use the transcript text to understand what the user said
  2. Respond to the user's spoken message naturally
  3. Do NOT mention the transcription process unless asked

Important

  • Always transcribe first, then respond to the content
  • The script uses Groq Whisper API (fast, accurate, supports Russian and 50+ languages)
  • If transcription fails, tell the user you couldn't process their voice message
  • Do NOT say "I can't listen to audio" -- you CAN via this script

Setup

  1. Get a free API key at https://console.groq.com
  2. Save it: echo 'your-key' > ~/.claude-lab/shared/secrets/groq-api-key
  3. The script reads the key from that file automatically

qwwiwi/public-architecture-claude-code/tree/main/skills/groq-voice commit 732783aad4

Frequently asked questions

npx skillmds@latest add qwwiwi/groq-voice-2