PureEngage On-Premises

 View Only

Sign Up

  • 1.  Composer - Play Sound Block

    Posted 08-29-2019 12:13

    Hey

    Does anyone has an idea how to  Composer Plays .wav/.vox under Play Sound block with out specifying the Resource and by providing the Sound type as Busy or Silence .

    I could see default .wav/.vox are been picked based on the type even though we are not providing any default .wav/.vox


    #Routing(ACD/IVR)

    ------------------------------
    Aditya Namburi
    ------------------------------


  • 2.  RE: Composer - Play Sound Block

    Posted 08-30-2019 09:15
    The Play Prompt block, if selected as Resource, is an static audio file you select in the block properties. 
    You can use dynamic paths too, it is like a common HTML/Javascript routines to load an image in a web site for example.

    As for the Busy/Silence, those names are determined at SIP Server options. 

    The VOX and WAV extensions are actually defined at your language js file (Resources folder/Lang pack)

    /**
    * Default audio file extension
    */
    var audioFileExtension = ".wav";


    ------------------------------
    Jorge Cornejo
    VS Telecom LTDA.
    ------------------------------



  • 3.  RE: Composer - Play Sound Block

    Posted 08-30-2019 09:58
    this thread brought up another question.  Is there a way to pick a file dynamically based on branch blocks above.  Scenario:

    I check in branch block if i am a Chase Customer or BankOne Customer (code would set some variable).  I want to play audio based on whether chase or bank one, so now i create two play prompt blocks.  Which works, however, we have a new requirement that would be a branch with about 15 banks...that means i would have to duplicate 15 play prompt blocks.  was hoping for one prompt block, and audio would be played based on variable. 


    ------------------------------
    Clayton Curtis
    Enova Financial
    ------------------------------



  • 4.  RE: Composer - Play Sound Block

    Posted 08-30-2019 10:05
    As said, this is a javascript function, so you can call the audiofiles for example, audio1, audio2....audio15. Then your JS will be var='audio'+UData['BranchNumber']+'.wav'...the idea is that.
    So in your prompt block you instead of calling a Resource, you call a variable. Of course the variable will need to also include the language folder path.
    I suggest to take a look at MCP logs so you understand exactly what your block is doing.

    ------------------------------
    Jorge Cornejo
    VS Telecom LTDA.
    ------------------------------



  • 5.  RE: Composer - Play Sound Block

    Posted 08-30-2019 10:16
    This makes sense now! thanks!

    ------------------------------
    Clayton Curtis
    Enova Financial
    ------------------------------