Skip to content

Implementation proposal for audio resample #1392

Open
@AlexFuster

Description

@AlexFuster

At Voicemod, we have made a tensorflow version of the audio resampling function from torchaudio https://pytorch.org/audio/stable/transforms.html?highlight=resample#torchaudio.transforms.Resample.

I think It would be a good alternative/complement for the current implementation of audio resampling of this repo https://www.tensorflow.org/io/api_docs/python/tfio/audio/resample for 4 reasons.

  1. Supports batches: I know that this was recently added to the current implementation)
  2. Supports gradients: Unlike the current implementation. This feature is very useful if you want to resample inside a training graph
  3. The results are as good as the ones given by the current implementation and they are close to resampy
  4. For some reason, the current implementation always adds a misalignment of size 32 or so, as one can see in the image below
    image

Tell me if you are interested

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions