Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Recording with Sound Recorder

Recording with Sound Recorder

Scheduled Pinned Locked Moved C#
helpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    freshonlineMax
    wrote on last edited by
    #1

    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

    S F 2 Replies Last reply
    0
    • F freshonlineMax

      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

      S Offline
      S Offline
      S Senthil Kumar
      wrote on last edited by
      #2

      Your only bet is finding command line parameters for sndrec32.exe to do that.. Regards Senthil _____________________________ My Blog | My Articles | WinMacro

      1 Reply Last reply
      0
      • F freshonlineMax

        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

        F Offline
        F Offline
        freshonlineMax
        wrote on last edited by
        #3

        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 it string 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

        S 1 Reply Last reply
        0
        • F freshonlineMax

          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 it string 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

          S Offline
          S Offline
          Saravanan_article
          wrote on last edited by
          #4

          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

          F 1 Reply Last reply
          0
          • S Saravanan_article

            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

            F Offline
            F Offline
            freshonlineMax
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups