16bit Audio data: 2Bytes to double dec conversion

조회 수: 14 (최근 30일)
mh
mh 2021년 1월 10일
편집: mh 2021년 1월 10일
When I use either uiopen or audioread, my 16bit(2Bytes) wav file will be converted into double(8Bytes).
How can I read my data in 2Bytes order?
I tried typecast(wavfile, 'int16') but they are in 8Bytes order.
I also tried dec2hex but the same thing, it is 64bit data.
Do I lose 2Byte format when I read audio data into Matlab?
Something looking for the equivalent function of bytearray() or list[] in Python.
Thank you

채택된 답변

Walter Roberson
Walter Roberson 2021년 1월 10일
use the 'native' option for audioread()

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by