ertk.preprocessing.speechbrain.SpeechBrainExtractorConfig
- class ertk.preprocessing.speechbrain.SpeechBrainExtractorConfig(model: str = '???', device: str = 'cuda', task: Task = Task.EMBEDDINGS, agg: Agg | None = Agg.MEAN, max_input_len: int = 1500000, normalise: bool = True)
Bases:
ERTKConfigSpeechBrain feature extractor configuration.
- __init__(model: str = '???', device: str = 'cuda', task: Task = Task.EMBEDDINGS, agg: Agg | None = Agg.MEAN, max_input_len: int = 1500000, normalise: bool = True) None
Methods
__init__([model, device, task, agg, ...])Inherited Methods
default()Create default config.
from_config(config)Create config object from any compatible config.
from_file(path)Create config from YAML file and optionlly override some values.
merge_with_args(args)Merge config with command-line arguments.
merge_with_config(config)Merge other config into this config.
to_dictconfig()Convert config to DictConfig.
to_file(path)Write config to YAML file.
to_string()Generate YAML string representation of config.
Attributes
Aggregation method for embeddings.
Device to run model on.
Maximum input length.
Model name or path.
Normalise audio.
Task to perform.
- task: Task = 'embeddings'
Task to perform.