rstudio / tensorflow

TensorFlow for R

Home Page:https://tensorflow.rstudio.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

{{function_node __wrapped__DecodeWav_device_/job:localhost/replica:0/task:0/device:CPU:0}} Bad format chunk size for WAV: Expected 16 or 18, but got40 [Op:DecodeWav] name:

RonKat2008 opened this issue · comments

I am currently trying to compile this code:
file_contents = tf.io.read_file(Not_Parkinson_File)
wav, sample_rate = tf.audio.decode_wav(file_contents, desired_channels=1)
wav = tf.squeeze(wav, axis=-1)
sample_rate = tf.cast(sample_rate, dtype=tf.int64)
wav = tfio.audio.resample(wav, rate_in=sample_rate, rate_out=16000)
And I am getting this error : {{function_node _wrapped__DecodeWav_device/job:localhost/replica:0/task:0/device:CPU:0}} Bad format chunk size for WAV: Expected 16 or 18, but got40 [Op:DecodeWav] name:
Does anyone know how to fix this?

Are you using the R interface to TensorFlow? The above looks like python-only code. This repo is specific to the R interface to TensorFlow.