Skip to main content

This provides a port of spleeter in Pytorch

Project description

torchspleeter

Torchspleeter is a simplified interface for spleeter running completely on Torch, enabling cross platform functionality. It comes with a converted version of the 2stems model built in, and largely builds off the work of Tuan Nguyen.


Installation

pip install torchspleeter

or download from this repository and

pip install .


Usage

Torchspleeter comes with both a Python API and a standard CLI for simplistic use. Once installed, you can use torchspleeter -h for instructions on how to use the CLI.

For the Python API, an example is pretty simple:

from torchspleeter.command_interface import *

outputfiles=split_to_parts(input_audio_file,output_directory)

This will return two files, the first one isolates the vocals and the second everything but the vocals, using the default 2stems model included with torchspleeter. The number of files scales to the number of models specified.

This makes torchspleeter ideal for situations specifically where you need to isolate vocals, such as generating voice datasets.

See the testing example for in depth useage.


Reference


Contributing

If you'd like to contribute, please do! Please check the CONTRIBUTING.md for details on the best way to get started.


License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torchspleeter-0.1.5.tar.gz (88.8 MB view hashes)

Uploaded Source

Built Distribution

torchspleeter-0.1.5-py3-none-any.whl (88.6 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page