Windows 7 - Advice on recording audio directly to mp3 format

Asked By apostleofzio
26-Oct-09 09:00 PM
Hi friends,
We have to create an application which has to record
audio from microphone into an mp3 file directly.

Previously we had used 'MCI' to create 'WAV' files , but we want to
move onto mp3 format.(Our project is best done with mp3)
The recording will be for nearly 6 mins.

We do not want to encode a 'WAV' file to 'mp3' format as it will take
3 mins easily.(The application has to support instant playback of the
recorded audio after recording and saving the file)

The application has to work in Xp,Vista and 7.
I have searched on this , but i'm not sure whats the best way to
implement this.

1. DirectShow
This has mp3 support built-in and i have seen a forum post that a
mp3 file is directly created.But the poster has also said that this
DShow workflow fails in Vista because of a codec problem

http://www.eggheadcafe.com/conversation.aspx?messageid=29149670&threadid=29149670

2. DirectSound
I do not know much about DirectX. But users (also docs) have said
it is possible to record audio using DirectSound.
Is it possible to use it for recording into mp3 directly?
Some have mentioned about using ACM (Audio compression Manager) in
tandem with DirectSound for format conversion.

I am quite new to audio recording in windows. The question i have
posted maybe a repeated one, but it would be really helpful for me if
one of you could point me in the right direction.

Thanks a lot for your time. :)

arvind
Windows XP
(1)
Vista
(1)
DirectSound
(1)
DirectShow
(1)
DShow
(1)
Studioyou
(1)
WaveIn
(1)
Riseoftheants
(1)
  Alessandro Angeli replied to apostleofzio
23-Sep-09 06:18 AM
From: "apostleofzion@gmail.com"

[...]

Your data pipeline has 3 stages: recording, encoding and
saving.

Recording can be done using waveIn or DirectSound and will
provide you with buffers of uncompressed LPCM audio data.
Both waveIn and DirectSound can be used directly or wrapped
in DirectShow.

Encoding requires an ACM codec, a DMO encoder, a DirectShow
filter or a custom encdoding library. ACM and DMO encoders
can be used directly or wrapped in DirectShow. A custom
encoding library can only be used directly unless you wrap
it yourself to be used in a standard framework.

Since an MP3 file is just a raw MP3 elementary stream, you
can save it using a file writing API or the Dump filter in
DirectShow (a sample in the SDK).

The stock MP3 encoder provided in Windows XP is an ACM codec
so you can choose to use DirectShow for the whole pipeline
or use it directly: waveIn|DirectSound -> ACM -> file I/O.

If you want your code to work in NT6.x, you need a
third-party MP3 encoder in which case your options depend on
the API provided by the chosen encoder (but they will be a
subset of the options provided above).


--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
  niko replied to apostleofzio
05-Feb-10 07:45 AM
a very decent  appliction I used to record audio is MP3 Recorder Studio
you can download it from here:
http://www.maniactools.com/soft/mp3-recorder/index.shtml
help
Troubleshooting Long Boot Time? Windows 7 Just re-imaged my PC last nite. The image was not from that long boot time has gone completely down the tubes. I am getting 1:25 to the Windows Desktop, but at that point there is no connectivity to my NAS box. TeamViewer, OTOH trial-and-error removal of everything optional startup that I can think of? - - Pete Cresswell Windows XP Discussions WINDOWS system32 (1) Office (1) Vista (1) Adobe (1) Backup (1) Disk (1) Bit (1) XP (1) Is there anything listed in the Event logs that might be of help? Another thing you can do is enable boot logging using msconfig. - - SC Tom Try bootlog XP http: / / greatis.com / utilities / bootlogxp / Per JRosenfeld: I gave it a shot. it is probably
Why do you still use Windows XP? Windows 7 Give your reasons. Do you plan to upgrade ever? If so, when and why? If you use both XP and 7, do you ever plan on ditching XP for good? What will you do when support is dropped to the point where this OS will be problematic with new hardware? Personally I am waiting for Windows 8 to release a second service pack. XP sucked when it first came out until SP1. Even then, I find the moron-babysitting did not work, it had to enabled then disabled to be disabled for real. Sigh. . . Windows XP Discussions Windows XP (1) Windows Embedded (1) Windows Server (1) Microsoft Word (1) Windows
Will w8 have xp downgrade rights? Windows 7 Hi Guys, Has anyone heard any rumors on weather or not M$ will continue with its XP downgrade rights when Windows 8 comes out? -T Windows XP Discussions Windows XP (1) Windows Server (1) Windows Vista (1) Windows 7 (1) Office (1) Linux (1) Vista
Chkdsk / Scandisk Windows 7 I still use Windows98 most of the time. I am not fond of XP, but I have XP on my laptop computer, and must keep it to use the WIFI. One thing that really irks me about XP is that it no longer has Scandisk. Chkdsk is really a major pain to use dropped it in favor of this worthless and annoying Chkdsk. . . . . What is wrong with MS???? Windows XP Discussions Windows XP (1) Microsoft Word (1) Windows Server (1) Windows XP SP2 (1) Word 2010 (1) Word
cannot access WINDOWS UPDATE successfully . . . keeps soliciting New!Get Microsoft Update today! Windows 7 I am running Windows XP SP3 Home Edition on 1 of 4 PC's and it is been updated through early April 2011. Prior to this, accessing Windows Updates (via http: / / www.update.microsoft.com / windowsupdate / v6 / default.aspx?ln = en-us) worked to understand why. Recently, around the middle of April 2011, each time I went to Windows Update, the page initially appears and I can briefly see the 2 buttons (of which Get Microsoft Update today!" I have no interest in Microsoft Update for my PC running XP SP3 Home Edition because my other 3 PC's, all running Windows XP SP3 Professional with Internet Explorer 6 are having no problems with Windows Update. This