Skip to content

A terminal audio file slicer that works by timestamps.

License

Notifications You must be signed in to change notification settings

ArturoAHR/slixer

Repository files navigation

Slixer

A terminal audio file slicer that works by timestamps.

Usage

To use slixer you will need an audio file and a text file with timestamps, the timestamps must have a timestamp in the hh:mm:ss or mm:ss format at the start or the end of each line and the title beside it, so for example:

00:00:00 Segment 1
Segment 2 [00:20]
(00:01:00) - Segment 3

Are all valid timestamps, you can preview how the timestamps are being set using the -p or --preview flags.

After having these two files, you can slice an audio file based on the timestamps in the following manner.

slixer /path/to/audio.mp3 -t /path/to/timestamps.txt

If we were to use the example timestamps, the result will be the creation of three files called Segment A.mp3, Segment B.mp3 and Segment C.mp3 in the directory that this commands was run.

To set the artist tag of all the produced files use the -a or --artist tags.

Dependencies

For usage with non-wav formats such as mp3, installing ffmpeg or libav and adding them to your PATH environment variable is necessary. You can follow pydub's guide to set ffmpeg or libav up.

Installation for Development

Make sure you have Pipenv installed and are in a virtual environment with:

pipenv shell

After you're inside a virtual environment, you can install the dependencies needed for development with:

pipenv install --dev

To build an executable you may use:

invoke build

The executable will be generated in the dist directory.

Other Development Commands

invoke lint

Lints the project to find issues.

invoke lint --fix

Fixes any lint issues the Black formatter can solve.

About

A terminal audio file slicer that works by timestamps.

Resources

License

Stars

Watchers

Forks

Languages