From: Taran Nathan Date: Mon, 20 Jul 2026 23:51:52 +0000 (-0700) Subject: root X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=748165e95b62ec94844c379fc50532a7d7002d2d;p=audio-stream.git root --- 748165e95b62ec94844c379fc50532a7d7002d2d diff --git a/favicon.png b/favicon.png new file mode 100644 index 0000000..5ea715c Binary files /dev/null and b/favicon.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..eafb03c --- /dev/null +++ b/index.html @@ -0,0 +1,26 @@ + + + + + + + Recorder + + + + + + + +
+

Record and Play Audio in JavaScript

+
+

+ + + +

+ + + + \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..2a8c914 --- /dev/null +++ b/script.js @@ -0,0 +1,10 @@ +console.log("wassup") +// Access the permission for use +// the microphone +navigator.mediaDevices.getUserMedia({ audio: true }) + .then(function(audio_stream) { + console.log("hi"); + }) + .catch(function(err) { + console.log(err.name, err.message); + }); diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..f30a1dd --- /dev/null +++ b/styles.css @@ -0,0 +1,3 @@ +* { + color: red; +} \ No newline at end of file