Skip to main content

Command-line interface for MVSEP music separation API

Project description

MVSEP CLI

A command-line interface for MVSEP music separation API.

Features

  • Upload audio files and create separation tasks
  • Monitor task status in real-time
  • Download separated tracks automatically
  • Support for multiple separation algorithms and models
  • Configurable default settings
  • Support for mirror sites (China)

Installation

pip install mvsep-cli

Or install from source:

pip install -e .

Mirror Sites

MVSEP provides mirror sites for better access in different regions:

Mirror URL
main https://mvsep.com
mirror https://mirror.mvsep.com (China)

Set your preferred mirror:

mvsep config set-mirror mirror  # Use China mirror
mvsep config set-mirror main  # Use main site

Quick Start

  1. Set your API token:
mvsep config set-token YOUR_API_TOKEN

Get your API token from https://mvsep.com/user-api

  1. Run a separation task:
mvsep run audio.wav -t 49 --add-opt1 5
  1. Or upload and wait manually:
mvsep upload audio.wav -t 49 --add-opt1 5 --wait

Configuration

# Show current config
mvsep config show

# Set default output directory
mvsep config set-output-dir /path/to/output

# Set default output format (1 = wav 16bit)
mvsep config set-output-format 1

# Set polling interval in seconds
mvsep config set-interval 5

Commands

Command Description
mvsep run <file> Full workflow: upload + wait + download
mvsep upload <file> Upload and create task
mvsep status <hash> Check task status
mvsep wait <hash> Wait for task completion
mvsep download <hash> Download results
mvsep list List available separation types
mvsep list --models <type> Show models for a separation type
mvsep history Show task history
mvsep config Manage configuration

Options

Common options for upload and run:

  • -t, --sep-type - Separation type (use mvsep list to see available types)
  • -f, --output-format - Output format (default: 1 = wav 16bit)
  • --add-opt1 - Model option 1
  • --add-opt2 - Model option 2
  • -o, --output-dir - Output directory
  • -i, --interval - Polling interval in seconds
  • --wait - Wait for completion after upload
  • --timeout - Maximum wait time in seconds

Examples

# List popular separation types
mvsep list --popular

# Show models for BS Roformer (type 40)
mvsep list --models 40

# Upload with specific model
mvsep upload song.wav -t 40 --add-opt1 81 --wait

# Download previous results
mvsep download 20260227153708-abc123-vocals.wav -o ./output

Output Formats

Value Format
0 mp3 (320 kbps)
1 wav (16 bit)
2 flac (16 bit)
3 m4a (lossy)
4 wav (32 bit)
5 flac (24 bit)

License

MIT License

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

mvsep_cli-1.0.0.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mvsep_cli-1.0.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file mvsep_cli-1.0.0.tar.gz.

File metadata

  • Download URL: mvsep_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for mvsep_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 26fc8706486bcc61464fb4ae23c3cbdfc6ffb558058e857cd7d16fec505d8f71
MD5 abc2dca4640d0c88025fcda7a69e607d
BLAKE2b-256 1d2e3c2333128189658fdb05f031ae2f9cebfa675ddf976257957db20082e9ea

See more details on using hashes here.

File details

Details for the file mvsep_cli-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mvsep_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for mvsep_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b9fec9f7d8f7c49a142f534044085e4505949ae71e4450a92fe71aa0466591a
MD5 4dce3cc04ca770a90e08f58806685949
BLAKE2b-256 f68f0981adb00c50f282de37fe33d298cef30d014e0a8283d60d2d1e76521c02

See more details on using hashes here.

Supported by

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