Skip to content

jacksonemmerich/farmapub / .agents/skills/audio-transcriber

audio-transcriber

Verified

Transform audio recordings into professional Markdown documentation with intelligent summaries using LLM integration

FileKindSize
CHANGELOG.mdmarkdown5.3 KB
SKILL.mdskill md14.9 KB
examples/basic-transcription.shexecutablescript6.3 KB
references/tools-comparison.mdmarkdown8.2 KB
scripts/install-requirements.shexecutablescript6.7 KB
scripts/transcribe.pyexecutablescript17.3 KB

scripts/install-requirements.sh

View on GitHub
#!/usr/bin/env bash

# Audio Transcriber - Requirements Installation Script
# Automatically installs and validates dependencies

set -euo pipefail

# Colors
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
BLUE='\033[0;34m'
NC='\033[0m'

echo -e "${BLUE}πŸ”§ Audio Transcriber - Dependency Installation${NC}"
echo ""

# Check Python
if ! command -v python3 &>/dev/null; then
    echo -e "${RED}❌ Python 3 not found. Please install Python 3.8+${NC}"
    exit 1
fi

PYTHON_VERSION=$(python3 --version | cut -d' ' -f2 | cut -d'.' -f1,2)
echo -e "${GREEN}βœ… Python ${PYTHON_VERSION} detected${NC}"

# Check pip
if ! python3 -m pip --version &>/dev/null; then
    echo -e "${RED}❌ pip not found. Please install pip${NC}"
    exit 1
fi

echo -e "${GREEN}βœ… pip available${NC}"
echo ""

# Install system dependencies (macOS only)
if [[ "$OSTYPE" == "darwin"* ]]; then
    echo -e "${BLUE}πŸ“¦ Checking system dependencies (macOS)...${NC}"
    
    # Check for Homebrew
    if command -v brew &>/dev/null; then
        # Install pkg-config and ffmpeg if not present
        NEED_INSTALL=""
        
        if ! brew list pkg-config &>/dev/null 2>&1; then
            NEED_INSTALL="$NEED_INSTALL pkg-config"
        fi
        
        if ! brew list ffmpeg &>/dev/null 2>&1; then
            NEED_INSTALL="$NEED_INSTALL ffmpeg"
        fi
        
        if [[ -n "$NEED_INSTALL" ]]; then
            echo -e "${BLUE}Installing:$NEED_INSTALL${NC}"
            brew install $NEED_INSTALL --quiet
            echo -e "${GREEN}βœ… System dependencies installed${NC}"
        else
            echo -e "${GREEN}βœ… System dependencies already installed${NC}"
        fi
    else
        echo -e "${YELLOW}⚠️  Homebrew not found. Install manually if needed:${NC}"
        echo "  /bin/bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\""
    fi
fi

echo ""

# Install faster-whisper (recommended)
echo -e "${BLUE}πŸ“¦ Installing Faster-Whisper...${NC}"

# Try different installation methods based on Python environment
if python3 -m pip install faster-whisper --quiet 2>/dev/null; then
    echo -e "${GREEN}βœ… Faster-Whisper installed successfully${NC}"
elif python3 -m pip install --user --break-system-packages faster-whisper --quiet 2>/dev/null; then
    echo -e "${GREEN}βœ… Faster-Whisper installed successfully (user mode)${NC}"
else
    echo -e "${YELLOW}⚠️  Faster-Whisper installation failed, trying Whisper...${NC}"
    
    if python3 -m pip install openai-whisper --quiet 2>/dev/null; then
        echo -e "${GREEN}βœ… Whisper installed successfully${NC}"
    elif python3 -m pip install --user --break-system-packages openai-whisper --quiet 2>/dev/null; then
        echo -e "${GREEN}βœ… Whisper installed successfully (user mode)${NC}"
    else
        echo -e "${RED}❌ Failed to install transcription engine${NC}"
        echo ""
        echo -e "${YELLOW}Manual installation options:${NC}"
        echo "  1. Use --break-system-packages (macOS/Homebrew Python):"
        echo "     python3 -m pip install --user --break-system-packages openai-whisper"
        echo ""
        echo "  2. Use virtual environment (recommended):"
        echo "     python3 -m venv ~/whisper-env"
        echo "     source ~/whisper-env/bin/activate"
        echo "     pip install faster-whisper"
        echo ""
        echo "  3. Use pipx (isolated):"
        echo "     brew install pipx"
        echo "     pipx install openai-whisper"
        exit 1
    fi
fi

# Install UI/progress libraries (tqdm, rich)
echo ""
echo -e "${BLUE}πŸ“¦ Installing UI libraries (tqdm, rich)...${NC}"

if python3 -m pip install tqdm rich --quiet 2>/dev/null; then
    echo -e "${GREEN}βœ… tqdm and rich installed successfully${NC}"
elif python3 -m pip install --user --break-system-packages tqdm rich --quiet 2>/dev/null; then
    echo -e "${GREEN}βœ… tqdm and rich installed successfully (user mode)${NC}"
else
    echo -e "${YELLOW}⚠️  Optional UI libraries not installed (skill will still work)${NC}"
fi

# Check ffmpeg (optional but recommended)
echo ""
if command -v ffmpeg &>/dev/null; then
    echo -e "${GREEN}βœ… ffmpeg already installed${NC}"
else
    echo -e "${YELLOW}⚠️  ffmpeg not found (should have been installed earlier)${NC}"
    if [[ "$OSTYPE" == "darwin"* ]] && command -v brew &>/dev/null; then
        echo -e "${BLUE}Installing ffmpeg via Homebrew...${NC}"
        brew install ffmpeg --quiet && echo -e "${GREEN}βœ… ffmpeg installed${NC}"
    else
        echo -e "${BLUE}ℹ️  ffmpeg is optional but recommended for format conversion${NC}"
        echo ""
        echo "Install ffmpeg:"
        if [[ "$OSTYPE" == "darwin"* ]]; then
            echo "  brew install ffmpeg"
        elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
            echo "  sudo apt install ffmpeg  # Debian/Ubuntu"
            echo "  sudo yum install ffmpeg  # CentOS/RHEL"
        fi
    fi
fi

# Verify installation
echo ""
echo -e "${BLUE}πŸ” Verifying installation...${NC}"

if python3 -c "import faster_whisper" 2>/dev/null; then
    echo -e "${GREEN}βœ… Faster-Whisper verified${NC}"
    TRANSCRIBER="Faster-Whisper"
elif python3 -c "import whisper" 2>/dev/null; then
    echo -e "${GREEN}βœ… Whisper verified${NC}"
    TRANSCRIBER="Whisper"
else
    echo -e "${RED}❌ No transcription engine found after installation${NC}"
    exit 1
fi

# Download initial model (optional)
read -p "Download Whisper 'base' model now? (recommended, ~74MB) [Y/n]: " DOWNLOAD_MODEL

if [[ ! "$DOWNLOAD_MODEL" =~ ^[Nn] ]]; then
    echo ""
    echo -e "${BLUE}πŸ“₯ Downloading 'base' model...${NC}"
    
    python3 << 'EOF'
try:
    import faster_whisper
    model = faster_whisper.WhisperModel("base", device="cpu", compute_type="int8")
    print("βœ… Model downloaded successfully")
except:
    try:
        import whisper
        model = whisper.load_model("base")
        print("βœ… Model downloaded successfully")
    except Exception as e:
        print(f"❌ Model download failed: {e}")
EOF
fi

# Success summary
echo ""
echo -e "${GREEN}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
echo -e "${GREEN}βœ… Installation Complete!${NC}"
echo -e "${GREEN}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
echo ""
echo "πŸ“Š Installed components:"
echo "  β€’ Transcription engine: $TRANSCRIBER"
if command -v ffmpeg &>/dev/null; then
    echo "  β€’ Format conversion: ffmpeg (available)"
else
    echo "  β€’ Format conversion: ffmpeg (not installed)"
fi
echo ""
echo "πŸš€ Ready to use! Try:"
echo "  copilot> transcribe audio to markdown: myfile.mp3"
echo "  claude> transcreva este Γ‘udio: myfile.mp3"
echo ""
rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product β€” it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product β€” not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial β€” a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
claude-apianthropics/skillsReference for the Claude API / Anthropic SDK β€” model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER β€” read BEFORE opening the target file; don't skip because it "looks like a one-liner" β€” whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) β€” never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named β€” don't Read the file).Stars: 198kUpdated Claude CodeCodexUnverifiedInstall
doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.Stars: 198kUpdated Claude CodeCodexVerifiedInstall