The createDelay() method of the which is used to delay the incoming audio signal by a certain amount of time.
createDelay()
MDN Reference