Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tfio.experimental.audio.resample

View source on GitHub

Resample audio.

tfio.experimental.audio.resample(
    input, rate_in, rate_out, quality, name=None
)

Args:

  • input: A 2-D Tensor of type int16 or float. Audio input.
  • rate_in: The rate of the audio input.
  • rate_out: The rate of the audio output.
  • quality: The quality of the resample, 1-10.
  • name: A name for the operation (optional).

Returns:

  • output: Resampled audio.