Different length of sound files with different sampling frequencies

5 visualizaciones (últimos 30 días)
Denis Benka
Denis Benka el 31 de Mayo de 2019
Editada: Stephen23 el 31 de Mayo de 2019
Dear all,
Im currently struggling to understand what is happening. So, I created a sound using the audiowrite function (the sound is created using two different sounds but I dont think it matters) first with a sampling frequency of 44100 Hz, and another one, the sound file is the same but the sampling frequency is 48000 Hz. Now Im observing that the sound produced at 44100Hz is approx. 30sec longer than the other one (48000Hz sampling). It looks like phase shifting of some sort, but Im not sure. Any help/explanation is appreciated. I also made a amplitude/time plot for better understanding below
untitled.jpg
  8 comentarios
Denis Benka
Denis Benka el 31 de Mayo de 2019
@Stephen, yes dont mind the figure, Im just wondering how (or if) the sampling frequency is affecting the length of the sound file (in seconds). But the size (in kB) of both files seems equal even though the lengths differ, which is also kinda odd to me
Denis Benka
Denis Benka el 31 de Mayo de 2019
@Stephen, @Geoff, I think I finally understand what is happening. Those calculations are exactly what I wanted to know, shame on me I forgot about these. Thanks a lot!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

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

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by