macOS Catalina Microphone Will Not Record

조회 수: 3 (최근 30일)
neruk41
neruk41 2019년 11월 7일
댓글: Walter Roberson 2019년 11월 14일
recording = audiorecorder;
disp('Initiate Recording') % clues user that the recording has started
recordblocking(recording, 1.5); % records a sound for 1.5 sec, default sampling frequency is 8000 Hz
disp('End') % clue user that the recording has ended
play(recording) % plays the recorded sounds
recordingD = getaudiodata(recording); % stores data in a double format array
I am attempting to use the above code to record audio from Matlab, but the recordingD array is always 0 no matter what. I have tried using my MacBook Pro's built in microphone and two external microphones to no avail. Please help!
  댓글 수: 9
Walter Roberson
Walter Roberson 2019년 11월 14일
Experiment with
/Applications/MATLAB_R2019b.app/bin/matlab
Walter Roberson
Walter Roberson 2019년 11월 14일
open /Applications/MATLAB_R2019b.app
appears to work as well to start MATLAB. I do not know if it would be started with the access you need, though; I would be more confident of that with running the /bin version.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2019년 11월 8일
In system preferences you need to give matlab access to the microphone.
Possibly you will need to Unlock and then + to add a new app. I do not have Catalina so I do not have that preference myself.
However I saw a posting recently that said that is not working for some people. If I recall correctly the person was working with High Sierra, and indicated that as being the first MacOS with that system preference.

카테고리

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

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by