Clear Filters
Clear Filters

how to get the number of bits from a .wav file?

12 views (last 30 days)
saf asalah
saf asalah on 21 Dec 2016
Commented: KSSV on 21 Dec 2016
is there a way to calculate the number of bits from the sample of the audio wav file?

Answers (1)

KSSV
KSSV on 21 Dec 2016
Read about whos. This function will give your required information.
  2 Comments
saf asalah
saf asalah on 21 Dec 2016
this is what i got throw whos [x,fs] = audioread('brian.wav'); whos x Name Size Bytes Class Attributes
x 434288x2 6948608 double
but the file size is 1.65 MB (1,737,196 bytes)
KSSV
KSSV on 21 Dec 2016
YOu can convert bytes into bits.....1 byte = 8 bits.

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!