Visualizing a wav file

18 visualizaciones (últimos 30 días)
Olalekan Adesina
Olalekan Adesina el 9 de Oct. de 2021
Comentada: Walter Roberson el 14 de Oct. de 2021
Hi everyone. I have a .rec file that contains 14 different signals. When i open the .rec file in R Studio, my target signal was at Number 8. Then, i converted the file from .rec to .wav file. Please,can someone help with how i can visualize the .wav file to see the list of the signals?
  9 comentarios
Walter Roberson
Walter Roberson el 10 de Oct. de 2021
It looks like RecRecover might be referring to https://www.wavosaur.com/forum/rec-recover-v-1-0-0-3-t1230.html ?
If a .rec file is edf format internally, we might perhaps be able to read it directly instead of trying to work with the converted .wav file.
Would it be possible for you to attach the .rec file? You would have to zip it and attach the .zip .
Olalekan Adesina
Olalekan Adesina el 10 de Oct. de 2021
The file size is above 5MB

Iniciar sesión para comentar.

Respuestas (1)

Tanmay Das
Tanmay Das el 12 de Oct. de 2021
Hi,
To my understanding, you are facing issues in reading .wav file in MATLAB. You can use audioread function to read data from the file, and receive sampled data and a sample rate for that data. For visualization, the following code snippet can be referred:
[y,fs] = audioread(filename);
dt = 1/fs;
t = 0:dt:(length(y)*dt)-dt;
plot(t,y); xlabel('Seconds'); ylabel('Amplitude');
figure
plot(psd(spectrum.periodogram,y,'Fs',fs,'NFFT',length(y)));
You can refer to audioread and periodogram documentations for further information.
  2 comentarios
Walter Roberson
Walter Roberson el 12 de Oct. de 2021
no, the issue is that in the original rec file there are marked divisions between signals, and the user wants to be able to recover the divisions in the wav file.
This depends upon the conversion process having written information into the wav file about where the divisions are, such as if the wav file has had "cue " chunks written to it. audioread ignores "cue " chunks so you cannot use audioread to read any cue information.
At the moment we are not certain that the conversion process wrote any cue chunks at all.
One possibility that we have not explored yet is that perhaps there is silence between the 14 signals, in which case perhaps silence detection could be used to find the boundaries of the signals.
Walter Roberson
Walter Roberson el 14 de Oct. de 2021
You should open a new Question for that, as it is not related to this one.
When you open the new question, you should indicate there how you can tell where the boundaries are between the categories for each participant. Also, since you are talking about "seconds", whoever responds to your new Question is going to need information about the recording frequency.

Iniciar sesión para comentar.

Categorías

Más información sobre Audio I/O and Waveform Generation en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by