Skip to content
dateoPublic

About

YakHack transcribes podcast episodes, separates the speakers and summarizes them with WhisperX, pyannote and Ollama, and indexes the results in OpenSearch.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

344 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YakHack

Documentation

Project documentation is organized under:

  • docs/technical for architecture and implementation details
  • docs/user for end-user guidance

Start with:

  • docs/technical/README.md
  • docs/user/README.md
YakHack by dateo
Report error »

Research platform for recorded speech: transcripts, speakers, and answers with their sources.

WhisperX Ollama Pyannote FFmpeg CUDA Python HuggingFace OpenSearch SeaweedFS


What YakHack does

YakHack turns podcast episodes and other recordings into data you can search and analyse. It:

  • transcribes episodes and tells speakers apart, recognising the regulars and flagging guests
  • summarises each episode
  • extracts podcast and episode metadata
  • stores transcripts in OpenSearch for full-text and semantic search
  • shows podcasts, episodes and analytics in a web interface

It is built for researchers, editors and podcast producers who need to find what was said, by whom and when, across many episodes.

Why it matters

Finding one statement in hundreds of hours of audio is slow. YakHack does the transcription and indexing so you can:

  • study content at scale, for example track a theme across episodes
  • find a passage and quote it with speaker and time
  • keep an archive you can search
  • ask questions over all episodes and get answers with the passages they rest on

It runs on WhisperX, Ollama, pyannote, OpenSearch and SeaweedFS, and handles anything from a single speaker to a panel.

The name

YakHack combines "yak", talk that goes on and on, with "hack", working through it with software. The product finds the signal in the talk. The logo, Signal to data, shows the same idea: a waveform that turns into a measurement. YakHack is a product of dateo; brand rules are in docs/brand.

Features

  • AI-Powered Transcription: Convert podcast audio to text using WhisperX
  • Speaker Diarization: Identify and separate different speakers in conversations
  • Checked Summaries: Episode summaries from a language model (Ollama, FastFlowLM or any OpenAI-compatible server); every statement names its passages and is checked against them
  • Ask: Questions over the transcripts, answered with the passages they rest on, each sentence checked against them; every answer is saved and can be opened again under Saved answers
  • Scientific Analysis: Codebook, AI coding with evidence, review, agreement (kappa), hypotheses and exports for MAXQDA / ATLAS.ti
  • Questionnaires: Questions about a project or some of its recordings, made with a step-by-step wizard, with results, CSV export and answers usable in Ask
  • Teams and Roles: Sign-in with Keycloak; projects visible per team; viewer, reviewer, editor and admin; an access log
  • Metadata Extraction: Automatically extract project and recording metadata
  • Hardware Optimization: Automatically detects and optimizes for available hardware (CPU/GPU)
  • OpenSearch Integration: Store and query processed content with vector search capabilities
  • S3 Storage: Audio files in SeaweedFS or any other S3 server
  • Web App: Projects, recordings, transcripts, uploads and processing in one React app served by the API, in light or dark mode

Using YakHack

The web app has six pages in its navigation:

  • Ask: ask a question about the transcripts and get an answer that cites its passages; Saved answers lists earlier answers.
  • Projects: create projects, upload recordings, and read a recording's summary and transcript.
  • Analysis: analysis projects with a codebook, AI coding, review and exports.
  • Questionnaires: questions about a project or some of its recordings, the answers and their results.
  • Processing (editors): the upload and re-run queue and the system status.
  • Access log (admins): who changed what, who was refused, who asked questions.

The user guide is in docs/user/README.md.

The Ask page: an answer with numbered citations to transcript passages

A recording page: the summary with its checked statements, time chips and review links, the speakers, and the transcript by speaker

The Coding tab of an analysis project, with a coding run and its codes per category

Prerequisites

Before using YakHack, ensure you have:

