I've Been Mojaved.
Tags: unity3d, osx, devtips, tips
Published: 2019-04-19 14:59:25

---
title: I've Been Mojaved.
published: true
description: How I learned the hard way that a Mojave update broke my audio capture in Unity.
tags: unity3d, osx, devtips, tips
---

{% twitter 1119013053390032896 %}

I had a stupid week. In reality, its been a rough couple weeks adding 10x to my to do list and seemingly removing none of it. Does that make me a -10x dev? 😭

{% twitter 1119013244344180737 %}

I probably don't have to tell anyone on here how many variables and magnitudes of uncertainty get added with each new framework, platform, library, and on and on. 

{% twitter 1119013416134426625 %}

Developer advocates play a key role in assisting the developer community with tutorials, how-tos, code snippets, and other supplemental resources to documentation. Some even contribute to the documentation! 

So it's not unheard of for me to wake up to a bunch of notifications on Twitter or an inbox jammed with alerts from forums, particularly after a new SDK release.

But after I wrote up a quick Text to Speech example, the traffic didn't die down.

{% twitter 1119013718346608640 %}

The SDK team has since apologized for not being super proactive about loudly declaring how significant these breaking changes are, but continued to reassure me that all old versions should still work. Speech to Text wasn't working. Devs couldn't just update the SDK version as a silver bullet.

{% twitter 1119013973834240001 %}

I spend the next few days just trying to get one of my Unity projects to throw some sort of intelligent error, or really any error at all, but it just sits there. Watson Assistant and Text to Speech continue working just fine. 

{% twitter 1119014182287040513 %}

This is now 4+ days into this adventure and getting an error about endianness only tells me that something is going on with the captured audio. It is the wrong format. 

{% twitter 1119014365481578496 %}

I have a couple of options, including changing the mic from my built in MBP mic to an external one, which thankfully my husband has in a USB headset. I adjust the sound settings, make sure I'm using the headset and not only does it work, it doesn't throw any sort of error.

{% twitter 1119014477108740101 %}

EXCUSE ME?

I check my settings (System Preferences > Security & Privacy > Microphone) and sure enough, I think I've figured it out. 

![Microphone privacy settings with Unity unchecked](https://thepracticaldev.s3.amazonaws.com/i/gvq31apad3ixyow3n4jk.png)

All of the other applications in the list are checked? What happened to Unity?

{% twitter 1119014585141530624 %}

What audio was I capturing before? Random static? Where was that coming from?

{% twitter 1119014664309022722 %}


__________________________________

Did your speech service enabled application decide to stop working after an OSX system update? I'm running Mojave 10.14.4 as of April 11, with no known issues with my built in microphone setting until this week (seemingly after this update). Don't waste a week of frustrated debugging without first checking your settings.

System Preferences > Security & Privacy > Microphone 

Make sure the application you are using to capture audio is checked. 

You're welcome in advance.