Skip to content

bryanjenningz/record-audio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Record Audio

A simple audio recording function.

How to use

The following code will record audio for 3 seconds, then play back the audio that it recorded.

(async () => {
  const recorder = await recordAudio();
  recorder.start();
  await sleep(3000);
  const audio = await recorder.stop();
  audio.play();
})();

Instructions for running example

Make sure your browser is up to date.

Clone the repo, then open index.html, then press action button and start talking. You will be recorded for 3 seconds, then your recording will be played back.

About

A simple audio recording API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published