(Reposting since I don't see my post appear in the mailing list for a few 
days.)

Around the end of 2012 I made an experiment of recording audio from 
getUserMedia and uploading it to a Node.js server through web socket. Just 
thought it might be useful for your reference so I publish the demo on 
GitHub: https://github.com/soareschen/web-audio-upload

The demo use very inefficient transfer of raw audio samples as JSON array 
containing floating points. At that time there was no audio encoder 
available in Web Audio to encode raw audio signal to formats like MP3 or 
Ogg. (only decoder was available) I am not sure about the current status of 
Web Audio API, but the lack of a native audio encoder is the biggest 
obstacle I see in making the recording streaming upload more efficient in 
the browser.

Soares

On Saturday, January 4, 2014 9:03:52 AM UTC+8, Jérémy Villemain wrote:
>
> Hello,
>
> Im pretty new to NodeJs.
> I want to do something, but i don't really know how.
>
> I saw getUserMedia(), it's something really cool.
>
> So what i want to do, is:
>
> Client start an audio session through getUserMedia, send this stream to 
> NodeJs server and nodeJS broadcast the stream and other client can listen 
> to people.
>
> I use nodeJs with server.io, i don't know if there is something related.
>
> if(navigator.getUserMedia) {    
>>
>>                 navigator.getUserMedia({audio: true, video: false}, 
>>> function (stream) {
>>
>>                     window.AudioContext = window.AudioContext || 
>>> window.webkitAudioContext;
>>
>>                     var audioContext = new AudioContext();
>>
>>                     var mediaStreamSource = 
>>> audioContext.createMediaStreamSource(stream);
>>
>>                     mediaStreamSource.connect( audioContext.destination );
>>
>>  
>
>>                     socket.emit('audio', mediaStreamSource); //not correct
>>
>>                  });
>>
>>             }
>>
>>
>  I want to do something like this, emit the audio stream and get it to the 
> server and resend it.
>
> I hope you ll understand what im saying.
>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to