Pretty Straight forward task. If you want a rigid system we can go with the arduino's hook it up to a sensor that will be able read if the ball passes through the hoop and plays a recorded sound, but if you need to build a smart system, where you get to control everything from what sounds to play and setting the thresholds for the sensors to trigger that can be done to, feel free to check my profile for some of my past projects and reviews and text me back to discuss the project further.