Genesys Cloud - Main

 View Only
Discussion Thread View
  • 1.  Play audio with duration

    Posted 05-19-2022 09:11
    hi all,
    is it possible within Architech to play a audio file but restricting it to play for a certain duration like with Genesys Hold music?

    reason is that i need to play the system audio, processing, for a duration of 1.5 seconds and loop until it has played for a duration of 15 seconds.
    #ArchitectureandDesign

    ------------------------------
    Reginald
    ------------------------------


  • 2.  RE: Play audio with duration
    Best Answer

    Posted 05-22-2022 11:17
    Try using an expression like this:

    AudioPlaybackOptions(Append(Prompt.Processing, ToAudioBlank(500), Prompt.Processing, ToAudioBlank(500),Prompt.Processing, ToAudioBlank(500),Prompt.Processing, ToAudioBlank(500),Prompt.Processing, ToAudioBlank(500)), true)

    The last "true" allows barge-in or not.  

    The other is to use the ToAudio(MakeList(Prompt.Processing, Prompt.Processing, Prompt.Processing, Prompt.Processing, Prompt.Processing)

    Robert

    ------------------------------
    Robert Wakefield-Carl
    Avtex Solutions, LLC
    Contact Center Innovation Architect
    robertwc@avtex.com
    https://www.Avtex.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Play audio with duration

    Posted 05-23-2022 01:59
    Thanks Robert

    ------------------------------
    Reginald
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources