Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{{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: #590

Closed
RonKat2008 opened this issue Jan 15, 2024 · 1 comment

Comments

@RonKat2008
Copy link

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?

@t-kalinowski
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants