espnet.utils.cli_writers.SoundHDF5Writer
Less than 1 minute
espnet.utils.cli_writers.SoundHDF5Writer
class espnet.utils.cli_writers.SoundHDF5Writer(wspecifier, write_num_frames=None, pcm_format='wav')
Bases: BaseWriter
Examples
>>> fs = 16000
>>> with SoundHDF5Writer('ark:out.h5') as f:
... f['key'] = fs, array