# AI Helpers > A BSD-3-Clause suite of 18 Python libraries for AI development, organized into groups: > Core (OS), Audio & voice (audio, vocal diarization/transcription, speech synthesis, spoken conversation), > Video & capture, Media acquisition (YouTube, podcast), Storage & transfer (S3, SFTP), > and Misc (Markdown → DOCX/PPTX/PDF, content-addressed caching, PCA positioning maps, > hardware-aware local LLM/VLM selection over Ollama, approximate-nearest-neighbour > vector-search routing, and private site search on PHP hosting). > By Warith Harchaoui, Mohamed Chelali and Bachir Zerroug. Online since April 2024. Home: https://deraison.ai/ai-helpers/ Call to action: star the suite on GitHub (https://github.com/warith-harchaoui/ai-helpers). Then, if a helper serves you, star its own repository too (https://github.com/warith-harchaoui/); every library below links to it. FAQ: https://deraison.ai/ai-helpers/#faq Releases (Atom feed): https://deraison.ai/ai-helpers/releases.xml Install: every helper is its own package on PyPI — install by name, e.g. `pip install os-helper audio-helper vocal-helper youtube-helper md2star`. Install (Rust): the six Rust rewrites are on crates.io — `cargo add audio-helper-rs capture-helper-rs podcast-helper-rs youtube-helper-rs`, or `cargo install md2star-rs` for its binaries (`md2star-rs`, `md2docx`, `md2pptx`). Install (Rust, speech): `cargo add vocal-helper-rs --features onnx`, plus `cuda`, `tensorrt`, `coreml`, `directml` or `openvino` for an accelerator. Surfaces: every helper exposes the same ones: a Python API, a click CLI (os-helper, the foundation, ships none), a FastAPI HTTP server, an MCP tool set mounted on that same app via `fastapi-mcp`, and an installable Claude Code / OpenCode skill under `skills//`. Most add a minimal browser GUI. Containers: 14 of the 18 pair a Dockerfile with a `docker-compose.yml` that carries the port, environment and health probe, plus the companion service that helper needs (MinIO, a test SFTP server, Ollama, Qdrant / pgvector) behind a Compose profile. Triggers: each repo carries a root `TRIGGERS.md` — the exhaustive catalogue of what should and should not reach for that helper — mirrored into `skills//references/triggers.md` and, in 17 of the 18, enforced by `scripts/check_triggers.py` in the test suite. ## Libraries ### Core - [OS Helper](https://github.com/warith-harchaoui/os-helper): the shared foundation every other helper builds on: OS and hardware detection, process execution, paths and files, temporary files, hashing, config loading, wall/CPU/GPU timers and gettext catalogues. No command line of its own. An optional Tree Radar page (`os-helper-gui`) draws disk usage as a treemap; since 4.1.1 it embeds D3 and works offline. ### Audio & voice - [Audio Helper](https://github.com/warith-harchaoui/audio-helper): load (with resampling and mono downmix), convert, split and concatenate audio; silence and room tone; MFCC similarity and Mel/MFCC features; optional Demucs source separation; a recipe canvas GUI at `/gui`. Also in Rust: [audio-helper-rs](https://crates.io/crates/audio-helper-rs), file-level audio utilities on ffmpeg/ffprobe, including `load`/`save` round-tripping of f32 PCM (on crates.io rather than PyPI, a smaller surface). - [Vocal Helper](https://github.com/warith-harchaoui/vocal-helper): async producer/consumer pipeline turning audio into diarized, transcribed utterances plus an optional rolling summary from a local model, live or over a whole recording. Since 5.0.0 the defaults are Nemotron 3 diarization and Nemotron 3.5 transcription (whisper.cpp when the language is given), both in ONNX without torch; the diarization graph downloads once from deraison.ai and live diarization latency is 1.04 s. pyannote, NeMo and sherpa-onnx on request; paid hosted modes (Gladia, ElevenLabs Scribe, pyannoteAI) only when named with a key. Also in Rust: [vocal-helper-rs](https://crates.io/crates/vocal-helper-rs) 0.2.0, the Nemotron diarization and transcription paths through ONNX Runtime, with the execution provider (CUDA, TensorRT, CoreML, DirectML, OpenVINO or CPU) chosen by the caller, `VOCAL_HELPER_PROVIDER` or a measurement on the device, falling back to the CPU; CUDA needs CUDA 13 and cuDNN 9, and no NVIDIA GPU has run it yet (on crates.io rather than PyPI, a smaller surface). - [Speaker Helper](https://github.com/warith-harchaoui/speaker-helper): speech synthesis that runs in your process rather than behind a server. Say a sentence, stream a reply, or narrate a document with the timed track that lets a page follow along. Seven engines (Kokoro, OpenVoice, Chatterbox, Kyutai, audio8, qwen3tts, ElevenLabs) behind a router that picks from measured evidence: Kokoro when streaming, Chatterbox offline. OpenVoice, Chatterbox, audio8 and qwen3tts clone voices; ElevenLabs is the one paid cloud engine, used only when named. The inverse of Vocal Helper: text in, speech out. - [Discussion Helper](https://github.com/warith-harchaoui/discussion-helper): hold a spoken conversation at the microphone — listen, answer, speak, and stop the moment the user cuts in. The loop over Vocal Helper (hearing), a local model (answering) and Speaker Helper (speaking): one floor holder at a time, barge-in that discards queued audio rather than draining it, and a per-exchange latency breakdown naming which stage to fix. Listens through Vocal Helper 5 (whisper.cpp when the language is named, Nemotron 3.5 otherwise). ### Video & capture - [Video Helper](https://github.com/warith-harchaoui/video-helper): video work on ffmpeg: validation, conversion, trimming, multi-backend frame extraction (VidGear/PyAV/ffmpeg pipe), optical flow, compression, concatenation, overlays, burned-in subtitles, SRT/VTT conversion, and matching on-screen faces to speakers. - [Capture Helper](https://github.com/warith-harchaoui/capture-helper): live multi-source capture layer. Camera and microphone iterators (composing with the Video Helper and Podcast Helper contracts) plus a browser scene configurator to design and preview multi-source scenes. Also in Rust: [capture-helper-rs](https://crates.io/crates/capture-helper-rs), live microphone capture via cpal, no ffmpeg needed; a device that fails mid-capture ends the frame iterator and says why (on crates.io rather than PyPI, a smaller surface). ### Media acquisition - [YouTube Helper](https://github.com/warith-harchaoui/youtube-helper): download video/audio/thumbnails from YouTube, Vimeo, DailyMotion, Twitch and the other sites yt-dlp knows, plus ffmpeg post-processing, stream catalogues, direct-URL resolution, and no-API engagement metadata and comments; failed downloads retry in steps (browser cookies, then Tor). Also in Rust: [youtube-helper-rs](https://crates.io/crates/youtube-helper-rs), a typed wrapper around the yt-dlp binary — metadata, audio download in a chosen format, and direct media-URL resolution for live streams (on crates.io rather than PyPI, a smaller surface). - [Podcast Helper](https://github.com/warith-harchaoui/podcast-helper): universal audio-stream consumption (URL-in to PCM-out) from files, direct URLs, RSS/Atom feeds and any yt-dlp source, with an anti-aliasing filter before every downsampling; Spotify and Apple Podcasts are refused with a hint to use the RSS feed. Also in Rust: [podcast-helper-rs](https://crates.io/crates/podcast-helper-rs), URL-in/PCM-out, delegating yt-dlp sources to youtube-helper-rs, with a resolve-only path for live streams that never finish downloading (on crates.io rather than PyPI, a smaller surface). ### Storage & transfer - [Bucket Helper](https://github.com/warith-harchaoui/bucket-helper): AWS S3 and S3-compatible object storage (MinIO, Backblaze B2, DigitalOcean Spaces, Cloudflare R2, Wasabi) via boto3. - [SFTP Helper](https://github.com/warith-harchaoui/sftp-helper): drive SFTP servers through the system OpenSSH `sftp` client: files or whole directories (one tar.gz stream), resume, list, stat, delete, mkdir and a remote_tempfile helper, with host-key checking always strict and SSH key authentication. ### Misc - [md2star](https://github.com/warith-harchaoui/md2star): Markdown to DOCX/PPTX/PDF bridge built on Pandoc, with curated branded templates, Mermaid diagrams, LaTeX math and BibTeX bibliographies. A `twin` command runs the reverse path: it reconstructs an editable Markdown file plus an `assets/` folder from a PDF (or anything LibreOffice converts to one), and with `--diagrams` can re-author node-and-edge figures as Mermaid. `audit` checks a deck for overlaps, off-canvas shapes and text that is too small; `--smart-layout` uses a designer template's own layouts, with `--min-pt` as a floor on text size; an image's title prints as its photo credit (3.13). A local browser GUI (`md2star gui`) gives a live PDF preview. PyPI: `pip install md2star`. Also in Rust: [md2star-rs](https://crates.io/crates/md2star-rs) 0.5.0, Markdown → DOCX/PPTX/PDF plus `twin` (DOCX/PPTX back to Markdown) and `audit`, with citations, native equations and md2star's templates, in pure Rust: no Pandoc, no LibreOffice, no subprocess; the library type-checks for iOS and Android in CI. PDF back to Markdown, full CSL and the visual judge stay with the Python version (on crates.io rather than PyPI, a smaller surface). - [Wallet Helper](https://github.com/warith-harchaoui/wallet-helper): never run the same heavy call twice. Persistent, content-addressed memoization (keys on a file's content or bytes, not just arguments) plus single-flight so concurrent identical calls collapse into one, in-process and, via a fenced SQLite lease or an optional HTTP dedup server, across processes and hosts. A local-first toolbox, close in spirit to OS Helper. - [Standpoint](https://github.com/warith-harchaoui/standpoint): turn a comparison table (options as rows, criteria as columns, numbers in the cells) into a labelled 2D positioning map, a short written analysis and a YAML of coordinates, in one command. Ordinary PCA plus the hand-work: orient around a reference option, name the axes in plain words in the table's own language, colour and label the points. Local-first (figure hand-authored as SVG and rasterised via resvg; axis names come from a local Ollama model routed through Best Engine AI Helper). PyPI: `pip install standpoint`. - [Best Engine AI Helper](https://github.com/warith-harchaoui/best-engine-ai-helper): pick and pull the best local LLM/VLM for the current machine. It detects available memory (Apple Silicon unified pool, NVIDIA VRAM, or system RAM), consults a bundled model catalog, selects the highest-scoring model that fits a configurable safety headroom, pulls it via Ollama, and writes an env file downstream projects source. Models that cannot emit valid structured JSON are never auto-selected. It also plans text-to-image runs, sizes and streams models too large to load, and serves an OpenAI-compatible `/v1` endpoint where `model="best"` resolves per request. `catalog update` and `hardware update` refresh the cached model and machine facts, and a bilingual browser GUI (`best-engine-ai-helper gui`) shows the hardware snapshot and the recommendation. Local-first (models run through Ollama). PyPI: `pip install best-engine-ai-helper`. - [ANN Router](https://github.com/warith-harchaoui/ann-router): the vector-search sibling of Best Engine AI Helper — same philosophy, measure the criteria, select the engine, return a discussable rationale, applied to approximate-nearest-neighbour search. Describe an ANN problem in measured terms (dataset size, dimensionality, recall target, update pattern, memory budget) and it selects, justifies, and can instantiate the right backend among exact (brute force), turbovec, HNSW (hnswlib), FAISS (IVF/PQ), Annoy, Qdrant and pgvector. Dependency-free at import time: each engine's optional dependency loads lazily, and a backend whose dependency is absent simply reports itself unavailable while the router routes around it. An indispensable component for RAG. PyPI: `pip install ann-router`. - [Web Search Helper](https://github.com/warith-harchaoui/web-search-helper): search a private corpus (a manuscript, a course, an internal knowledge base) from a website whose only server is PHP, without publishing it. You cut, embed and index the corpus on your machine; one `search.php` answers each question with BM25 plus cosine similarity, fused, and returns the few sentences that answer it or an honest refusal, never the rest of the corpus. The question is embedded in the visitor's browser (the sentence encoder comes once from a CDN). Optionally a small language model, chosen for the visitor's machine and line by Best Engine AI Helper, writes the answer from the excerpts in the browser and cites them. French and English out of the box, one index per language. PyPI: `pip install web-search-helper`. - [Elbow Helper](https://github.com/warith-harchaoui/elbow-helper): noise-robust knee/elbow detection that reports a knee with uncertainty or explicitly abstains, rather than always returning a point estimate on a straight line or on pure noise. Wraps a from-scratch, NumPy-only knee locator in a conservative decision procedure — strong, unique, persistent, reproducible, and unlikely under a no-knee model — prioritising fewer false positives over never abstaining. Also exposes `robust_knees` for the multi-knee case. Its only dependencies are `numpy`, `click` and `os-helper`, including for its hand-authored SVG diagnostic figure. PyPI: `pip install elbow-helper`. The seven above form the Misc group. Six of the eighteen also have an independent Rust rewrite, noted inline above (separate GitHub repos, published on crates.io rather than PyPI, a smaller surface, not a drop-in replacement). ## License BSD-3-Clause for the 18 bundled helpers (same as scikit-learn / numpy / scipy).