New to Unity - Need help recording and outputting frequency

Hello,

I am a complete novice when it comes to Unity and coding in C# and I am trying to simply extract/record frequency from an audio clip. I’ve researched AudioClip as well as AudioSource from the Unity documentation but I still cannot achieve my goal.

Example scenario: I play an arbitrary frequency of 20 kHz from a device. I would like my Unity code to pick up the sound and display the correct frequency (20 kHz).

I hope I’m explaining it well enough. But please let me know I need to clarify anything. Thank you!

Look up FFTs, or Fast Fourier Transforms. They are used to transform time domain information (waveform data) into frequency domain information (what you display on an equalizer).

Actually, I see there is a Unity API for this:

I haven’t used it. Give it a read and a try!