MCPcopy Create free account
hub / github.com/NVIDIA/DALI / audio_decoder_pipe

Function audio_decoder_pipe

dali/test/python/decoder/test_audio.py:184–187  ·  view source on GitHub ↗
(fnames, dtype, downmix=False)

Source from the content-addressed store, hash-verified

182
183 @pipeline_def(batch_size=batch_size, device_id=0, num_threads=4)
184 def audio_decoder_pipe(fnames, dtype, downmix=False):
185 encoded, _ = fn.readers.file(files=fnames)
186 decoded, _ = fn.decoders.audio(encoded, dtype=dtype, downmix=downmix)
187 return decoded
188
189 audio_files = get_files(os.path.join("db", "audio", fmt), fmt)
190 npy_files = [os.path.splitext(fpath)[0] + ".npy" for fpath in audio_files]

Callers 1

Calls 1

fileMethod · 0.80

Tested by

no test coverage detected