Audioread error: TotalSamples is 0.

5 visualizaciones (últimos 30 días)
George_bcm CHRIS
George_bcm CHRIS el 20 de Feb. de 2017
Comentada: Paolo Posa el 12 de Oct. de 2020
Dear All
I am trying to read a .wav file:
[y, Fs] = audioread('Rockblast_copy.wav')
but I get this error:
"Error using audioread (line 135) Range requested is greater than the total number of samples in the file. TotalSamples is 0."
The wav file has no issues - I can listen to it using other software. The file is ~300 MB
Any thoughts?
George

Respuestas (1)

Walter Roberson
Walter Roberson el 20 de Feb. de 2017
The fact that you can read an audio file in other software does not mean that the audio file is correct. Different software deals with broken files in different ways, and different software deals with extensions to the standard in different ways.
  4 comentarios
Walter Roberson
Walter Roberson el 22 de Feb. de 2017
You could use one of the other pieces of software you mention to re-save the file.
Also, if you are using R2016a or R2016b, it would not hurt to install the patch to sound and audioplayer, https://www.mathworks.com/support/bugreports/1445234
Paolo Posa
Paolo Posa el 12 de Oct. de 2020
is it possible to exclude/delete these files programatically?

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by