You need two, maybe three things - something that's vibrating, a medium for those vibrations to propagate in, and a listener to hear it or recording equipment to pick it up
the pendulum loses momentum and stops because of gravity and wind resistance. it does not violate the law of conservation of energy because it is not gaining any more momentum than what it had started with