 |
|
 |
Hi,
I am trying to compile the source code using vc++5.0 and am getting many errors.( Around 90 ) If anyone has compiled it, let me know.
Thanks
Nikhil
|
|
|
|
 |
|
 |
Hi,
I am Nikhil, currently working on a project. I would like to use your code. Is your code protected by any license or is it opensource.
Let me know asap
Thanks
Nikhil
|
|
|
|
 |
|
 |
Hi,
It's open source, there is no problem for using it.
Best regards,
A. Riazi
|
|
|
|
 |
|
 |
Dear Mr Riazi
I used an instance of CRercording and an instance of CPlaying in a cuncurrent program.
I want to record data and immediately play it on speaker.
But sound quality is very bad and it has some noises in it.
Is it possible to record and play sound data cuncurrently.
What do you offer for such a project.
Regards
Mahdi Monhi
|
|
|
|
 |
|
 |
Recording and playing are asynchronous.
You should put Sleep() after Record() and Play() call when you just test it in a function.
CVoiceRecording m_Record;
CVoicePlaying m_Play;
m_Record.PrepareBuffer(10); //prepare buffer for recording 10 seconds.
m_Record.Open();
m_Play.PrepareBuffer(10); //prepare buffer for playing of 10 seconds of data
m_Play.Open();
if (m_Record.IsOpen())
{
m_Record.Record();
Sleep(10*1000); // Wait 10 secord to finish recording
}
//after finishing the record scenario,
//play the buffer, first copy recorded buffer to m_Play buffer
m_Play.CopyBuffer(m_Record.buffer, 10);
if (m_Play.IsOpen())
{
m_Play.Play();
Sleep(10*1000); // Wait to finish Playing
}
|
|
|
|
 |
|
 |
Hmmm i'm still a newb and i just copy - paste it in vb.net but most of them are underlined. Can u give the vb.net version of this code? Is it possible, using this code, to record not only from microphone but also mp3 that i play or cd or the others. Thx.
- No Signature Available -
|
|
|
|
 |
|
 |
My brother-in-law was working on an old lake cabin he and my sister recently purchased. While working alone on the cabin late one night he heard whispers, like a conversation, coming from the kitchen area. It freaked him out and he quickly packed up his gear left. The cabin was build by hand 60 yrs ago by the original owner, now deceased.
I'd like to write a voice recorder that is voice activate. I would like to set up my laptop with a high quality microphone overnight and see if it picks up anything. I'd like to eliminate as much dead air as possible (no pun intended).
Can this class be modified to poll sound from a mic and trigger an action based on some frequency threshold being met.
I don't believe in ghosts, but thought it would be fun. This is the closest I've ever come to an encounter. I'll share my results if I find anything interesting.
Thanks - Matt
|
|
|
|
 |
|
 |
i have these compiling error. I use Visual c++
Compiling...
VoiceRecording.cpp
c:\documents and settings\doxsi\escritorio\voicerecording_src\voicerecording.cpp(5) : fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
VoiceBase.cpp
c:\documents and settings\doxsi\escritorio\voicerecording_src\voicebase.cpp(5) : fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
VoicePlaying.cpp
c:\documents and settings\doxsi\escritorio\voicerecording_src\voiceplaying.cpp(5) : fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
Error executing cl.exe.
voce.exe - 3 error(s), 0 warning(s)
Some can help me, please?
doxsi
|
|
|
|
 |
|
 |
hello razi.
i have the same problem as triplebit, when i try to record and playback the result nothing is being recorded.
can you or anyone else that managed to run it properly help me with my problem?
|
|
|
|
 |
|
 |
hi everyone,
i want to add a online recorder in my web application(.net). so can anybody tell me, is this example work properly if i convert it in the VC++ library and then use it in my application, is that possible.
b'cos if it work than in that case, it'll access user's sound card to record the sound instead it'll access server's sound card to record aqny sound. And then it'll create a blank .wav file. as i'm getting right now by other technique.
so plz tell me is that possible to use it on web appl.
praveen.kumar@finalquadrant.com
praveen kumar
|
|
|
|
 |
|
 |
