Can DALI make the length of each sample uniform while decoding the audio file?
@JanuszL is already working on this.
Since Oct 19, 2022.
- Dominant language
- C++
- Stars
- 5.8k
- Forks
- 678
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 27
Description
Hi, I would like to decode audio files (wav format) while making each sample have the uniform length.
Specifically, I am trying to implement exactly the same operation as tf.audio.decode_wav() in DALI pipeline.
While desired_samples parameter in tf.audio.decode_wav() enables audio to be cropped or padded to the requested length, it seems that nvidia.dali.fn.decoders.audio does not provide such option.
I tried to find a DALI operator that crops audio file to desired length, but I could not find one from operation reference in DALI docs.
Is there any way I can perform the desired task using DALI?
Thanks a lot.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.