question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Discussion] API example

See original GitHub issue

Anyone care to post example code of how to use the API?

Goal: Call separate_to_file()

EDIT I forgot to mention that I’m trying to do whatever is discussed here https://github.com/deezer/spleeter/issues/112

To build the model once and re-use the model.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
Scylla2020commented, Nov 28, 2019

Okay no probs, So for multiple files it would be something like this:

from spleeter.separator import Separator

separator = Separator('spleeter:2stems')

# List of input to process.
audio_descriptors = ['audio1.mp3', 'audio2.mp3']

# Batch separation export.
for i in audio_descriptors:
    separator.separate_to_file(i, destination='OutputFolder', synchronous=False, bitrate='320k', codec='mp3')



# Wait for batch to finish.
separator.join()

I will share a complete script soon as I have been implementing an user interface as well.

1reaction
Scylla2020commented, Nov 28, 2019

Hi what exactly are you having trouble with? To use the function, its pretty much copy and paste from the docs https://github.com/deezer/spleeter/wiki/4.-API-Reference then you specify any extra parameters accordingly. Let me know if you getting any errors

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discussions API - GitLab Docs
Discussions are a set of related notes on: Snippets; Issues; Epics; Merge requests; Commits. This includes comments and threads and system notes.
Read more >
Using the GraphQL API for Discussions
Learn how to use the GitHub Discussions GraphQL API. The GitHub Discussions GraphQL API allows you to get, create, edit, and delete discussion...
Read more >
Discussions · Api · Help · GitLab
Discussions API (FREE). Discussions are a set of related notes on: Snippets; Issues; Epics (ULTIMATE); Merge requests; Commits. This includes system notes, ...
Read more >
Discussions · Api · Help · GitLab
Discussions are set of related notes on snippets, issues or epics. Issues. List project issue discussions. Gets a list of all discussions for...
Read more >
Create Discussion - Rocket.Chat Developer
REST API Create Discussion Methods. ... It requires at least one of the following permissions: start-discussion OR ... Example. Required. Description ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found