I've been observing an audio file under scipy.io.wavfile
which has a framerate of 44100 per sec or hz
and total frames are 9745238
and the duration of the audio is 220 secs
by the file properties but it should be 220.9804535147392
and has 2
channels.
after reading a file it returned me a 9745238 X 2
matrix of 16bit signed int
as expected
where 1 column is channel 1 data and 2 column is the channel 2 data for respective 9745238 frames
so my question is there any robust method find these values (with 1, 2 channel consecutively i.e. each row or the matrix) per second or millisecond?
any guesses?
Edit 1
I've referred to a very intuitive discussion here
and i guess all i need is bitrate which is bitrate = sampleRate * bitDepth
but how can i get bit depth is it sample size / sample width
or something else.