Search Unity

New to Unity - Need help recording and outputting frequency

Discussion in 'Scripting' started by UnityNewbie001, Apr 16, 2019.

  1. UnityNewbie001

    UnityNewbie001

    Joined:
    Apr 16, 2019
    Posts:
    2
    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!
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,689