You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the toolkit in Unity on a MacBook Pro 2017 or later, the Speech to Text fails with an error. It seems to work fine on an iMac as well as Windows machines.
[SpeechToText.OnListenMessage()][ERROR] Error: could not detect endianness after looking at the tail 0 non-zero byte string in a data stream of 22050 bytes. Is the bytestream really PCM data?
The text was updated successfully, but these errors were encountered:
This is apparently caused by Unity not getting correct security rights to the Mic.
To give Unity the proper security rights, do the following based on this Unity Issue.
This process involves rebooting the computer into recovery mode so that you have the ability to make changes to the security settings via the Terminal.
Disable SIP: Go into recovery mode (hold CMD+R when you restart your Mac) Don’t be afraid, we are not doing anything crazy.
After that open Terminal (it should be accessible from one of the Menus at the Top) Type in csrutil disable and hit enter. Then reboot your Mac normally.
Open Terminal and type in: sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db and hit enter
For microphone access, type in at the sqlite prompt: INSERT INTO access VALUES(‘kTCCServiceMicrophone’,‘com.unity3d.unityhub’,0,1,1,NULL,NULL,NULL,‘UNUSED’,NULL,0,1541440109); and hit enter
For camera, which is not needed for this fix, type in: INSERT INTO access VALUES(‘kTCCServiceCamera’,‘com.unity3d.unityhub’,0,1,1,NULL,NULL,NULL,‘UNUSED’,NULL,0,1541440109); and hit enter
check in your SystemPreferences/Security&Privacy and Unity hub should now show up in both mic (and cam)
reboot in recovery mode again (CMD+R), open terminal again, type in: “csrutil enable” and hit enter, to enable SIP again
When running the toolkit in Unity on a MacBook Pro 2017 or later, the Speech to Text fails with an error. It seems to work fine on an iMac as well as Windows machines.
[SpeechToText.OnListenMessage()][ERROR] Error: could not detect endianness after looking at the tail 0 non-zero byte string in a data stream of 22050 bytes. Is the bytestream really PCM data?
The text was updated successfully, but these errors were encountered: