Skip to content

MatthewWiddop/compressaudio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

compressaudio

A tool that compresses audio files by using subtitles to retain only the spoken segments.

compress-demo.mp4

Documentation

Usage: compressaudio [options] [command]

A tool that compresses audio files by using subtitles to retain only the spoken
segments.

Options:
  -V, --version              output the version number
  -h, --help                 display help for command

Commands:
  compress [options] <path>  compress an audio file
  retime <delta> <files...>  retime srt or ass subtitles
  list [options]             list supported audio or subtitle formats
  preview <path>             preview audio with subtitles to determine whether they
                             are in sync
  help [command]             display help for command

Listen to the audio to check that the subtitles are in sync with the audio.

Usage: compressaudio preview [options] <path>

preview audio with subtitles to determine whether they are in sync

Arguments:
  path        path to the audio file

Options:
  -h, --help  display help for command

Retime the subtitles after listening to the audio.

Usage: compressaudio retime [options] <delta> <files...>

retime srt or ass subtitles

Arguments:
  delta       time in seconds by which to adjust subtitle timings
  files       path to the subtitle files

Options:
  -h, --help  display help for command

Then, compress the audio with the new subtitles.

Usage: compressaudio compress [options] <path>

compress an audio file

Arguments:
  path                   path to the file or directory

Options:
  -d, --directory        indicates that the specified <path> is a directory (default: false)
  -f, --format <format>  sets the output file format, ignored if -d is set (default: ".mp3")
  -o, --output <output>  sets the output file or directory, defaults to <path>
  --threads <threads>    sets the number of worker threads to use when encoding (default: 4)
  -h, --help             display help for command

About

A tool that compresses audio files by using subtitles to retain only the spoken segments.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages