How do I make it when player is in certain range of AI, play a sound

But how do I make it start when the AI is close to me?