How to add footsteps sounds to the default RigidBodyFPSController?

Hello,
I am looking for a c# script to add footsteps sound to the default RigidBodyFPSController which is without character controller component. I want my player to play the sound when I walk and change the sound when I run.
I am using Unity 5.6.3p2.
Thanks.

have a look at sandbooks answers here

you can add this to the walking animation and run animation of the fps character.