ertk.preprocessing.resample.ResampleConfig

class ertk.preprocessing.resample.ResampleConfig(sample_rate: int = 16000, filter: str = 'kaiser_fast')

Bases: ERTKConfig

Resample configuration.

__init__(sample_rate: int = 16000, filter: str = 'kaiser_fast') None

Methods

__init__([sample_rate, filter])

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

filter

Resampling filter.

sample_rate

Target sample rate.

filter: str = 'kaiser_fast'

Resampling filter.

sample_rate: int = 16000

Target sample rate.