DataGenerator.process_utterance does not accept file object
Created by: kvinwang
The docstring says filename accepts basestring
or file
. But it do not accept file
actually.
def process_utterance(self, filename, transcript):
"""Load, augment, featurize and normalize for speech data.
:param filename: Audio filepath
:type filename: basestring | file