sample rate (Fs) in audiowrite
이전 댓글 표시
Version: MATLAB R2018
In the document of audiowrite, it is written that the sample rate is any positive scalar between 44100 and 4800 Hz. However, the function accepts sample rates below 44100 Hz, e.g., 39063. More importantly, the document does not mention that the input sample rate must be integer, but the function throws an exception if the sample rate is not an integer.
댓글 수: 2
Star Strider
2019년 3월 25일
I would do the ‘Fs’ calculation before the audiowrite call:
Fs = 1E+7/256;
then pass that value of ‘Fs’ to the function.
Also, the limits you cite apply only to .m4a and .mp4 files, and Windows. From the documentation:
‘When writing to .m4a or .mp4 files on Windows platforms, audiowrite supports only samples rates of 44100 and 48000.’
Amir Tadayon
2019년 3월 29일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!