athena.transform.feats.write_wav¶
The model write audio sample to wav file.
Module Contents¶
Classes¶
WriteWav |
Encode audio data (input) using sample rate (input), |
-
class
athena.transform.feats.write_wav.WriteWav(config: dict)¶ Bases:
athena.transform.feats.base_frontend.BaseFrontendEncode audio data (input) using sample rate (input), return a write wav opration.
-
classmethod
params(cls, config=None)¶ Set params. :param config: contains one optional parameters:
sample_rate: the sample rate of the signal we working with.(int, default=16000).Returns: An object of class HParams, which is a set of hyperparameters as name-value pairs.
-
call(self, filename, audio_data, sample_rate)¶ Write wav using audio_data[tensor]. :param filename: filepath of wav. :param audio_data: a tensor containing data of a wav. :param sample_rate: the samplerate of the signal we working with. :return: write wav opration.
-
classmethod