Multiple audio listeners

If I want to have agents with “ears”, meaning that I want the agents in a scene to respond to some audios, how do I do that?

Write your own component that searches for AudioSources and calculates the distance to them, checks whether they’re playing, etc.

Thanks.