Recording with Sound Recorder
-
Hi Please let me to ask my problem from you. I want to record user's sound. may be there are several codes to do this. But I want that my program create blank wave file and then open Windows Sound Recorder that record sound on that blank file. Openning Sound recorder is easy :
Using System.Diagnostics; Process.Start("sndrec32.exe");
How can i create blank file and enforce Sound Recorder to use that file. Please Help me Thank You. -- modified at 5:29 Saturday 28th January, 2006 -
Hi Please let me to ask my problem from you. I want to record user's sound. may be there are several codes to do this. But I want that my program create blank wave file and then open Windows Sound Recorder that record sound on that blank file. Openning Sound recorder is easy :
Using System.Diagnostics; Process.Start("sndrec32.exe");
How can i create blank file and enforce Sound Recorder to use that file. Please Help me Thank You. -- modified at 5:29 Saturday 28th January, 2006Your only bet is finding command line parameters for sndrec32.exe to do that.. Regards Senthil _____________________________ My Blog | My Articles | WinMacro
-
Hi Please let me to ask my problem from you. I want to record user's sound. may be there are several codes to do this. But I want that my program create blank wave file and then open Windows Sound Recorder that record sound on that blank file. Openning Sound recorder is easy :
Using System.Diagnostics; Process.Start("sndrec32.exe");
How can i create blank file and enforce Sound Recorder to use that file. Please Help me Thank You. -- modified at 5:29 Saturday 28th January, 2006Hello Again. NoBody helped me, But I found my answer myself and I want to share it with everbody.
using System.Diagnostics; using System.IO;
Now use this :Process.Start("sndrec32","C:\\File1001.wav") ;
Or this : (I Created new blank Wave File and enforced Sound Recorder to Play itstring strFilePath="C:\\" + "File1002" + ".wav" ; File.Create(strFilePath) ; ProcessStartInfo startInfo = new ProcessStartInfo("sndrec32.exe"); startInfo.Arguments = strFilePath ; Process.Start(startInfo);
Use it and enjoy! -- modified at 5:18 Sunday 29th January, 2006 -
Hello Again. NoBody helped me, But I found my answer myself and I want to share it with everbody.
using System.Diagnostics; using System.IO;
Now use this :Process.Start("sndrec32","C:\\File1001.wav") ;
Or this : (I Created new blank Wave File and enforced Sound Recorder to Play itstring strFilePath="C:\\" + "File1002" + ".wav" ; File.Create(strFilePath) ; ProcessStartInfo startInfo = new ProcessStartInfo("sndrec32.exe"); startInfo.Arguments = strFilePath ; Process.Start(startInfo);
Use it and enjoy! -- modified at 5:18 Sunday 29th January, 2006Hi, Its giving me a Error like "Can't Open File c:\file001.wav" I tried both methods of doing that... but both methods are showing me same error.. One more quest abt is how to Record the Sound.. ie process.Start(...) is responsible for opening soundRecord exe after that how to press "Record" button programmatically... Send me ur suggesstions
-
Hi, Its giving me a Error like "Can't Open File c:\file001.wav" I tried both methods of doing that... but both methods are showing me same error.. One more quest abt is how to Record the Sound.. ie process.Start(...) is responsible for opening soundRecord exe after that how to press "Record" button programmatically... Send me ur suggesstions
You got problem beacause the file is not exist or its already open ! Use this :
string strFilePath = @"C:\" + "file1001" + ".wav" ; FileStream waveFile = File.Create(strFilePath) ; waveFile.Close() ; Process.Start("sndrec32",strFilePath) ;
It worked on my system.