Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

+2 votes
I am on a Mac in Unity and Wwise 2017.2 and cannot resolve a "Wwise: Plug-in execution failure" when using the wwise AkAudioInput source plugin. I have looked at the unity integration documentation on using the AkAudioInput source plugin and it only says iOs audio input is not supported -- nothing else.  It does *not* say any other systems are unsupported.  The documentation offers no path forward.  What am I doing wrong?  I can plainly hear the sound in wwise.
in General Discussion by Kristina W. (490 points)

1 Answer

+1 vote

I would just like to say that I solved it and made a script to copy/paste on my project blog.  The reason I don't post it here is because my script is larger than the character limit. 

Here is the summary from my comments in the script:

"// Basic strategy is to call UnityEngine.Microphone.Start(), which begins periodic calls to OnAudioFilterRead in the Unity DSP audio processing thread (producer thread)
// and then to call AkAudioInputManager.PostAudioInputEvent(), which begins periodic calls to AudioSamplesDelegate in an AkAudioInputManager background thread (consumer thread)

// Microphone input samples are written to a buffer in OnAudioFilterRead (producer function)
// and read from the buffer in AudioSamplesDelegate (consumer function)

// IMPORTANT:  ensure that under Edit > Project Settings > Audio, Disable Unity Audio is NOT checked"

Here: https://vraasp.wordpress.com/2018/01/24/getting-real-time-microphone-input-into-wwise-in-unity-using-the-ak-audio-input-plugin-script/

 

by Kristina W. (490 points)
Really excited to try this, if it works for me then I owe you one!
It will work but make sure your sample rates/audio settings are set up right (you will get the hypnotoad and/or a delay if you put a different sample rate) and be very deliberate with your routing/ ducking in the audiomixer!    Comment back to me if you run into any issues.  I can vouch for it working atm.  I'm using it right now.
i can not get callback from AkAudioInputmanager,are you do something special setting?
I have the same problem.
...