Dismiss Notice
We would like to remind you that we’re updating our login process for all 3CX forums whereby you will be able to login with the same credentials you use for the Partner or Customer Portal. Click here to read more.

(Un)-Technical Question(s)

Discussion in 'CRM / Helpdesk / App Integration' started by tpinnovations, Aug 7, 2009.

Thread Status:
Not open for further replies.
  1. tpinnovations

    tpinnovations Member

    Joined:
    Jul 30, 2009
    Messages:
    296
    Likes Received:
    0
    Alright, So I've been playing around with the VAD for a while, But there is a few things I don't understand. My programing skills are limited to PHP/MySQL/MSSQL + VAD.

    Lets say I want to build a basic weather script that reads the following:

    Time, Date, Temperature, Forecast, Current Watches and Warnings + An Advert

    I have already recorded all of the prompts for the conditions, numbers, alerts, advisory's, adverts etc.. and I already have a script that goes on the web server.

    So my thoughts were this;

    1. Ask the user for there zip code or do a area code lookup.
    2. Use the web service component to read each variable (in a query string) from a web page and select and assemble the proper audio prompts.
    3. Play the assembled audio.

    However I've run into a snag...

    1. I don't understand what type of response the web service component is looking for, Am I to feed each field in XML? How is the output read?
    2. How can I dynamically build the audio based on information from that page?

    Any guidance on this would be greatly appreciated.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. VAD_Support

    VAD_Support Active Member

    Joined:
    Aug 6, 2009
    Messages:
    690
    Likes Received:
    0
    Hi,

    The web service component expects to receive the response in XML format, and returns the content of the first element as a string. You need to parse that response in some way to get the right values of each variable (time, date, temperature, etc.). If the response contains fixed length information, you can use VAD functions like LEFT, MID or RIGHT to get the part of the response that you want. If the response has a more complex format, you can use an External Code Execution Component and write a simple .NET DLL or javascript function to parse it.

    Once you have each value, you can use a Conditional component to play the right file. For example, a condition branch could check if forecast='sunny', and play the right prompt in that case.

    Unfortunately, the current version of the VAD can not play numbers, so you will not be able to easily play for example the temperature... This will be added in future releases.

    Hope this helps, and post back if you still have any doubt.
     
  3. tpinnovations

    tpinnovations Member

    Joined:
    Jul 30, 2009
    Messages:
    296
    Likes Received:
    0
    If I have say, the numbers one threw one hundred in a recorded format, Your saying it still wont work or combining two waves to make a phrase wont work?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. VAD_Support

    VAD_Support Active Member

    Joined:
    Aug 6, 2009
    Messages:
    690
    Likes Received:
    0
    If you have the wav files you can always combine them to play the phrase you want.
    But if for example, you have a variable with the number 123, there is no way in the current version to play it automatically, I mean automatically converting the number to the phrase one hundred and twenty three.
    That functionality will be definitely added in future versions, I think this is a very basic and useful need.
     
Thread Status:
Not open for further replies.