Can Matlab record an audio with a sampling frequency of 800 hz
조회 수: 7 (최근 30일)
이전 댓글 표시
I am trying to write code to recieve waves of frequency between the range of 2200hz and 2400 hz with a sampling frequency of 800 hz. but i am not able to use the audio recorder code for such a low sampling frequency. can someone help me out.
thanks in advance.
댓글 수: 1
Jonas
2022년 6월 28일
this doesn't make sense to me, if you receive data in range up to 2400 Hz a sampling with 800Hz will lead to massive aliasing. shouldn't ypu use at least 2*2400Hz?
답변 (1개)
Walter Roberson
2022년 6월 28일
audiorecorder cannot be used for this purpose. Although the frequency range supported is operating system and hardware specific, audiorecorder has a built-in lower limit of 1000 hz.
You will need to use some kind of data acquisition device, such as by National Instruments or MCC, or you will need to connect the input to a Raspberry Pi or Arduino and have it record. It might be difficult to get the devices to sample for a full 1/800 seconds, as opposed to shorter samples repeated 800 times per second. The technical details of how the device decides what value to use when the input is higher frequency may turn out to be important.
Are you certain that this is what you want to do? Most people would just sample at a higher rate supported by the hardware and then downsample. But as you appear to be wanting to study the effects of aliasing, you will want to know a fair bit about how the low-rate hardware is operating.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!