Legacy Dev Forum Posts

 View Only

Sign Up

How to control the time differences between audios

  • 1.  How to control the time differences between audios

    Posted 06-05-2025 19:16

    David333 | 2024-05-29 07:11:23 UTC | #1

    Good morning everyone. I hope you can point me in the right direction. I have to analyse in architect the real time between the different recordings of a stream. but if I put a getcurrentdatetime() between them in architect flows, the time it shows doesn't seem logical. Let me explain. if I put a variable type var01 = getcurrentdatatime() just before an audio and then an audio of several seconds, as an example you can put an audio of more than 5 seconds, if after the audio I set another variable of type var02 = getcurrentdatatime(), when i show these variables in the participant data, the time difference does not show the real time over the correct duration.

    The value of the two variables in the participant data shows a time difference of less than 1 second.

    During the call, if it can be checked that the audio time respects the recording time. Should I check this time difference in another way or with another function?

    Thanks in advance


    MelissaBailey | 2024-05-29 13:36:55 UTC | #2

    https://help.mypurecloud.com/articles/audio-buffer-and-flush-in-architect-flows/ https://help.mypurecloud.com/faqs/when-does-architect-force-audio-to-flush/ https://help.mypurecloud.com/articles/flush-audio-action/


    David333 | 2024-05-30 06:49:54 UTC | #3

    Hi MelissaBaley.

    I already knew about them, they don't give me a solution to my need.

    Seems that as Genesys is designed, if I have to know the total and individual time of each audio of each Flow, the only way is to manually edit each stream and write down the duration of each audio. This is not a problem when you have a couple of Flows, which is not my case, and that audio can be modified at the client's will. I wanted to put some controls to get these times automatically in the flows. I thought that maybe there was another way, maybe getting information from some api or other. I will try to investigate a little more.

    Thank you very much for your time


    MelissaBailey | 2024-05-30 13:31:54 UTC | #4

    Add a Flush Audio action after the Play Audio action.


    David333 | 2024-06-05 07:46:41 UTC | #5

    Good morning Melissa, sorry for the delay. Yes indeed, your first and second answers were what I needed.

    Thank you very much for your time


    system | 2024-07-06 07:46:51 UTC | #6

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 26510