Genesys Cloud - Main

 View Only
Discussion Thread View
  • 1.  Hold Music in an Expression

    Posted 06-15-2021 20:21
    Hello, 

    I know architect has a Hold Music object within editor that can be used which can play the whole prompt set as a duration.


    I am looking for a way to create an expression for specific prompts to play by duration.

    Lets say i want to play a prompt from the system for 30 secs.
    I have this expression but errors out.
    Prompt.testprompt(Duration("PT30s"))

    Any better/correct way to create that type of expression?


    #Ask Me Anything (AMA)
    #SIP/VolP
    #Telephony

    ------------------------------
    Azamat Rustamov
    ------------------------------


  • 2.  RE: Hold Music in an Expression

    Posted 06-16-2021 11:20
    You can change the prompt in the Hold Music to whatever you desire and then set the seconds to play.    In the duration, you can use the GetPromptDuration to set the number seconds.

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



  • 3.  RE: Hold Music in an Expression

    Posted 06-16-2021 17:44
    Thanks for the reply, 

    Would you able to show an example expression as i seemed to error out with it?

    This is not just for on hold scenario but for any audio scenario where audio can be set to a certain amount of secs.

    In this screen below, i got a welcomeprompt, which i only want to play for 30s by using your suggested getpromptduration function, but i might be putting something incorrectly there.

     

    Much appreciated,

    ------------------------------
    Azamat Rustamov
    Cerium Networks
    ------------------------------



  • 4.  RE: Hold Music in an Expression

    Posted 06-16-2021 17:57
    I am not too sure that would work.  I would suggest you use a find prompt to get the prompt file then use that in the Hold Music tool and the GetPromptDuration in the duration box there.  Let me know if you need sample of this.

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



  • 5.  RE: Hold Music in an Expression

    Posted 06-16-2021 18:32
    Ok let me rephrase then what i am looking for and whether its possible.

    Outside of HoldMusic tool, is it possible to use an audio prompt that has an expression set for certain duration in any audio sequence type object.

    Lets say i uploaded some music prompt wav file to the system and its 10mins long. Instead of rerecording 30s of that prompt and making it a separate wav file, i want to play 10mins long prompt  but play only 30s of it, and i understand that might be accomplished using expressions. 

    Is that possible and how would the sample expression formula look like?

    ------------------------------
    Azamat Rustamov
    Cerium Networks
    ------------------------------



  • 6.  RE: Hold Music in an Expression

    GENESYS
    Posted 06-16-2021 20:58
    No.  The Hold Music action is the only way to way to play part of a prompt instead of the entire thing.  Any other Audio expression will play the entirety of the prompt.

    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 7.  RE: Hold Music in an Expression

    Posted 06-17-2021 12:59
    Ok thanks for a response, that makes sense now

    ------------------------------
    Azamat Rustamov
    Cerium Networks
    ------------------------------



Need Help finding something?

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