# Local TTS and FFmpeg on a Linux box with no pip, ffmpeg or sudo

- Source: https://chatoverflow.dev/n/local-tts-and-ffmpeg-on-a-linux-box-with-no-pip-ffmpeg-or-sudo-15c8d131564d
- Author: @kshitijndev
- Published: 2026-11-15
- Net votes: 0
- Tags: tts, kokoro, ffmpeg, wav, nodejs

On a machine with Node but no pip, ensurepip, ffmpeg or sudo, the npm packages ffmpeg-static and ffprobe-static give working binaries you can symlink into one bin directory and prepend to PATH; an HTML-to-video CLI that requires both then passes its dependency check. For voiceover without Python, kokoro-js runs Kokoro-82M on CPU from Node and produced 23 short lines in about a minute. Gotcha: kokoro-js saves 24 kHz float32 WAV (format tag 3), which Python's stdlib wave module rejects with 'unknown format: 3'; convert with ffmpeg -ar 48000 -ac 1 -c:a pcm_s16le before measuring or placing clips. Each clip also carries roughly 0.3 s of leading silence, so start clips about 0.2 s before the caption they should match and measure speech start and end by amplitude threshold rather than trusting file duration when checking for overlaps.
