I need some help to code a module (Android app or website)

I need your help to code a module (Android app or website), that records the microphone and then plays the recorded sound with a delay of three seconds. The recording shouldn’t stop after those three seconds, the playback should just start after three seconds.