469,352 Members | 1,661 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

audio recording

I am trying to record a wave file using "winmm.dll" from a web application.
I am able to record that .WAV file in 11025 samplespersec, 16 bit, mono format. But my requirement is to record that in 8000 samplespersec, 16 bit, mono format (wave format). How do I meet my requirement ? Is there any other DLLs or ActiveX control to meet my specifications ?

thank u all....

with regards,
kiran
Nov 7 '07 #1
4 3756
markmcgookin
648 Expert 512MB
I am trying to record a wave file using "winmm.dll" from a web application.
I am able to record that .WAV file in 11025 samplespersec, 16 bit, mono format. But my requirement is to record that in 8000 samplespersec, 16 bit, mono format (wave format). How do I meet my requirement ? Is there any other DLLs or ActiveX control to meet my specifications ?

thank u all....

with regards,
kiran
Can you bit a bit more clear please? Do you want to record off the web onto a mobile device?
Nov 8 '07 #2
Can you bit a bit more clear please? Do you want to record off the web onto a mobile device?

My requirement is to record a voice file from a web apllication in the following format..,
"PCM 8kHz, 16 bit, mono"
voice file will be saved to local file system. The generated file will be used in IVRS (Interactive Voice Response System)(a Telephony based Apllication). IVRS requirement is "PCM 8kHz, 16 bit, mono". But I need to record that file from a web application, but if is it possible to meet my requirement from a window based application (so that I can invoke it from my web appliction)?

1) I imported the winmm.dll

<DLLImport("winmm.dll", Entrypint:="mciExecute", charset:=charse,ansi, set last error:=true, Exact spelling:=true)>private shared function mciExecute(byVal lpStrCommand as string) as boolean
end function

2) opened the audio device
mciExecute("open new Type waveaudio recSound")

3) setting the format of voice file

mciExecute("set recsoud time format ms bitspersample 16 channels 1 samplespersec 8000")

----> after executing this last statement, I faced the following error "The specified parameter is out of range for the specified command". I am able to record voice file at 11.25 khz fq, and even at higher fq. with the same above mentioned steps.

is there any other way to meet my requirement, for the last 10days I was browsig, no where I found proper solution,

thank u all,

with regards,
kiran
Nov 10 '07 #3
markmcgookin
648 Expert 512MB
I have noticed you have re-posted this again in the forum.

Please do not re-post!

You may wish to look into some of the public releases of the VoiceRecorder.cs class

which uses System.Runtime.InteropServices;

#region API prototypes
[DllImport("voicectl.dll", EntryPoint = "VoiceRecorder_Create")]
private unsafe static extern IntPtr VoiceRecorder_Create(CM_VOICE_RECORDER* voicerec);

And some embedded unsafe code. Which I have used to create a voice recorder in the past. However, it simply uses a devices microphone. I don't know if this will be what you are looking for. Or the OpenNetCF.Multimedia.Audio.Recorder.

Usefult Links:
http://msdn2.microsoft.com/en-us/library/aa454320.aspx

http://forums.microsoft.com/MSDN/Sho...07120&SiteID=1
Nov 13 '07 #4
RedSon
5,000 Expert 4TB
Double post deleted. Please do not do it again. You have been warned. Subsequent failures to follow the guidelines described in the Help section of this Forum will result in the offending account being banned either temporarily or permanently.

-MODERATOR
Nov 13 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Sugapablo | last post: by
1 post views Thread by Noah | last post: by
7 posts views Thread by psk | last post: by
5 posts views Thread by ACaunter | last post: by
1 post views Thread by zhangzhi | last post: by
1 post views Thread by fevos | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.