Markdown Converter
Agent skill for markdown-converter
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is an audio processing tool that splits monologue audio recordings (containing speech and/or music) into chunks based on silence detection. The core algorithm detects 25-second silence gaps and splits audio files at these boundaries.
Critical Silence Detection Rule: When 25 seconds of silence is detected, the chunk boundary is placed at the START of the silence period (end of previous chunk) and the next chunk begins at the END of the silence period. This preserves the 25-second silence gap between chunks.
audio_splitter.py: Main processing logic with silence detection using PyDubrun.py: Convenience entry point that imports and runs the main functionmain.py: Basic entry point (currently minimal)input/: Directory for source audio filesoutput/: Directory for split audio chunks, organized by source filename# Install dependencies uv sync # Main CLI with Typer (recommended) uv run python audio_splitter_cli.py --help uv run python audio_splitter_cli.py process --interactive uv run python audio_splitter_cli.py optimize input.wav --output optimized.flac # Alternative interfaces uv run python run.py # Simple batch processor uv run python main.py # Basic entry point
Input: MP3, WAV, M4A, FLAC, OGG, AAC, MP4 Output: FLAC format (optimized for speech transcription)
input/processed/)input/processed/ (optional)output/ ├── audio_file1/ │ ├── metadata/ │ │ ├── processing_metadata.json │ │ ├── chunks.csv │ │ └── processing_report.txt │ ├── audio_file1_full_16k.flac # Complete optimized file │ ├── audio_file1_chunk01_16k.flac # Individual chunks │ └── audio_file1_chunk02_16k.flac └── audio_file2/ ├── metadata/ ├── audio_file2_full_16k.flac └── ...
The main CLI (
audio_splitter_cli.py) provides:
Interactive Configuration:
Subcommands:
process: Main audio processing with FLAC optimizationconfig: Configuration management (show/create/edit)optimize: Single file quick optimizationanalyze: Audio file analysis without processingUser Experience:
The session summary reports the number of audio chunks created, excluding the full optimized file. This provides an accurate count of the actual splits created from the original audio.
input/processed/ by defaultprocessed subdirectory--no-move flag to keep original files in placeWhen committing changes: