Audio Pitch

Hi there!

I really want to know
How to get Pitch value or unique data from from Audio Source? with audio clip file and that clip file has been recorded or just a normal sound without recorded.

I still having issue because when I get AudioSource.pitch, But I always got 1 maybe not actual pitch from a clip file.

Thanks!

This property controls the rate of playback, eg, how fast the samples of a given piece of audio are played back.

It has nothing to do with the tonal pitch of a given piece of audio.

If you want to get the frequency spectrum of a piece of audio, this is the API:

https://docs.unity3d.com/ScriptReference/AudioSource.GetSpectrumData.html

1 Like

Thank you very much I will try.