MATLAB Answers

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

24 ビュー (過去 30 日間)
Knut 2019 年 10 月 30 日
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:
ans =
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/', 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?

  2 件のコメント

Knut 2019 年 10 月 31 日
1) Start MATLAB from terminal:
cd Applications/
2) Attempt to access the microphone using the script above.
3) Get a popup asking if terminal should have access to the microphone
4) Answer "yes"
5) Observe that MATLAB now gets non-0 microphone samples
Atli Örn Friðmarsson
Atli Örn Friðmarsson 2019 年 11 月 5 日
In step nr. 2) - How do you access the microphone?


回答 (0 件)




Community Treasure Hunt

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

Start Hunting!

Translated by