This project has moved and is read-only. For the latest updates, please go here.

Converting wave Bytes array to Mp3 Byte Array

May 20, 2011 at 7:44 AM

hi all

i am capturing audio from sound card which is in he form of byte array i want to convert the bytes into mp3 bytes and transmit it over network where clients will receive these  bytes and decompress these to wav and play it

can NAudion help me in this????/

May 20, 2011 at 7:56 AM
Edited May 20, 2011 at 7:57 AM

NAudio cannot encode MP3. You would need to something like LAME for that. I think you can write to its stdin and read from its stdout to do on the fly compression. You can however use NAudio to receive MP3 over the network, decode and play it. See the example in the latest NAudioDemo code.

May 20, 2011 at 8:20 AM

thanks markheath for you rply