stt-transcription
Speech-to-text transcription using multiple engines (Whisper, Google Speech, Azure, AssemblyAI). Record audio, transcribe files, real-time transcription, speaker diarization, timestamps, and multi-language support. Use for meeting transcription, voice notes, audio file processing, or accessibility features.
What this skill does
# Speech-to-Text Transcription Comprehensive speech-to-text capabilities using multiple STT engines. Record audio, transcribe files, real-time processing, speaker identification, and multi-language support. ## Quick Start When asked to transcribe audio: 1. **Choose engine**: Whisper (local/free), Google, Azure, or AssemblyAI 2. **Record or load**: Capture audio or use existing file 3. **Transcribe**: Convert speech to text 4. **Format**: Output as plain text, SRT, VTT, or JSON 5. **Enhance**: Add timestamps, speaker labels, punctuation ## Prerequisites ### System Requirements - Python 3.8+ - Microphone (for recording) - Audio file support: WAV, MP3, M4A, FLAC, OGG ### Install Dependencies **Core (required):** ```bash pip install sounddevice soundfile numpy --break-system-packages ``` **Whisper (OpenAI - local, free):** ```bash pip install openai-whisper --break-system-packages # For faster processing with GPU: pip install openai-whisper torch --break-system-packages ``` **Google Speech (requires API key):** ```bash pip install google-cloud-speech --break-system-packages ``` **Azure Speech (requires API key):** ```bash pip install azure-cognitiveservices-speech --break-system-packages ``` **AssemblyAI (requires API key):** ```bash pip install assemblyai --break-system-packages ``` **Optional enhancements:** ```bash pip install pydub webrtcvad --break-system-packages # Audio processing pip install pyaudio --break-system-packages # Alternative audio backend ``` See [reference/setup-guide.md](reference/setup-guide.md) for detailed installation. ## STT Engine Comparison | Engine | Cost | Speed | Quality | Features | Best For | |--------|------|-------|---------|----------|----------| | **Whisper** | Free | Medium | High | Multilingual, local | Privacy, offline, free | | **Google** | Pay-per-use | Fast | High | Punctuation, diarization | Real-time, accuracy | | **Azure** | Pay-per-use | Fast | High | Translation, custom | Enterprise integration | | **AssemblyAI** | Pay-per-use | Medium | Very High | Diarization, sentiment | Analysis, insights | ### Whisper (Recommended for most users) - ✅ **Free and local** - No API costs, runs offline - ✅ **High quality** - State-of-the-art accuracy - ✅ **Multilingual** - 99+ languages - ⚠️ **Speed** - Slower than cloud services (depends on hardware) - ⚠️ **Resources** - Needs decent CPU/GPU ### Google Cloud Speech - ✅ **Fast** - Real-time capable - ✅ **Accurate** - Excellent for English - ✅ **Features** - Automatic punctuation, speaker diarization - ⚠️ **Cost** - $0.006 per 15 seconds (~$1.44/hour) - ⚠️ **Privacy** - Audio sent to Google ### Azure Speech - ✅ **Enterprise** - Microsoft integration - ✅ **Translation** - Real-time translation - ✅ **Custom** - Train custom models - ⚠️ **Cost** - $1 per audio hour - ⚠️ **Setup** - More complex configuration ### AssemblyAI - ✅ **Features** - Speaker diarization, sentiment analysis - ✅ **Quality** - Very accurate - ✅ **Developer-friendly** - Simple API - ⚠️ **Cost** - $0.00025 per second (~$0.90/hour) ## Core Operations ### Record Audio **Simple recording:** ```bash # Record 30 seconds python scripts/record_audio.py --duration 30 --output recording.wav # Record until stopped (Ctrl+C) python scripts/record_audio.py --output recording.wav # Record with voice activity detection python scripts/record_audio.py --vad --output recording.wav ``` **Advanced recording:** ```bash # Choose microphone python scripts/list_devices.py # List available mics python scripts/record_audio.py --device 1 --output recording.wav # Specify quality python scripts/record_audio.py \ --sample-rate 48000 \ --channels 2 \ --output recording.wav ``` ### Transcribe Files **Using Whisper (local, free):** ```bash # Basic transcription python scripts/transcribe_whisper.py --file recording.wav # Choose model size (tiny, base, small, medium, large) python scripts/transcribe_whisper.py \ --file recording.wav \ --model medium # With timestamps python scripts/transcribe_whisper.py \ --file recording.wav \ --timestamps \ --output transcript.json # Multiple languages python scripts/transcribe_whisper.py \ --file recording.wav \ --language es # Spanish ``` **Using Google Cloud:** ```bash # Export API key export GOOGLE_APPLICATION_CREDENTIALS="path/to/credentials.json" # Transcribe python scripts/transcribe_google.py \ --file recording.wav \ --language en-US # With speaker diarization python scripts/transcribe_google.py \ --file recording.wav \ --diarization \ --speakers 2 ``` **Using Azure:** ```bash # Set credentials export AZURE_SPEECH_KEY="your-key" export AZURE_SPEECH_REGION="westus" # Transcribe python scripts/transcribe_azure.py --file recording.wav # Real-time python scripts/transcribe_azure_realtime.py --microphone ``` **Using AssemblyAI:** ```bash # Set API key export ASSEMBLYAI_API_KEY="your-key" # Transcribe with features python scripts/transcribe_assemblyai.py \ --file recording.wav \ --diarization \ --sentiment \ --topics ``` ### Real-Time Transcription **Stream from microphone:** ```bash # Whisper streaming (chunked) python scripts/stream_whisper.py # Google streaming python scripts/stream_google.py # Azure continuous recognition python scripts/stream_azure.py ``` ### Format Output **Plain text:** ```bash python scripts/transcribe_whisper.py --file audio.wav --output transcript.txt ``` **JSON with metadata:** ```bash python scripts/transcribe_whisper.py \ --file audio.wav \ --format json \ --output transcript.json # Output includes: # - Text segments # - Timestamps # - Confidence scores # - Language detection ``` **SRT subtitles:** ```bash python scripts/transcribe_whisper.py \ --file video.mp4 \ --format srt \ --output subtitles.srt ``` **VTT subtitles:** ```bash python scripts/transcribe_whisper.py \ --file video.mp4 \ --format vtt \ --output subtitles.vtt ``` ## Common Workflows ### Workflow 1: Meeting Transcription **Scenario:** Record and transcribe meeting with speaker labels ```bash # 1. Record meeting python scripts/record_audio.py \ --output meeting.wav \ --vad # Stop on silence # 2. Transcribe with speaker diarization python scripts/transcribe_google.py \ --file meeting.wav \ --diarization \ --speakers 4 \ --output meeting.json # 3. Format for readability python scripts/format_transcript.py \ --input meeting.json \ --format markdown \ --output meeting.md # Result: Formatted transcript with speaker labels and timestamps ``` ### Workflow 2: Voice Notes to Markdown **Scenario:** Quick voice note → markdown document ```bash # Record voice note python scripts/quick_note.py # (Records audio, transcribes with Whisper, saves as markdown) # Output: voice-note-2025-01-20-14-30.md ``` ### Workflow 3: Batch Transcription **Scenario:** Transcribe multiple audio files ```bash # Batch process folder python scripts/batch_transcribe.py \ --input ./recordings/ \ --output ./transcripts/ \ --engine whisper \ --model base # Progress shown for each file ``` ### Workflow 4: Video Subtitles **Scenario:** Generate subtitles for video ```bash # Extract audio from video python scripts/extract_audio.py --video lecture.mp4 --output audio.wav # Generate subtitles python scripts/transcribe_whisper.py \ --file audio.wav \ --format srt \ --output lecture.srt # Embed in video (requires ffmpeg) python scripts/embed_subtitles.py \ --video lecture.mp4 \ --subtitles lecture.srt \ --output lecture-subbed.mp4 ``` ### Workflow 5: Multi-Language Support **Scenario:** Transcribe and translate ```bash # Transcribe Spanish audio python scripts/transcribe_whisper.py \ --file spanish-audio.wav \ --language es \ --output transcript-es.txt # Translate to English python scripts/transcribe_whisper.py \ --file spanish-audio.wav \ --task translate \ --output transcript-en.txt ``` ## Whisper Model Sizes | Model | Parameters | Size | Speed | VRAM | Accuracy | |-----
Related in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.