Building a New Record Audio Activity

You may also like...

  • Pingback: Speaking From The Edge : Building a New Record Audio Activity()

  • Pingback: Building a New Record Audio Activity - Soapbox 2.0()

  • http://Website Adam

    Wow, great to see this Marc. I’ve been using audio recording to replace answering machine detection in MSS 2007.

    I don’t usually save the audio anywhere though, I just use it’s “statistics” (i.e. how long did the person talk before hitting the end silence limit) to determine when to start talking to them and if I think they are an answering machine (most people have shorter greetings than machines of course). This will be handy as we continue to shift over to UCMA 3.

    As usual, thanks for the great work!

    • Marc LaFleur

      I’m glad you found it helpful. I too use it purely for Voice Mail detection and delivery (which is why I didn’t bother implementing the prompting features found in the Speech Server version yet). If you run into any issues, please let me know.

  • sebastien crocquesel


    I found a little issue in the code. It appears you detach the recorder twice. One in the Stop() method and another one in the Execute method just after the Loop.
    Sometimes, it makes the action throw an exception when detaching in the Execute method (Recorder property is null).

    Anyway, great and usefull work.

    Also, what about pushing this on github or codeplex ?

    • Marc LaFleur

      Good catch! I’ll post some updated code.

      I’m also working on getting something into codeplex.

  • Doug

    Hello Marc. When I came across this I was extremely relieved. I appreciate that you shared your work but I am having trouble getting this to work. I always get this error when trying to build your sample application as well as an application that I have referenced the activity in:

    Error 1 System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationException: Could not deserialize object. The type ‘AudioRecordingActivity.AudioRecording’ could not be resolved. 5 5

    I’m curious if you have seen this before and know of a way to solve it. Many thanks in advance!