.NET Voice Recorder

Sign in to queue

The Discussion

  • User profile image
    SomeONe

    I like the fact that you don't gloss over architecture. One might think that because it is Coding4Fun that the design would be flat and monolithic. You have separate assemblies exposing different levels of functionality. You also have various implementations or the start of some common design patterns. Like IoC, Command Mediator, Helper/Services, MVVP, etc. This is being done without saying to much about it other than a small blurb on MVVP.  Great Job!

  • User profile image
    Clint

    @Nate Greenwood, we may or may not have an article in the works for that Smiley

  • User profile image
    Nate Greenwood

    Awesome. Great article, and just in time as I was pondering a project to learn to take advantage of my built-in monitor webcam and microphone.

  • User profile image
    Adrian

    amazing!!

    you make an incredible job, im your fans!!

  • User profile image
    Clint

    @SomeONe  Thanks man, we try to make the articles both useful and show useful ways of doing stuff.  May not always be successful but we try.

  • User profile image
    Robson Felix

    Can this be used inside an XAML Browser Application (XBAP)?

    Thanks,

  • User profile image
    Alejandro

    How can I change the recording time to a value bigger than 60 seconds????

  • User profile image
    gr33x

    you do the best tutorials.... that was really nice explained.... congrats to autors

  • User profile image
    FedeLasse

    This has to be the most useful article on audio there has come to exist for C# programmers. Thanks a LOT for it! It'll help me develop my program for sure.

  • User profile image
    Bram Osterhout

    I want to save a series of notes/sounds which I had in an array which stored each note's frequency, amplitude, and duration. What would be the procedure for accomplishing this?

    Thanks!

  • User profile image
    samzhang

    Microsoft.DirectX

  • User profile image
    Miran

    Replay at person asking how to remove limit of 60 seconds.

    in AudioRecorder.cs of the project change the writetofile Function to following.

    private void WriteToFile(byte[] buffer, int bytesRecorded)
    {
    if (recordingState == RecordingState.Recording
    || recordingState == RecordingState.RequestedStop)
    {

    writer.WriteData(buffer, 0, bytesRecorded);
    }
    }



    REBUILD THE SOLUTION !!!

    Go to your solution and delete voicerecorder.audio and core DLLs.

    Add refrences and Browse to bin location of the built voicerecorder project and import those DLL. Seeing how the voicerecorder project was on my desktop the dll location is.

    C:\Users\---\Desktop\voicerecorder_8c1b2512cf5a\bin\Debug


    Voila the limit is totaly removed.

  • User profile image
    Denis

    Thank you! It is exactly what I've needed!

  • User profile image
    john

    So what happened to: waveIn.DeviceNumber = selectedDevice;

    I've been trying to figure out how to select a device. I thought NAudio would make capturing mic audio easy. Unfortunately, it appears that all the examples were written befor the changes to the DLL.

    OK, how do I select my sound card now?

  • User profile image
    Daniel

    @John - if you noticed, in the first part he gives an example of how to see the devices currently available, after that you can use their "id's" returned by waveInDevice method in that for at the beginning of the example, in most of the cases will be 0 (default device) so actually you'll need to set waveIn.DeviceNumber = 0; in your code.

  • User profile image
    Ryan Smith

    Probably a really really ignorant question but this is the first time I've been on this site, could someone please tell me what wavein is and where it has come from? Would be much appreciated.

  • User profile image
    golnazal

    opening thread

  • User profile image
    Rafaya

    @golnazal:با سلام

    خیلی ممنون از پیگیری های برای تصحیح فایل ها ،منظور شما ازباز کردن موضوع را متوجه نمیشوم .او راستی خیلی خوشحالم که که یک ایرانی تو کانال ماکروسافت میبینم Big Smile

Add Your 2 Cents