Audio encoding (in AAC) in Silverlight 4 (on the client)?

So, Silverlight 4 adds support for capture from microphones (and webcams) , however it will be useful for this object (at least in my case). I will need to upload this captured data to the server to save.

AudioCaptureDevice will record PCM sound on the client, and as we all know, PCM is not the most efficient encoding ... the data will be too large to load uncompressed.

Ideally, I can encode this PCM stream to AAC directly on the client, and then upload this compressed stream to the server.

Perhaps something like this library . However, it does not support AAC.

(I choose AAC because (unlike MP3) it does not require encoding and is supported by popular PMP devices.)

Are there any thoughts on how to do this? All options are on the table: full trust, Google Gears, etc.

Thanks for any help!

+3
source share
4 answers

There, an audio codec called Speex AND Alden Torres ported the SPEEX algorithm to C #. This way you have a complete controllable audio encoder. This section has a blog post where it shows how to encode audio from a microphone using SPEEX. Read also the comments.

+4
source

, Speex - , , . , Speex Silverlight, NSpeex, Speex #, Silverlight.

+1

, AAC . Wikipeadia. , Vorbis FLAC ( Speex).

Windows 7 Server 2008 R2, SDK AAC (http://msdn.microsoft.com/en-us/library/dd742785(v=VS.85).aspx).

, , - Silverlight, , , ?

+1

I need to record music in Silverlight (for example, from the line) and save it on the server. It must be of good quality (not like SPEEX). I will try to use a lame encoder on the client. He needs lame_enc.dll, which can be accessed using p-invoke. I will check if this is possible from silverlight. Do you know any alternatives? Maybe a good stream server (is this possible with wowza)?

0
source

Source: https://habr.com/ru/post/1732443/


All Articles