Solved

Record in particular Audio Format

Posted on 2002-03-25
3
228 Views
Last Modified: 2010-05-02
Hi,

I am developing a sound recorder that can rcord sound in PCM format with 8000 Mhz and 8 kb/s sampling rate.

I am able to record the sound from Microphone but not able to save in this particular format. So how do I save the particular format from VB.

So please help me in this particular matter.


Regards
Shaival
0
Comment
Question by:shaival_trivedi
3 Comments
 
LVL 2

Accepted Solution

by:
dmarco earned 100 total points
ID: 6922069
First record an "empty" sound file (.wav) setting the parameters you need : you can use the standard MSSoundRecorder. Click on file>properties click convert button and choose PCM 8000 Hz, 8 bit 7/kbits second.Start recording from microphone : record some seconds (you can record no sound). Save your file as empty.wav.
I suppose that in your VB application you are using  the MCI Control. If so,  initialize your MCI Control loading the empty.wav file :

MMControl1.filename = "C:\Myfolder\empty.wav"

After recording a new file, use the command property :

MMControl1.filename = "C:\Myfolder\Mysound.wav"
MMControl1.Command = "Save"

You will find a file "Mysound.wav" that has the same properties of "empty.wav" (PCM 8000 Hz, 8kbits second...).

If you need a sample code using MCI Control let me know. I'll post it.
Hope this helps..
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7637828
Hi shaival_trivedi,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept dmarco's comment(s) as an answer.

shaival_trivedi, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7754673
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Determine Range to Select 5 55
Add and format columns in vb6 7 69
Create Files based on Cell Values in a Range in Excel 12 43
VB script to continue despite error 2 47
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question