Ahhhhh… totally different thing…
If you want random sounds coming apparently from the walls around the player, I’d use a line trace. If you hit a wall / ceiling etc, then make a sound eminating from the impact point.
How does that sound ( so to speak )?