Skip to main content

Media Tools hero image showing audio, video, and text workflows converging into a command-line media utility

Media Tools

Cross-platform command-line helpers for everyday media jobs: transcribe audio and video, convert GIFs to MP4, and render text to speech with Piper.

Media Tools is built as a normal Python package with one CLI, media-tools, and small optional file-manager wrappers. It is intended to work on Windows, macOS, and Linux without tying the project to one desktop environment.

What It Does

  • Transcribes audio and video to .txt and .vtt using faster-whisper.
  • Converts animated GIFs to browser-friendly .mp4 files using ffmpeg.
  • Renders text files to .wav audio using Piper TTS voices.
  • Installs into a local .venv with setup helpers for Linux, macOS, and Windows.
  • Keeps the core implementation in reusable Python modules under src/media_tools/.

Quick Install

Linux and macOS:

scripts/setup.sh --install-system-deps --download-piper-voice

Windows PowerShell:

.\scripts\setup.ps1 -InstallSystemDeps -DownloadPiperVoice

These commands create .venv, install the Python package and dependencies, optionally install ffmpeg, and optionally download the default Piper voice files.

For more install options, see docs/INSTALLATION.md.

Quick Start

media-tools transcribe path/to/file.mp4
media-tools gif-to-mp4 path/to/animation.gif
media-tools speak path/to/script.txt

Equivalent module form:

python -m media_tools --help

Commands

Transcribe Media

media-tools transcribe interview.mp4

Outputs:

  • interview.txt
  • interview.vtt

Useful options:

media-tools transcribe interview.mp4 --model small --language en --output-dir transcripts

Convert GIF to MP4

media-tools gif-to-mp4 clip.gif

Outputs:

  • clip.mp4

Useful options:

media-tools gif-to-mp4 clip.gif --output-dir converted

Speak Text with Piper

media-tools speak narration.txt

Outputs:

  • narration.wav

Useful options:

media-tools speak narration.txt --voice en_US-lessac-high --output-dir audio

More examples are in docs/USAGE.md.

Requirements

  • Python 3.10 or newer
  • Internet access during first install so pip can download Python dependencies
  • ffmpeg on PATH for GIF conversion
  • Piper voice model files for text-to-speech

Supported automatic ffmpeg installers:

  • Linux: apt-get, dnf, yum, pacman, zypper, or apk
  • macOS: Homebrew
  • Windows: winget, Chocolatey, or Scoop

Piper Voices

By default, media-tools speak looks for en_US-lessac-high.onnx and en_US-lessac-high.onnx.json in the platform cache directory:

  • Windows: %LOCALAPPDATA%\media-tools\Cache\voices\piper
  • macOS: ~/Library/Caches/media-tools/voices/piper
  • Linux: ${XDG_CACHE_HOME:-~/.cache}/media-tools/voices/piper

You can override this with MEDIA_TOOLS_PIPER_VOICE_DIR, --voice-dir, or --model-path.

Documentation

Development

Run the pure unit tests without requiring Whisper, Piper, or ffmpeg at test time:

PYTHONPATH=src python -m unittest discover -s tests

Project layout:

  • src/media_tools/ core package and CLI
  • scripts/ optional setup and file-manager helper scripts
  • tests/ unit tests for pure logic
  • assets/ README and marketing assets
  • docs/ public documentation

License

MIT. See LICENSE.

Metadata

Release files for voxreel 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for voxreel 0.1.4
File Size Uploaded Provenance Actions
voxreel-0.1.4.tar.gz 10.3 kB Without provenance Details for voxreel-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for voxreel 0.1.4
File Interpreter ABI Platform Actions
voxreel-0.1.4-py3-none-any.whl Python 3 none any Details for voxreel-0.1.4-py3-none-any.whl

Total release size: 19.9 kB

Release files / voxreel-0.1.4.tar.gz

Download URL voxreel-0.1.4.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8f3a323903fce385dca1c680b82fcda98843d8ff520981b44f48299237f849f3
BLAKE2b-256 checksum
How to use checksums
599124657c3f6265decf47908de8a1922c658ce29eb08ea447b00051887b812d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / voxreel-0.1.4-py3-none-any.whl

Download URL voxreel-0.1.4-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
614b7b58f35980ebcc0389dfaa6956b6b8776e152d02d3f4a52eba6778e865c4
BLAKE2b-256 checksum
How to use checksums
d354773ae38449a0614d57a9d015a0e4fb37e90b785ef2a829db354e07625308
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for voxreel 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page