How can I add sound to walk animation please?

Hello , I have got walking animation and sprint script.When i walk, the animation works normally, when i sprint, the animation works normally, too.I only want to add the footstep sounds, I really dont know how?Please help me, I can´t find any tutorial to this :confused:

Sorry for my bad English, Im from Czech republic.

Attach audio source to your player controller, and put your sound there choosing to not to play at start.

Than you simply play the sound when required (check Unity - Scripting API: AudioSource)

You can play audio whenever you hit your arrow (or however you are controlling your player) or in the animation add events that will call methods in your script when animation starts.

Here is a little example:
Make sure you add an audio source in the object that has this script.

private var footsound : AudioSource;
var walking :boolean= true;
function Update()
{
var factory = gameObject.GetComponents(AudioSource);
footsound = factory[0]; // 0 is the index number,for another sound it will be 1

if (walking==true)//walking would be a variable ,that makes the script aware the the player walks
	{
		if(!footsound.isPlaying)
		{
			footsound.Play();
			footsound.loop = true;
		}
	}
	
	else
	{
		footsound.Stop();
		
	}
}