コミュニティQ&A

Audiokineticのコミュニティ主導のQ&Aフォーラムへようこそ。ここはWwiseとStrataのユーザのみなさまがお互いに協力し合う場です。弊社チームによる直接のサポートをご希望の場合はサポートチケットページをご利用ください。バグを報告するには、Audiokinetic LauncherのBug Reportオプションをご利用ください。(Q&AフォーラムではBug Reportを受け付けておりませんのでご注意ください。専用のBug Reportシステムをご利用いただくことで、バグの報告が適切な担当部門に届き、修正される可能性が高まります。)

最適な回答を迅速に得られるよう、ご質問を投稿される際は以下のヒントをご参考ください。

  • 具体的に示す:何を達成したいのか、またはどんな問題に直面しているのかを具体的に示してください。
  • 重要な詳細情報を含める:Wwiseとゲームエンジンのバージョンやご利用のOSなど詳細情報を記載してください。
  • 試したことを説明する:すでに試してみたトラブルシューティングの手順を教えてください。
  • 事実に焦点を当てる:問題の技術的な事実を記載してください。問題に焦点を当てることで、ほかのユーザのみなさまが解決策を迅速に見つけやすくなります。

+5 支持

In an answer to the related question, I read "Microphone is not supported in Unity integration yet."

Does this mean the Wwise Audio Input source cannot be used from Unity? Is it still the case today? Would it need to be registered by rebuilding the integration?

Thanks :)

関連する回答: Does C# API documentation exist?
Matthieu B. (820 ポイント) General Discussion
Good afternoon, has this issue been resolved yet? We really want to use the microphone with Wwise and Unity 5!
No it hasn't.  What user-scenario you want to implement?
Hi Mathieu, I'm looking at using mic input for voice comms with Wwise providing voice FX and 3D positioning if at all possible...
Bumping this thread....
Hey, I'm currently looking into this same issue myself.  I do believe that it is possible to write your own native plug in that will pass information between the Audio Input Plug-In and your Unity C# project. I'm not 100% on everything just yet, but that seems to be the easiest, if not totally convenient, way of doing so.
We are trying to do this as well. We need to use the audio input to process the user voice. Seems the dll is written in C++ and Unity is running in C#. Any chance that an update to this dll is in the works?
Responding to Scott, you CAN write a Native (unmanaged - and "unsafe" by Unity standards) plugin that will process the C++ in C#.  

Check out these two links:

http://www.alanzucconi.com/2015/10/11/how-to-write-native-plugins-for-unity/

http://ericeastwood.com/blog/17/unity-and-dlls-c-managed-and-c-unmanaged

You're going to have to figure it out from there I suppose. I'm also doing something similar for our project. I'll try to keep this updated as I find a solution (or develop one).
Hey Jeremy, Thanks for the tip. We are about to set aside some dev time to do this, so we'll see. But I'm also not sure it will be worth it. Right now, I can't see anyway to record the audio input and kick the recording back into wwise for processing. I currently have a sound sfx object with the audio input as the source and the wwise recorder on the effects. This works great in wwise and through wwise i can put the recording back into wwise as a new sound sfx object and then assign a play event to that new object. After building the soundbanks, in unity I can call that event and play back the recording, but that's as far as I am right now. First problem is how to get the pc mic IN to the audio input. that's a c++ c# thing. then if i do get that to work how can you rebuild a soundbank after the app is built? My users will not have wwise on their computer and the generated soundbanks are moved to streaming assets for building. So after you make the executable, wwise goes away. I don't see a way to have live input, record it, put it back into wwise, process it and play it back in unity.

回答 2

+2 支持
Hi! I'm looking into integrated voice chat in our game and ran into this. It looks like Audio Input is the way to go IF it was implemented for Unity, right? Is there any information on if we can expect an implementation?

thanks!
Hjalmar V. (190 ポイント)
0 支持

I would just like to say that I solved the AKAudioInput to Wwise and made a script to copy/paste on my project blog.  I summarize how to do it in a related question https://www.audiokinetic.com/qa/4311/using-akaudioinput-in-unity

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

 

Kristina W. (490 ポイント)
...