This forum is closed. Thank you for your contributions.
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?
Thanks,
Marina
The recording duration is available as a property of the RecordCompletedEventArgs which is an argument of the RecordCompleted handler.
TelephonySession.Recorder.RecordCompleted += RecordingCompleted;
void RecordingCompleted(object sender, RecordCompletedEventArgs e)
{
Log("The duration of the recorded message is: " + e.RecordingDuration
}