Installation

  1. Clone the repository:

    git clone https://github.com/dateo/YakHack.git
    cd YakHack
  2. Install Python dependencies:

    pip install -r requirements.txt
  3. Set up environment variables:

    cp .env.example .env

    Then edit .env with your Hugging Face token, OpenSearch configuration, and other settings.

  4. Install prerequierments

    curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
    && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \
      sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
      sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
    sudo apt-get update
    export NVIDIA_CONTAINER_TOOLKIT_VERSION=1.17.8-1
      sudo apt-get install -y \
          nvidia-container-toolkit=${NVIDIA_CONTAINER_TOOLKIT_VERSION} \
          nvidia-container-toolkit-base=${NVIDIA_CONTAINER_TOOLKIT_VERSION} \
          libnvidia-container-tools=${NVIDIA_CONTAINER_TOOLKIT_VERSION} \
          libnvidia-container1=${NVIDIA_CONTAINER_TOOLKIT_VERSION}
    sudo nvidia-ctk runtime configure --runtime=docker
    sudo systemctl restart docker
  5. Set up and start YakHack (see Start YakHack):

    python3 scripts/setup.py              # once: detects the hardware and writes the settings
    scripts/yakhack.sh                    # services, web app and API in one command

Usage

Option 1: Manual File Upload (Recommended)

  1. Access the web interface at http://localhost:8000
  2. Open a project under Projects, or create one with Create project
  3. Click Upload recordings and drop audio files (MP3, M4A, MP4, WAV, FLAC, OGG, Opus or AAC)
  4. The files are stored in the S3 bucket and processed one after the other
  5. Follow the progress on the Processing page; the recording appears in its project when it is done

Option 2: Batch Processing from the Bucket

  1. Put the audio files into the S3 bucket yakhack, one folder per project

  2. Run the processing script, which processes every file not yet in OpenSearch:

    python main.py
  3. Access the web interface at http://localhost:8000 to explore your processed content

  4. Each recording is indexed in OpenSearch; the audio stays in the bucket

Code Workflow

What main.process does with one recording (see docs/technical/processing-pipeline.md):

