Is it possible to get message duration for RecordMessage Activity? RRS feed

  • Question


    I'm trying to get Message Duration from recorded message in RecordMessage Activity. Is any way to get it besides calculating base on file size?




    Thursday, October 25, 2007 6:24 PM

All replies

  • The recording duration is available as a property of the RecordCompletedEventArgs which is an argument of the RecordCompleted handler.


    Code Block

    TelephonySession.Recorder.RecordCompleted += RecordingCompleted;


    void RecordingCompleted(object sender, RecordCompletedEventArgs e)


    Log("The duration of the recorded message is: " + e.RecordingDuration





    Thursday, October 25, 2007 11:09 PM