(fnames, dtype, downmix=False)
| 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] |
no test coverage detected