title: How to stream the blob
body: <p>I am developing a radio system with a microphone, the system admin will speak into the microphone and the audio will be transmitted in real time to the User ... I'm newbie using node.js and I'm unsure of how to make the stream the audio from the microphone to the User ... can anyone help me? </p>
  
  <p>I have the following problem, I have the audio from the microphone being recorded in a blob and I need to know how to stream live this blob ...</p>
  
  <p>I do not have code to show only gives audio recording ...</p>
  
  <pre><code>    &lt;script&gt;
          function getByID(id) {
              return document.getElementById(id);
          }
  
          var recordAudio = getByID('record-audio'),
              stopRecordingAudio = getByID('stop-recording-audio');
  
          var audio = getByID('audio');
  
  
          var audioConstraints = {
              audio: true,
              video: false
          };
  
      &lt;/script&gt;
      &lt;script&gt;
          var audioStream;
          var recorder;
  
          recordAudio.onclick = function() {
              if (!audioStream)
                  navigator.getUserMedia(audioConstraints, function(stream) {
                      if (window.IsChrome) stream = new window.MediaStream(stream.getAudioTracks());
                      audioStream = stream;
  
                      audio.src = URL.createObjectURL(audioStream);
                      audio.muted = true;
                      audio.play();
  
                      // "audio" is a default type
                      recorder = window.RecordRTC(stream, {
                          type: 'audio'
                      });
                      recorder.startRecording();
                  }, function() {
                  });
              else {
                  audio.src = URL.createObjectURL(audioStream);
                  audio.muted = true;
                  audio.play();
                  if (recorder) recorder.startRecording();
              }
  
              window.isAudio = true;
  
              this.disabled = true;
              stopRecordingAudio.disabled = false;
          };
  
  
          stopRecordingAudio.onclick = function() {
              this.disabled = true;
              recordAudio.disabled = false;
              audio.src = '';
  
              if (recorder)
                  recorder.stopRecording(function(url) {
                      audio.src = url;
                      audio.muted = false;
                      audio.play();
  
                      document.getElementById('audio-url-preview').innerHTML = '&lt;a href="' + url + '" target="_blank"&gt;Recorded Audio URL&lt;/a&gt;';
  
                  });
          };
  
      &lt;/script&gt;
  </code></pre>