Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8591549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:33:11+00:00 2026-06-11T23:33:11+00:00

Is it possible to record sound with html5 yet? I have downloaded the latest

  • 0

Is it possible to record sound with html5 yet? I have downloaded the latest canary version of chrome and use the following code:

navigator.getUserMedia = navigator.webkitGetUserMedia || navigator.getUserMedia;
navigator.getUserMedia({audio: true}, gotAudio, noStream);

This then prompts the user to allow audio recording, and if you say “yes” a message appears saying that chrome is recording. However is it possible to access the audio buffer with the raw data in it? I don’t seem to be able to find out how. There are suggested specs that havn’t been implemented yet does anyone know if it can actually be done on any browser now, and provide instructions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T23:33:12+00:00Added an answer on June 11, 2026 at 11:33 pm

    Here you can find my example, but it’s not working (partly). Because AUDIO recording is not yet implemented to chrome. Thats why you’ll get a 404 error, which is says can not find BLOB.

    Also there is a form below it is because my aim was sending that BLOB to a php file, but since not working, i can’t try. Save it, you may use later.

    <audio></audio>
    <input onclick="startRecording()" type="button" value="start recording" />
    <input onclick="stopRecording()" type="button" value="stop recording and play" />
    <div></div>
    <!--
    <form enctype="multipart/form-data">
    <input name="file" type="file" />
    <input type="button" value="Upload" />
    </form>
    -->
    
    <script>
      var onFailed = function(e) {
        console.log('sorry :(', e);
      };
    
    window.URL = window.URL || window.webkitURL;
    navigator.getUserMedia  = navigator.getUserMedia || navigator.webkitGetUserMedia ||
                              navigator.mozGetUserMedia || navigator.msGetUserMedia || 
    var localStream
    
    var audio = document.querySelector('audio');
    var stop = document.getElementById('stop');
    
    
        function startRecording(){
            if (navigator.getUserMedia) {
              navigator.getUserMedia({audio: true, video: false, toString : function() {return "video,audio";}}, function(stream) {
                audio.src = window.URL.createObjectURL(stream);
            document.getElementsByTagName('div')[0].innerHTML = audio.src;
                localStream = stream;
              }, onFailed);
            } else {
                alert('Unsupported');
              //audio.src = 'someaudio.ogg'; // fallback.
            }
        }
    
    
    
        function stopRecording(){
            localStream.stop();
            audio.play();
        }
    
    
        function sendAudio(){
    
        }
    </script>
    

    note: some information and howto for firefox: https://hacks.mozilla.org/2012/07/getusermedia-is-ready-to-roll/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is it possible to record a video straight to Youtube? Say I have a
Using PostgreSQL triggers, is it possible to record the changes that have happened to
Possible Duplicate: Retrieving the last record in each group I have two tables set
Possible Duplicate: Error loading Active Record gem with sinatra app using RVM I have
Is is possible to have a 3-D record array in numpy? (Maybe this is
I don't want sound-to-text software. What I need is the following: I'll record multiple
Is it even remotely possible to record sound that is being played on the
Can someone explain how we can use Audio Queue services to record sound from
I have to following code to launch and the audio recorder on Android: final
Is it possible to record the end user by mic? And what kid of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.