athena.transform.audio_featurizer¶
The model provides a general interface for feature extraction.
Module Contents¶
Classes¶
AudioFeaturizer |
Interface of audio Features extractions. |
-
class
athena.transform.audio_featurizer.AudioFeaturizer(config={'type': 'Fbank'})¶ Interface of audio Features extractions.
-
dim¶ return the dimension of the feature if only ReadWav, return 1
-
num_channels¶ return the channel of the feature
-
__call__(self, audio=None, sr=None, speed=1.0)¶ extract feature from audo data :param audio data or audio file :sr sample rate :return feature
-
__impl(self, audio=None, sr=None, speed=1.0)¶ :param audio data or audio file, a tensor :sr sample rate, a tensor :return feature
-