Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Is it possible to get Spectrum data without making a custom plugin in Unity?

+1 vote

I'm wondering if it's possible to get spectrum data similarly to how you do it in Unity's built in audio engine.

In Unity you just call AudioSource.GetSpectrumData(float[] samples, int channelFFTWindow window). 

Googling around every answer from a couple years back mentions the need to make your own custom plugin or some weird workarounds to do it. Seeing as it's a feature available in Unity already, and also in FMOD (see here: https://qa.fmod.com/t/getting-spectrum-of-master-channel-in-unity/12579) I wondered if it was alreay available in Wwise.

Thanks!

asked Nov 11, 2020 in General Discussion by Martin P. (110 points)

1 Answer

0 votes
Hi,
Perhaps you could try using Puredata+Heavy to create a multi-band volume meter plugin for your design.
You can see how it's done in our recent live Stream:
Located at: https://youtu.be/F06FphCm6Is?t=4691
Throughout the broadcast,

I showed the creation of the Puredata patch,
the download and configuration of Heavy,
and the deployment of the plugin.
This solution has some limitations,
but is perfectly fine if you are working on an experimental project!
In short,
a custom plug-in is used to take the volume of different frequency bands from the audio signal and output them as RTPC values.
Hope this can help you,
any follow-up questions are welcome to add in the following
Best regards,
Hou Chenzhong
answered Nov 11, 2020 by Hou Chenzhong (Audiokinetic) (5,990 points)
Thanks for answering! Sadly I need the exact spectrum sample, because I need to send that to a plugin to record the audio output from Wwise. It's used for replays.
...