getUserMedia is used to access the microphone and MediaRecorder to record. The result is sent as FormData with fetch.

Press record to start.