I'm trying to pull some audio files into Tensorflow by using tf.audio.decode_wav
.
I can see someone is looking into providing more info in the docs, but does anyone have any examples of how this should work?
tf.audio.decode_wav(
contents,
desired_channels=-1,
desired_samples=-1,
name=None
)
Args:
- contents: A Tensor of type string. The WAV-encoded audio, usually from a file.
- desired_channels: An optional int. Defaults to -1. Number of sample channels wanted.
- desired_samples: An optional int. Defaults to -1. Length of audio requested.
- name: A name for the operation (optional).
I'm guessing the contents is a tensor which has already been pulled from a file rather than a path?