Documentation
¶
Overview ¶
Package separator finds a stem separator the owner already installed (Demucs, Spleeter, audio-separator), so karaoke needs no configuration: the server looks on the PATH and in the usual places such tools are installed, and uses the best it finds. It never installs anything, and what it finds is a program on this machine, never a name from a request.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Found ¶
type Found struct {
// Name is what it is called for people: "Demucs", "Spleeter", "audio-separator".
Name string `json:"name"`
// Version is what the program says its version is, "" when it doesn't say.
Version string `json:"version,omitempty"`
// Path is the program that runs.
Path string `json:"-"`
// Words are the command, with {input} and {output}, as mediaextras.SeparatorCommand takes it.
Words []string `json:"-"`
}
Found is a separator on this machine.
type Options ¶
type Options struct {
// Dirs are searched in order. Nil means the PATH and then UsualDirs.
Dirs []string
// Python names the interpreters tried for "python -m demucs". Nil means python3, python.
Python []string
// Timeout for each question asked of a program (its version, whether a module imports).
Timeout time.Duration
}
Options say where to look. The zero value looks where a real machine has them.
func (Options) SearchDirs ¶
SearchDirs are the folders Discover looks in, in order, for the log when it finds nothing.
Click to show internal directories.
Click to hide internal directories.