Hello?
I'm a student majoring in Computer Science Engineering in Korea.
first of all, Your article is so interesting and helpful for me.
I’m about to make a ‘recorder’ program with win32 api like you did.
So I’m doing some test by myself with your source code to figure out way of implementation.
My Question is below.
I think that ‘waveInOpen()’ function is needed only once to open the device.
But sometimes, WaveInOpen() function is called frequently at least twice to open the device. MM_WIM_OPEN message is also sent to the WINDOW frequently.
So I have a difficulty in handling these message.
Do you know why ‘MM_WIM_OPEN’ message is sent to WINDOW several times
although ‘WaveInOpen()’ function is called once ?
|
|
|
|
 |
|
 |
Hello A.Riazi,
Is there a way that the output of the recorded audio become .pcm with 8k 16-bit extension? Pls do guide me along.
Muchly appreciated.
Newbee07.
|
|
|
|
 |
|
 |
hello,
i'm doing a project that requires me to take an acoustic input from a microphone and generate a melodic contour, if done the melodic contour part using reference frequencies and would like to use the code in this article to record voice. My questions is in what format is the voice stored , in the buffer? a collection of aplitudes, frequencies? i tried to gather this from reading thecode but if its there i guess my limited knowledge of C++ doesn't allow me to.
i look forward to hearing from you, till then i'll keep looking in the code for clues, thank you for making this code available and thank you in advance for any help you can offer
sanity is just a concept
|
|
|
|
 |
|
|
 |
|
 |
Omidvaram hamountor ke dar profile shoma khoundam, hamishe movaffagho pirouz bashid.
Mikhastam bebinam man mitounam az daryaye ettelaate shoma chand ta ghatrasho bar daram?
man faghat ManagedCode ar kardam, ziad samte unmanage naraftam vali khaily doost daram makhsousan ba Hardware ha kar konam.
Makhsousan age hardwaresham khodam sakhte basham.
Be har hal mozahem shodam ke age forsatesho darin komakam konin.
Montazere tamasetoun hastam.
Man alan mojtama fannie tehran kar mikonam.
Email : Mohammad.MGA@GMail.com ;
Name : Mohammad ;
Family : Goudarzi ;
NickName : MGA2005 ;
Regards.
Mohammad.MGA from MGA2005 ;
|
|
|
|
 |
|
 |
I want to develop a voice recorder for windows mobile 2005.
Which will record in MP3 format. can u help me.
|
|
|
|
 |
|
 |
Hi,
Is there a way to get the record that is played? I mean the playable version after the call to the waveOutPrepareHeader() function. I need to write it to a file, encode it and then send it. By the way great piece of code.
Thanks.
|
|
|
|
 |
|
 |
I make the softphone and I want to record the dialog, but I only record the my voice. How can I record sound from wavein and waveout? Can you help me?
Thanks,
Guto Garcia
|
|
|
|
 |
|
 |
can I use this APIs in ASP based web page?
Please help me.
|
|
|
|
 |
|
 |
You must create an ActiveX then use it in your ASP page.
|
|
|
|
 |
|
 |
Great piece of code. But Im having a bit of trouble with it. How can I make it re-enterable? If, on record I use:
m_Recording.PrepareBuffer(10);
m_Recording.Open();
if (m_Recording.IsOpen())
{
m_Recording.Record();
}
then on playback use:
m_Play.PrepareBuffer(10);
m_Play.Open();
m_Play.CopyBuffer(m_Recording.buffer, 10);
if (m_Play.IsOpen())
m_Play.Play();
When I again try the record/play again, it hangs. Is there some cleanup I need to do after playing, or before recording?
|
|
|
|
 |
|
 |
I also do an exercise about recording/playing sound files. I have a problem when I compiled the code it: "VoiceRecording.cpp"..."can not convert 'int(_stdcall CVoiceRecording::*)(HWAVEIN*,..,..)'to'unsigned long'".
at this line:"res=waveInOpen(&hWaveIn, (UINT) WAVE_MAPPER, &PCMfmt, (DWORD) VoiceWaveInProc, (DWORD) this, CALLBACK_FUNCTION);" .How can I solve this problem, please help me. The error is also in VoicePlaying.cpp .
See you soon.
|
|
|
|
 |
|
 |
hello, I am a Developer With Using ACM and GSM
GSM Structure has wSamplesPerBlock member and it is 320
Can I change this member value??
typedef struct gsm610waveformat_tag {
WAVEFORMATEX wfx;
WORD wSamplesPerBlock;
} GSM610WAVEFORMAT;
typedef GSM610WAVEFORMAT *PGSM610WAVEFORMAT;
|
|
|
|
 |
|
 |
In this way it will not work properly.
A. Riazi
|
|
|
|
 |
|
|
 |