Microphone giving only zero-samples for 2019b on macOS 10.14 Mojave

조회 수: 2 (최근 30일)
Knut
Knut 2019년 10월 30일
댓글: trinh do 2021년 1월 12일
What I did:
recObj = audiorecorder;
recordblocking(recObj, 5);
y = getaudiodata(recObj);
While talking out loud.
Expected for y to contain audio data.
Observed that y contains only 0-samples:
unique(y)
ans =
0
Apple have introduced microphone (and webcam) privacy in macOS 10.14. It seems that applications have to "opt-in" in order for the user to get a pop-up asking for permission to use these devices. Is it possible that Mathworks forgot to do this?
Opening '/Applications/MATLAB_R2019b.app/Contents/Info.plist', I see no references to '«Information Property List -> Privacy - Microphone Usage Description»'. Given that, I see no possibility that microphone can be usable on macOS 10.14 for MATLAB 2019b?
  댓글 수: 3
Atli Örn Friðmarsson
Atli Örn Friðmarsson 2019년 11월 5일
In step nr. 2) - How do you access the microphone?
trinh do
trinh do 2021년 1월 12일
cd Applications/MATLAB_2019b.app/bin
./matlab
After running ./matlab by terminal, you must run some code using microphone like:
recObj = audiorecorder;
recordblocking(recObj, 5);
y = getaudiodata(recObj);
You will get access the microphone request.
Thanks @Knut, It worked.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by