Different length of sound files with different sampling frequencies

5 ビュー (過去 30 日間)
Denis Benka
Denis Benka 2019 年 5 月 31 日
編集済み: Stephen23 2019 年 5 月 31 日
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 件のコメント
Denis Benka
Denis Benka 2019 年 5 月 31 日
@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 2019 年 5 月 31 日
@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!

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by