Skip to content
laughter-detector logo

Laughter Detector

laughter-detector

Detect laughter and humorous segments in audio/video. Use when you want to find funny moments, identify audience reactions, or create viral clips from humorous content. Supports both AI model detection and keyword-based detection from transcripts.

SKILL.md

Full skill instructions

Laughter Detector

This skill enables AI agents to detect laughter and humorous segments in audio or video files.

When to Use

  • User wants to find funny moments in a video
  • Detecting audience reactions (laughter, applause)
  • Creating viral clips from humorous content
  • Analyzing podcast or comedy content

Detection Methods

1. Keyword-Based Detection (Default)

Analyzes transcript for laughter-related keywords and phrases:

  • laugh, laughter, haha, lmao, lol
  • chuckle, giggle, snicker
  • (laughing), (laughter)

2. Audio Feature Detection

Analyzes audio characteristics:

  • High energy segments
  • Repetitive patterns
  • Voice characteristics

3. AI Model Detection

Uses trained laughter detection models:

  • LaughterSegmentation model
  • Custom trained models

Available Scripts

scripts/​detect_laughter.py

Detect laughter segments in audio/​video.

Usage:

python skills/​laughter-detector/​scripts/​detect_laughter.py <video_path> [options]

Options:

  • --method: Detection method (keywords, audio, ai) - default: keywords
  • --transcript-path: Path to transcript SRT/​VTT file (for keyword detection)
  • --threshold: Detection threshold (0.0-1.0) - default: 0.5
  • --min-duration: Minimum laughter segment duration (seconds) - default: 0.3
  • --output, -o: Output JSON path (default: <video_path>_laughter.json)

Examples:

Detect laughter from transcript:

python skills/​laughter-detector/​scripts/​detect_laughter.py video.mp4 --transcript-path video.srt

Detect with audio analysis:

python skills/​laughter-detector/​scripts/​detect_laughter.py video.mp4 --method audio --threshold 0.4

scripts/​detect_from_transcript.py

Detect laughter from transcript file only.

Usage:

python skills/​laughter-detector/​scripts/​detect_from_transcript.py <transcript_path> [options]

Options:

  • --keywords: Custom keywords (comma-separated)
  • --output, -o: Output JSON path

Example:

python skills/​laughter-detector/​scripts/​detect_from_transcript.py video.srt --keywords "laugh,laughter,haha"

Output Format

{
  "video_path": "video.mp4",
  "method": "keywords",
  "total_laughter_segments": 8,
  "laughter_segments": [
    {
      "segment_number": 1,
      "start_time": 12.5,
      "end_time": 15.2,
      "duration": 2.7,
      "confidence": 0.85,
      "text": "[laughter] That's hilarious!",
      "type": "explicit"
    },
    {
      "segment_number": 2,
      "start_time": 45.0,
      "end_time": 47.8,
      "duration": 2.8,
      "confidence": 0.92,
      "text": "(laughing) I can't believe it",
      "type": "explicit"
    }
  ],
  "total_laughter_duration": 15.5,
  "laughter_percentage": 12.5
}

Integration with Other Skills

After laughter detection, you can use these skills:

  • highlight-scanner: Combine laughter with other signals
  • video-trimmer: Create clips from laughter segments
  • autocut-shorts: Full workflow for creating short clips

Common Workflow

  1. User provides video file
  2. Transcribe using video-transcriber
  3. Detect laughter using this skill
  4. Create short clips from funny moments

Tips

  • Laughter segments are excellent for viral content
  • Combine with scene detection for better cut points
  • Longer laughter = higher viral potential
  • Consider surrounding context (3-5 seconds before/​after)
  • Keyword detection is faster, AI model is more accurate

References

  • Laughter detection research: Interspeech 2024 papers
  • Audio feature extraction: Librosa documentation

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View