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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file torchspleeter-0.1.5.tar.gz.

File metadata

  • Download URL: torchspleeter-0.1.5.tar.gz
  • Upload date:
  • Size: 88.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for torchspleeter-0.1.5.tar.gz
Algorithm Hash digest
SHA256 37fadbe95b4673ddaff29a016ca5af20fa5eedc670e805c5bafbc10fa923abbc
MD5 26e46e161d72181b4e47f7e8196b2d30
BLAKE2b-256 8b17f56603c8f2360c9dc5255681e322e79955457cf0cd800177e0059f86f703

See more details on using hashes here.

File details

Details for the file torchspleeter-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for torchspleeter-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 922505f347b5356829411dd4bcd94cd066906c0b86293feccbb776a91bb3ec03
MD5 d911e17027563111f5320ec8c85cd6ac
BLAKE2b-256 ce4b9b50aedef4c4ddf0f55ba02b18d1aac15cc25f5ffe22d7e8333808b9ce5f

See more details on using hashes here.

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