Set audio.pitch limits

Hi to all!
How can I do to set up in the c# script the audio.pitch limits so?

min-speed: 0.0
max-speed: 3.0

I tried to find the answer in old questions, but i don’t found it.
Thank you!

You can make a variables like:

var soundPitch : float = 0;
var maxSpeed : float = 3;
var minSpeed : float = 0;

Then change the pitch variable by making the function and control, for example:

function Update(){
    audio.pitch = (soundPitch);
    //Brackets may not be needed on the variable here.

Then set the limits:

soundPitch = Mathf.Clamp(soundPitch, minSpeed, maxSpeed);