Recording from mic to mp3
-
Hi, Does anyone have an example to get me started on recording to an mp3 file. I want to record from the microphone and save it directly to an mp3. I have a working project but now I save it to wav and then send it to lame and I want to skip that step. Thanks, /Johan
http://johanmartensson.se - Home of MPEG4Watcher
-
Hi, Does anyone have an example to get me started on recording to an mp3 file. I want to record from the microphone and save it directly to an mp3. I have a working project but now I save it to wav and then send it to lame and I want to skip that step. Thanks, /Johan
http://johanmartensson.se - Home of MPEG4Watcher
Hello, the only program i know that streams "directly" to a desired audio format is the VLC Media Player. The good news is, that it is open source and quite well documented. But... it's unmanaged (of course) and i think you will have to dig through quite a bit of code in order to find something useful. Anyway, try this: http://www.videolan.org/developers/vlc.html[^] Michael.
-
Hi, Does anyone have an example to get me started on recording to an mp3 file. I want to record from the microphone and save it directly to an mp3. I have a working project but now I save it to wav and then send it to lame and I want to skip that step. Thanks, /Johan
http://johanmartensson.se - Home of MPEG4Watcher
-
Hello, the only program i know that streams "directly" to a desired audio format is the VLC Media Player. The good news is, that it is open source and quite well documented. But... it's unmanaged (of course) and i think you will have to dig through quite a bit of code in order to find something useful. Anyway, try this: http://www.videolan.org/developers/vlc.html[^] Michael.
Thanks for your answer but I was hoping that there might be a simple library I could use
http://johanmartensson.se - Home of MPEG4Watcher
-
Hi, Does anyone have an example to get me started on recording to an mp3 file. I want to record from the microphone and save it directly to an mp3. I have a working project but now I save it to wav and then send it to lame and I want to skip that step. Thanks, /Johan
http://johanmartensson.se - Home of MPEG4Watcher
Audacity[^] is an excellent program that does the streaming. It is open-source (not .NET), but it might be an area to start. For encoding to mp3 is uses the lame library mentioned in a previous post.
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios Discounted or Free Software for Students: DreamSpark - downloads.channel8.msdn.com MSDN Academic Alliance - www.msdnaa.com
-
That article does pretty much what I have so far, it takes a wav-file and uses lame to create an mp3. I want to record directly to mp3.
http://johanmartensson.se - Home of MPEG4Watcher
-
That article does pretty much what I have so far, it takes a wav-file and uses lame to create an mp3. I want to record directly to mp3.
http://johanmartensson.se - Home of MPEG4Watcher
AFAIK, I could be wrong (but I've been around the pro audio world for over 20 years) it's not possible. MP3 is an encoding format that compresses existing audio. It's like trying to write data to a zip file without first either saving the file or creating it in memory - the file has to exist somewhere first.
Dave
-
AFAIK, I could be wrong (but I've been around the pro audio world for over 20 years) it's not possible. MP3 is an encoding format that compresses existing audio. It's like trying to write data to a zip file without first either saving the file or creating it in memory - the file has to exist somewhere first.
Dave
Yes, I realize it has to created in memory or something like that, so what I'm looking for is a free audio library that takes the data from the mic and sends it directly to lame. My problem is that it must be free for commercial use.
http://johanmartensson.se - Home of MPEG4Watcher
-
Yes, I realize it has to created in memory or something like that, so what I'm looking for is a free audio library that takes the data from the mic and sends it directly to lame. My problem is that it must be free for commercial use.
http://johanmartensson.se - Home of MPEG4Watcher
Just had a quick look at the source code from the article I referenced. It uses its own class
WaveStream
which takes aStream
in the constructor. I'm pretty sure that would work with aMemoryStream
, and if not, I can't imagine it'd be too difficult to ads a new overload to the constructor. Then you could create the wav in memory (MemoryStream) and write directly to disk as mp3.Dave
-
Just had a quick look at the source code from the article I referenced. It uses its own class
WaveStream
which takes aStream
in the constructor. I'm pretty sure that would work with aMemoryStream
, and if not, I can't imagine it'd be too difficult to ads a new overload to the constructor. Then you could create the wav in memory (MemoryStream) and write directly to disk as mp3.Dave
You're right, that could absolutely work, I will try it out Thanks for the help everybody
http://johanmartensson.se - Home of MPEG4Watcher
-
You're right, that could absolutely work, I will try it out Thanks for the help everybody
http://johanmartensson.se - Home of MPEG4Watcher