473,414 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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 4023
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

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

Similar topics

6
by: Sugapablo | last post by:
I had an idea for something that I can't find any evidence if it exists, or if it can be done. I assume it can be done. What I'd like to be able to do, is to allow people who come to my website,...
1
by: Noah | last post by:
I need to record raw 8-bit mono audio from a generic sound card on MS-Windows. I need to do something like this: sound_device = open audio device buffer = sound_device.read ('1 second, 8 bit,...
7
by: psk | last post by:
Hi, I need to read live audio from microphone and somehow make data packets from it and send using my client-server implementation where it will be played. Can anyone tell me abt any...
5
by: ACaunter | last post by:
Hi all, I am in desperate need of being able to have the users of my asp.net site to be able to make a recording from their computer mic, and save that audio on my server.. the user should be able...
1
by: ACaunter | last post by:
Hi all, Have been getting no luck lately, but there must be a way i can recording audio from the website and save it.. It's no problem on applications (VB.Net), and I know other have done it...
1
by: zhangzhi | last post by:
HI£º i have a big problem about audio recording. my boss wanna a application of audio monitor, and he wanna it will detect voice and start recording automatically, avoiding recording silences....
0
by: universe | last post by:
I am developing a web application in that I need to record audio, for that I am importing "winmm.dll" and using mciExecute function.(the following code is vb.net). If I have posted in irrelavent...
2
by: tiffxi | last post by:
I'm an ASP.NET newbie. I'm trying to write an audio-recording code in an ASP.Net page. I created a windows User Control that has the buttons and codes for this (it calls the winmm.dll in system32...
1
by: fevos | last post by:
hi i look at this article in msdn Recording and Playing Sound with the Waveform Audio Interface and download the P/Invoke Library Sample that record using wave in and wave out . how do i get...
1
by: waqasahmed996 | last post by:
Hi to all, i want to ask that is audio recording is possible in flash. actually i want to make recording from browser. is that possible in flash. if yes please give me some help or send me some...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.