flowchart TD
    A([Start]) --> B[Download the audio from S3 storage]
    B --> C[Read tags; find the project]
    C --> D{Already in OpenSearch?}
    D -->|Yes| Z([Skip])
    D -->|No| E[Transcribe: Whisper, Whisper on the NPU or Parakeet, per project]
    E --> F[Separate speakers with pyannote]
    F --> G[Name speakers from the project's voice samples; others are guests]
    G --> H[Clean up and merge segments]
    H --> I[Categories: genre, topics, public persons]
    I --> J[Summary with cited statements, each checked against its passages]
    J --> K[Speaker summaries]
    K --> L[Record provenance: models, prompts, versions]
    L --> M[Index the recording and its segments with embeddings in OpenSearch]
    M --> N([End])
Loading

With Ollama as the language model (LLM_USES_OLLAMA), python main.py first checks that Ollama is ready.

YakHack API Server

Overview

The YakHack API Server provides a RESTful interface for AI-powered podcast transcription and analysis. It supports automatic episode processing, speaker diarization, content categorization, and intelligent summarization.

Base URL: http://localhost:8000

These endpoints need sign-in (a Keycloak access token as Authorization: Bearer …). /process/* and /scan* need an admin or the service token (X-YakHack-Service-Token); /logs* and /config need an admin. The curl examples below work as shown only with AUTH_MODE=off. Roles per route: docs/technical/architecture.md.

Features:

  • Speech-to-Text: High-accuracy transcription using WhisperX
  • Speaker Diarization: Automatic speaker identification and separation
  • ️ Content Analysis: AI-powered categorization and topic extraction
  • Summarization: Episode and speaker-specific summaries
  • Smart Scanning: Duplicate detection and new episode processing
  • Distributed Storage: SeaweedFS integration for scalable file storage
  • Search & Analytics: OpenSearch integration for powerful querying

Quick Start

Start YakHack

python3 scripts/setup.py              # once: detects the hardware and writes the settings
scripts/yakhack.sh AUTH_MODE=off      # services, web app, FastFlowLM and API in one command

Then open http://localhost:8000: the API serves the web app on the same port. See docs/technical/deployment.md ("Running YakHack: one command"). The API alone: python api_server.py --host 0.0.0.0 --port 8000.

Check Health

curl http://localhost:8000/health

View API Documentation

Visit: http://localhost:8000/docs


Health Check Endpoints

Overall System Health

Check the status of all system components.

Endpoint: GET /health

curl http://localhost:8000/health

Response:

{
  "status": "healthy",
  "message": "All systems operational",
  "timestamp": "2025-07-15T14:30:00",
  "details": {
    "opensearch": { "status": "ok", "message": "Connected (yakhack_index)" },
    "ollama": { "status": "ok", "message": "Connected" },
    "seaweedfs": { "status": "ok", "message": "Connected (47 MP3 files visible via s3)" },
    "processing": { "active": false }
  }
}

Component-Specific Health Checks

OpenSearch Status
curl http://localhost:8000/health/opensearch
Ollama Status
curl http://localhost:8000/health/ollama
SeaweedFS Status
curl http://localhost:8000/health/seaweedfs
Language Model Status

The configured language model server (FastFlowLM, Ollama or an OpenAI-compatible server):

curl http://localhost:8000/health/llm

Hardware Information

Get current hardware configuration and capabilities.

Endpoint: GET /hardware

curl http://localhost:8000/hardware

Response:

{
  "device": "cuda",
  "accelerator_kind": "nvidia",
  "accelerator_backend": "cuda",
  "accelerator_name": "NVIDIA GPU",
  "batch_size": 16,
  "compute_type": "float16",
  "gpu_memory_gb": 24.0,
  "cpu_cores": 16,
  "ram_gb": 64.0,
  "detected_at": "2025-07-15T14:30:00"
}

File Processing Endpoints

Process Single File

Process a specific MP3 file (only if not already processed).

Endpoint: POST /process/file

curl -X POST http://localhost:8000/process/file \
  -H "Content-Type: application/json" \
  -d '{
    "file_path": "Emily_Interview/interview-14-07-2025.mp3",
    "with_speaker_assignment": true
  }'

Force Process Single File

Process a file even if it already exists (overwrites existing data).

Endpoint: POST /process/force

curl -X POST http://localhost:8000/process/force \
  -H "Content-Type: application/json" \
  -d '{
    "file_path": "BRANDT_WEBER/episode-197.mp3",
    "with_speaker_assignment": true
  }'

Process All Files

Process all MP3 files found in SeaweedFS (only new ones).

Endpoint: POST /process/all

curl -X POST http://localhost:8000/process/all \
  -H "Content-Type: application/json" \
  -d '{
    "bucket": "yakhack",
    "input_prefix": "",
    "with_speaker_assignment": true
  }'

Scanning Endpoints

Scan for New Episodes

Scan SeaweedFS for new episodes and process only those not already in OpenSearch.

Endpoint: POST /scan

# Basic scan
curl -X POST http://localhost:8000/scan

# With parameters
curl -X POST "http://localhost:8000/scan?bucket=yakhack&input_prefix=&with_speaker_assignment=true"

Force Scan All Episodes

Process ALL episodes, ignoring existing OpenSearch entries.

Endpoint: POST /scan/force

# Force process everything
curl -X POST http://localhost:8000/scan/force

# With parameters
curl -X POST "http://localhost:8000/scan/force?bucket=yakhack&with_speaker_assignment=true"

Preview Scan Results

See what files would be processed without actually processing them.

Endpoint: GET /scan/preview

# Preview all files
curl http://localhost:8000/scan/preview

# Preview specific directory
curl "http://localhost:8000/scan/preview?bucket=yakhack&input_prefix=BRANDT_WEBER"

Response:

{
  "message": "Found 47 total files (3 new, 44 existing)",
  "bucket": "yakhack",
  "input_prefix": "",
  "summary": {
    "total_files": 47,
    "new_files": 3,
    "existing_files": 44,
    "podcasts_with_new_episodes": 2
  },
  "new_files": [
    {
      "path": "Emily_Interview/interview-14-07-2025.mp3",
      "name": "interview-14-07-2025.mp3",
      "size_mb": 58.9,
      "podcast_name": "Emily_Interview"
    }
  ],
  "new_by_podcast": {
    "Emily_Interview": [...]
  }
}

Podcast-Specific Endpoints

Scan Specific Podcast

Scan only a specific podcast folder for new episodes.

Endpoint: POST /scan/podcast/{podcast_name}

# Scan Emily_Interview podcast
curl -X POST http://localhost:8000/scan/podcast/Emily_Interview

# Scan BRANDT & WEBER podcast (URL encoded)
curl -X POST "http://localhost:8000/scan/podcast/BRANDT%20%26%20WEBER"

# With parameters
curl -X POST "http://localhost:8000/scan/podcast/Emily_Interview?bucket=yakhack&with_speaker_assignment=true"

Force Scan Specific Podcast

Process ALL episodes for a specific podcast, ignoring existing entries.

Endpoint: POST /scan/podcast/{podcast_name}/force

# Force process all Emily_Interview episodes
curl -X POST http://localhost:8000/scan/podcast/Emily_Interview/force

# Force process BRANDT & WEBER episodes
curl -X POST "http://localhost:8000/scan/podcast/BRANDT%20%26%20WEBER/force"

Preview Podcast Scan

Preview what files would be processed for a specific podcast.

Endpoint: GET /scan/podcast/{podcast_name}/preview

# Preview Emily_Interview
curl http://localhost:8000/scan/podcast/Emily_Interview/preview

# Preview with custom bucket
curl "http://localhost:8000/scan/podcast/Emily_Interview/preview?bucket=yakhack"

Response:

{
  "message": "Podcast 'Emily_Interview': 5 total files (2 new, 3 existing)",
  "podcast_name": "Emily_Interview",
  "bucket": "yakhack",
  "summary": {
    "total_files": 5,
    "new_files": 2,
    "existing_files": 3,
    "total_new_size_mb": 118.3,
    "total_existing_size_mb": 267.8
  },
  "new_files": [
    {
      "path": "Emily_Interview/interview-14-07-2025.mp3",
      "name": "interview-14-07-2025.mp3",
      "size_mb": 58.9,
      "episode_title": "interview-14-07-2025"
    }
  ]
}

Status and Monitoring

Processing Status

Get current processing status and progress.

Endpoint: GET /status

curl http://localhost:8000/status

Response (Processing):

{
  "is_processing": true,
  "current_file": "Emily_Interview/interview-14-07-2025.mp3",
  "progress": {
    "total_files": 3,
    "processed_files": 1,
    "failed_files": 0,
    "current_stage": "processing 2/3",
    "transcription": {
      "active": true,
      "phase": "transcribing",
      "percent": 45,
      "message": "Running WhisperX transcription on cpu",
      "started_at": "2025-07-15T14:31:00",
      "updated_at": "2025-07-15T14:31:20"
    }
  },
  "start_time": "2025-07-15T14:30:00",
  "estimated_completion": "2025-07-15T16:45:00",
  "last_error": null
}

Response (Idle):

{
  "is_processing": false,
  "current_file": null,
  "progress": {
    "total_files": 0,
    "processed_files": 0,
    "failed_files": 0,
    "current_stage": "idle",
    "transcription": {
      "active": false,
      "phase": "idle",
      "percent": 0,
      "message": "",
      "started_at": null,
      "updated_at": null
    }
  },
  "start_time": null,
  "estimated_completion": null,
  "last_error": null
}

Processing Logs

Get recent processing logs.

Endpoint: GET /logs

# Get last 100 logs (default)
curl http://localhost:8000/logs

# Get last 50 logs
curl "http://localhost:8000/logs?limit=50"

Real-time Log Streaming

Stream logs in real-time using Server-Sent Events.

Endpoint: GET /logs/stream

# Stream logs (use in terminal)
curl http://localhost:8000/logs/stream

# Stream logs with timestamps
curl -N http://localhost:8000/logs/stream

Configuration

Get Current Configuration

View current system configuration.

Endpoint: GET /config

curl http://localhost:8000/config

Response:

{
  "opensearch": {
    "endpoint": "localhost",
    "port": "9200"
  },
  "seaweedfs": {
    "filer_url": "http://10.209.11.100:8888",
    "bucket": "yakhack",
    "s3_available": true
  },
  "ai": {
    "hugging_face_configured": true
  }
}

Request/Response Models

ProcessFileRequest

{
  "file_path": "string",           // Required: Path to MP3 file in SeaweedFS
  "with_speaker_assignment": bool  // Optional: name speakers from voice samples (default: true); speakers are always separated
}

ProcessAllRequest

{
  "bucket": "string",              // Optional: SeaweedFS bucket (default: "yakhack")
  "input_prefix": "string",        // Optional: Directory prefix (default: "")
  "with_speaker_assignment": bool  // Optional: name speakers from voice samples (default: true); speakers are always separated
}

HealthResponse

{
  "status": "string", // "healthy", "degraded", or "error"
  "message": "string", // Human-readable status message
  "timestamp": "string", // ISO timestamp
  "details": {
    // Optional: Additional details
    "component": {
      "status": "string",
      "message": "string"
    }
  }
}

ProcessingStatusResponse

{
  "is_processing": bool,
  "current_file": "string|null",
  "progress": {
    "total_files": int,
    "processed_files": int,
    "failed_files": int,
    "current_stage": "string"
  },
  "start_time": "string|null",
  "estimated_completion": "string|null",
  "last_error": "string|null"
}

Error Handling

Common HTTP Status Codes

  • 200 OK: Request successful
  • 400 Bad Request: Invalid request format or parameters
  • 404 Not Found: File or resource not found
  • 409 Conflict: Processing already in progress
  • 500 Internal Server Error: Server error during processing

Error Response Format

{
  "detail": "Error message describing what went wrong"
}

Common Errors

File Not Found
curl -X POST http://localhost:8000/process/file \
  -H "Content-Type: application/json" \
  -d '{"file_path": "nonexistent/file.mp3"}'

Response (404):

{
  "detail": "File not found: nonexistent/file.mp3"
}
Processing Already in Progress
curl -X POST http://localhost:8000/scan

Response (409):

{
  "detail": "Processing already in progress"
}
Invalid JSON Format
curl -X POST http://localhost:8000/process/file \
  -H "Content-Type: application/json" \
  -d '{"file_path": }'  # Invalid JSON

Response (400):

{
  "detail": [
    {
      "type": "json_invalid",
      "loc": ["body"],
      "msg": "JSON decode error"
    }
  ]
}

Use Cases & Examples

Process New Episodes Daily

#!/bin/bash
# Daily processing script

echo "Checking for new episodes..."
curl -X POST http://localhost:8000/scan

echo "Monitoring progress..."
while true; do
  status=$(curl -s http://localhost:8000/status | jq -r '.is_processing')
  if [ "$status" = "false" ]; then
    echo "Processing complete!"
    break
  fi
  echo "Still processing..."
  sleep 30
done

Reprocess Podcast with Updated Algorithms

# Force reprocess all episodes for BRANDT & WEBER
curl -X POST "http://localhost:8000/scan/podcast/BRANDT%20%26%20WEBER/force"

Check System Health Before Processing

#!/bin/bash
# Health check script

health=$(curl -s http://localhost:8000/health | jq -r '.status')
if [ "$health" = "healthy" ]; then
  echo "System healthy, starting processing..."
  curl -X POST http://localhost:8000/scan
else
  echo "System not healthy, check components:"
  curl http://localhost:8000/health | jq '.details'
fi

Monitor Processing in Real-time

# Terminal 1: Start processing
curl -X POST http://localhost:8000/scan/podcast/Emily_Interview

# Terminal 2: Monitor logs
curl -N http://localhost:8000/logs/stream

# Terminal 3: Check status
watch -n 5 'curl -s http://localhost:8000/status | jq'

Advanced Configuration

Server Startup Options

# Basic startup
python api_server.py

# Custom host and port
python api_server.py --host 0.0.0.0 --port 8080

# Debug mode with auto-reload
python api_server.py --debug

# Production with multiple workers
python api_server.py --workers 4 --host 0.0.0.0 --port 8000

Environment Variables

Create a .env file with:

# OpenSearch Configuration
OPENSEARCH_ENDPOINT=localhost
OPENSEARCH_PORT=9200
OPENSEARCH_INITIAL_ADMIN_PASSWORD=your_password

# SeaweedFS Configuration
SEAWEED_FILER_URL=http://localhost:8888
SEAWEED_BUCKET=yakhack
SEAWEED_S3_ENDPOINT=http://localhost:8333
SEAWEED_S3_ACCESS_KEY=your_access_key
SEAWEED_S3_SECRET_KEY=your_secret_key

# AI Configuration
HUGGING_FACE_TOKEN=your_hf_token

.env.example lists every setting with comments, including sign-in (AUTH_*), the language model (LLM_*), audio storage (STORAGE_BACKEND, S3_*) and the support check (SUPPORT_*).


Performance Tips

Optimal Processing Order

  1. Health Check: Always verify system health first
  2. Preview: Use preview endpoints to understand workload
  3. Batch Processing: Use scan endpoints for multiple files
  4. Monitor: Watch status and logs during processing

Batch Size Recommendations

  • Small datasets (< 10 files): Process individually
  • Medium datasets (10-100 files): Use podcast-specific scans
  • Large datasets (> 100 files): Use full scan with monitoring

Hardware Optimization

  • CPU-only: Expect 2-5x realtime processing speed
  • GPU (8GB VRAM): Expect 0.1-0.3x realtime processing speed
  • GPU (16GB+ VRAM): Expect 0.05-0.15x realtime processing speed

Troubleshooting

Common Issues

"Processing already in progress"

Problem: Another process is running Solution:

# Check current status
curl http://localhost:8000/status

# Wait for completion or restart server
"File not found"

Problem: File doesn't exist in SeaweedFS Solution:

# Check SeaweedFS status
curl http://localhost:8000/health/seaweedfs

# List available files
curl "http://localhost:8000/scan/preview?bucket=yakhack"
"OpenSearch connection failed"

Problem: OpenSearch is not accessible Solution:

# Check OpenSearch health
curl http://localhost:8000/health/opensearch

# Verify OpenSearch is running
curl http://localhost:9200/_cluster/health
"Ollama service unavailable"

Problem: Ollama is not running Solution:

# Check Ollama status
curl http://localhost:8000/health/ollama

# Start Ollama service
ollama serve

Debug Mode

Start the server in debug mode for detailed error information:

python api_server.py --debug

Log Analysis

# Get recent error logs
curl "http://localhost:8000/logs?limit=100" | jq '.logs[] | select(.level == "ERROR")'

# Monitor real-time for errors
curl -N http://localhost:8000/logs/stream | grep "ERROR"

API Rate Limits

The API server doesn't enforce rate limits by default, but processing is naturally throttled by:

  • Single processing queue: Only one processing job at a time
  • Hardware limitations: GPU/CPU capacity determines throughput
  • Storage I/O: SeaweedFS and OpenSearch performance

For production deployments, consider implementing:

  • Request queuing systems
  • Load balancing across multiple API instances
  • Processing priority queues

Support

For additional help:

Data Storage

YakHack uses a hybrid storage architecture:

SeaweedFS - File Storage

  • Audio Files: Original MP3s and converted WAV files
  • Voice Samples: short recordings of a project's regular speakers, for naming them
  • Distributed Storage: Scalable file storage across multiple nodes
  • Direct Streaming: Audio playback directly from storage without download

OpenSearch - Metadata & Search

  • Episode Metadata: Transcripts, summaries, and technical data
  • Vector Search: Semantic search across episode content
  • Cross-Episode Questions: Ask finds passages across podcasts and episodes

This architecture enables:

  • Fast Audio Streaming: Direct playback from SeaweedFS
  • Powerful Search: Full-text and semantic search via OpenSearch
  • Scalability: Handle thousands of episodes and terabytes of audio
  • Reliability: Distributed storage with redundancy

Creating projects

Projects are created in the web app (Projects → Create project) or with POST /podcasts. There is no podcast.json file. The web app says project and recording; the API's routes and fields keep the older names podcast and episode.

Local Development

See docs/technical/deployment.md, section "Local development stack": OpenSearch, SeaweedFS and Keycloak run with docker/docker-compose.local.yml, the API with scripts/dev-api.sh.

Type Definitions

Python dataclasses in runner/models.py describe the stored data:

Class Description
HardwareConfig Hardware detection settings (device, batch size, compute type)
PodcastEntry A project: language, regular speakers, teams, speech recognition
Speaker, VoiceSampleSegment A regular speaker and their voice sample
Metadata A recording's technical metadata (title, duration, audio)
WordSegment, TranscriptSegment, Content Words with timing and score, segments with speaker, the transcript
Categorize Genre, topics and public persons
EpisodeSummary, SpeakerSummary The summary with its checked statements, and per-speaker summaries
Result Everything processing produces for one recording, as stored in OpenSearch
Episode A recording as the API lists it

Roadmap

Legend

Symbol Meaning
+ New feature
! Infrastructure change
# UI/Visualization

v1.3.0 (SeaweedFS & Enhanced UI) - COMPLETED

** Goal:** Distributed file storage and improved user experience

 SeaweedFS Integration:
  - Distributed file storage for audio files
  - Direct audio streaming in web interface
  - Scalable media asset management
 Enhanced UI Features:
  - Manual file upload via drag-and-drop
  - Audio playback integrated in transcription view
  - File deletion and management capabilities
  - Improved file handling workflows

v1.4.0 (Guest Speaker Detection & Advanced Analytics) - IN PROGRESS

Voice samples, guest flags and the similarity behind each speaker's name are done (the API reports version 1.4.0); clustering and voice pattern analytics are not.

** Goal:** Automatically identify irregular participants

+ Voiceprint Analysis:
  - Compare against known speaker profiles
  - Flag potential new guests
+ Confidence Scoring:
  - Rate similarity to default speakers
+ Metadata Enrichment:
  - Auto-tag "Guest" segments in transcripts
+ Advanced Analytics:
  - Speaker similarity clustering
  - Voice pattern recognition

v1.5.0 (Cross-Podcast Citation Tracking)

** Goal:** Map reference networks across shows

+ Entity Resolution:
  - Link mentioned people/orgs to knowledge base
+ Citation Graphs:
  - Visualize "who cites whom" relationships
+ Contextual Analysis:
  - Detect supportive/contrasting references
+ Advanced Search:
  - Semantic search across all content
  - Citation network exploration

v1.6.0 (Advanced Analytics & ML)

** Goal:** Deep content insights and predictive analytics

+ Sentiment Analysis:
  - Track emotional tone across episodes
  - Speaker sentiment profiles
+ Topic Modeling:
  - Automatic topic discovery
  - Topic evolution tracking
+ Predictive Features:
  - Content recommendation engine
  - Trending topic detection

Acknowledgments

  • WhisperX for speech recognition
  • Ollama for AI summarization
  • Pyannote for speaker diarization
  • OpenSearch for data storage and search

Reporting bugs and security problems

License

YakHack is licensed under the Apache License, Version 2.0. Copyright 2025-2026 Noah Zeumer; see NOTICE.

Third-party dependencies (see requirements.txt, web/package.json and the Docker images) keep their own licences.

About

YakHack transcribes podcast episodes, separates the speakers and summarizes them with WhisperX, pyannote and Ollama, and indexes the results in OpenSearch.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages