The stop() method on AudioScheduledSourceNode schedules a sound to cease playback at the specified time.
stop()
MDN Reference