Skip to content

tools

AutoEncoder

Bases: Encoder

Source code in muxtools/audio/tools.py
class AutoEncoder(Encoder):
    def encode_audio(self, input: AudioFile, quiet: bool = True, **kwargs) -> AudioFile:
        # Dummy func
        ...

encode_audio(input, quiet=True, **kwargs)

Source code in muxtools/audio/tools.py
def encode_audio(self, input: AudioFile, quiet: bool = True, **kwargs) -> AudioFile:
    # Dummy func
    ...

AutoTrimmer

Bases: Trimmer

Source code in muxtools/audio/tools.py
class AutoTrimmer(Trimmer):
    def trim_audio(self, input: AudioFile, quiet: bool = True) -> AudioFile:
        # Dummy func
        ...

trim_audio(input, quiet=True)

Source code in muxtools/audio/tools.py
def trim_audio(self, input: AudioFile, quiet: bool = True) -> AudioFile:
    # Dummy func
    ...

Encoder

Bases: CLIKwargs

Source code in muxtools/audio/tools.py
class Encoder(CLIKwargs):
    lossless = False

    @abstractmethod
    def encode_audio(self, input: AudioFile, quiet: bool = True, **kwargs) -> AudioFile:
        pass

lossless = False class-attribute instance-attribute

encode_audio(input, quiet=True, **kwargs) abstractmethod

Source code in muxtools/audio/tools.py
@abstractmethod
def encode_audio(self, input: AudioFile, quiet: bool = True, **kwargs) -> AudioFile:
    pass

Extractor

Bases: CLIKwargs

Source code in muxtools/audio/tools.py
class Extractor(CLIKwargs):
    _no_print = False

    @abstractmethod
    def extract_audio(self, input: PathLike, quiet: bool = True) -> AudioFile:
        pass

extract_audio(input, quiet=True) abstractmethod

Source code in muxtools/audio/tools.py
@abstractmethod
def extract_audio(self, input: PathLike, quiet: bool = True) -> AudioFile:
    pass

HasExtractor

Bases: ABC

Source code in muxtools/audio/tools.py
class HasExtractor(ABC):
    pass

HasTrimmer

Bases: ABC

Source code in muxtools/audio/tools.py
class HasTrimmer(ABC):
    pass

LosslessEncoder

Bases: Encoder

Source code in muxtools/audio/tools.py
class LosslessEncoder(Encoder):
    lossless = True

lossless = True class-attribute instance-attribute

Trimmer

Bases: CLIKwargs

Source code in muxtools/audio/tools.py
class Trimmer(CLIKwargs):
    @abstractmethod
    def trim_audio(self, input: AudioFile, quiet: bool = True) -> AudioFile:
        pass

trim_audio(input, quiet=True) abstractmethod

Source code in muxtools/audio/tools.py
@abstractmethod
def trim_audio(self, input: AudioFile, quiet: bool = True) -> AudioFile:
    pass