tfio.audio.encode_mp3

View source on GitHub

Encode MP3 audio into string.

Args:

  • input: A Tensor of the audio input.
  • rate: The sample rate of the audio.
  • name: A name for the operation (optional).

Returns:

  • output: Encoded audio.