473,378 Members | 1,084 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,378 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 4021
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.