NVIDIA / NVIDIA/DALI

Can DALI make the length of each sample uniform while decoding the audio file?

Open
#4,372 3 comments 0 reactions 1 assignee View on GitHub

@JanuszL is already working on this.

Since Oct 19, 2022.

audio enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.