speechtotext.model.modelWrapper.MetaModelWrapper

class MetaModelWrapper(name, bases, attrs)[source]

Bases: type

Meta class for model wrapper.

Created to automaticly convert a sample before transcribing.

If the class has a ‘get_transcript_of_file’ method, wrap it

Methods

mro

Return a type's method resolution order.

wrap

Return a wrapped instance method

__call__(*args, **kwargs)

Call self as a function.

static __new__(cls, name, bases, attrs)[source]

If the class has a ‘get_transcript_of_file’ method, wrap it

mro()

Return a type’s method resolution order.

static wrap(get_transcript_of_file)[source]

Return a wrapped instance method