Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change VMpro wave files using $CP0 2

Status
Not open for further replies.

snowman50

Technical User
Nov 17, 2007
2,608
GB
Hi Guys

Ok I will tell you what I am trying to achive. [pc2]

I am installing an ipo for a Golf Club using VmPro.
they want the ability to apply different wav files relating to the weather conditions for the Day.

So when a member dials in they hear an option to hear the latest weather conditions for the Greens.
eg: option 1 weather conditions for the day.

the wav file played will tell the caller if the Green is open and the condition of the greens.
there will be at least 5 different messages depending on the weather conditions.

Now the Grounds man will need a simple way to select the pre recorded wave file relating to the weather condition .

Now I have achived this Manually and it works.

what I have done is set up a module "SetWeather" to allow the Grounds man to choose the option that relates to the weather condition

start- Menu
1-setuserVariable- variable Weather- Action 1 Plays $Key So as it plays the option selected (this works)
2 setuserVariable- variable Weather- Action 2 Plays $Key So as it plays the option selected
3 setuserVariable- variable Weather- Action 3 Plays $Key So as it plays the option selected
4 setuserVariable- variable Weather- Action 4 Plays $Key So as it plays the option selected
5 setuserVariable- variable Weather- Action 5 Plays $Key So as it plays the option selected

Now the module that plays the wave file PlayWeather

Start--Test user variable--weather Action 1-- True -Generic Weather$KEY.wav
False -Test user variable--weather Action 2

Test user variable--weather Action 2-- True -Generic Weather$KEY.wav
False -Test user variable--weather Action 3
Test user variable--weather Action 3-- True -Generic Weather$KEY.wav
False -Test user variable--weather Action 4
Test user variable--weather Action 4-- True -Generic Weather$KEY.wav
False -Test user variable--weather Action 5
Test user variable--weather Action 5-- True -Generic Weather$KEY.wav

The 5 files have been recorded and Named Weather1, Weather2,Weather3,Weather4,Weather5


now the Call flow Menu options
press 1 -"PlayWeather Module" this is the weather module above.
Press 2 pro shop
Press 3 office
press 4 restaurant
press 5 Bar

Ok so now what I am after is a simple method using $keys $CP0 combinations..
I have read a lot about this and I can get the SetWeather to work using $key to play back the input [morning]

The Problem is getting the PlayWeather to play [ponder]
What I cant get to work is using the $CPO to play the weather in the module

the information being sent to $CP0 is not transferring over to The next module.
I can see the Variable and its contents
I have read Bas1234 module on some thing simpler but its playing the wav file in the module I am having the problem.

I have used $KEY:$CP0 $CP0:REG(Weather uservariable) etc.
I Have used $Key or $CP0 to play back the input but don't get any thing .

Can any one help Me [thumbsup2]
I have searched the Tektips and got a lot of info.
But I still cant get it to work using the Flexible Variables

as you can see the Manual version works but I have to keep increasing the options in Set Weather and Play Weather if I want to add more wav files..

Thanks in advanced


 
Yes! I did this for a company that wanted to switch greetings based upon Daylight Savings without needing Module monstrosities!

Example:
GrtgDST: Hello, you have reached ABC Company. Our hours are 8am to 5pm Pacific Time
GrtgMST: Hello, you have reached ABC Company. Our hours are 7am to 4pm Pacific Time

Notice the greeting name has either MST or DST.

In VMPro, I created a userVariable called: TimeSet and then gave them a short code to change the value of that variable to either "MST" or "DST".


Modules:

CustomerChangeDST (*8990) Pin:<redacted>
- Option 1 - set to MSTEnabled (change user variable TimeSet to MST) -MountainStandardTime
- Option 2 - set to PSTEnabled (change user variable TimeSet to PST) -PacificStandardTime

After Option pressed, play recording: DSTEnabled$KEY.wav
Example:
"Mountain Standard Time Menus are now active" wav: DSTEnabled1.wav
"Pacific Standard Time Menus are now active" wav: DSTEnabled2.wav

Then I incorporated that variable in the greeting that is played in the Menu: MainGreeting$Reg[TimeSet].wav

Your requirement is to create two recordings: MainGreetingMST.wav and MainGreetingPST.wav

Use this example to create what your customer is requesting.

Hope this helps!!





--DB

 
For your example, store $KEY to the user variable - so, they press 1, and the value "1" will be store in the user variable "Weather"

In your Menu for Weather Conditions, play "GenericWeather$Reg[Weather].wav" - the proper recording will play based upon the selection made b the Pro Shop in the selection menu.

No need for IF statements.. Variables, they're our friends..

--DB

 
Thanks for that fast response..

I was hoping someone would understand that.

I will give that ago..

I'm away for the weekend so won't be able to try this out until next week.

Star for the detailed answer.
 
You could use a user variable that you simply set to 1 to 5 and that will then play the message according to the number chosen.
Even 2 user variables, 1 for Green open or closed and the other for the grounds condition.
I like user variables because you can easily read the value out with the vmpro client and even adjust that way.


Joe W.

FHandw, ACSS (SME)


"This is the end of the world, make sure to buy your T-shirt before it is too late"
Original expression of my daughter
 
And they survive a server reset which is quite important in many cases
 
hi DBrewsky.

I have eventually been able to get this to work using your advice .
It was the $REG[weather] variable that I had to use in most of the wav files.

Once I started to amend them they played back the correct greetings and I was then able to slot the play weather module into my menu..

The $cpO contents didn't seem to transfer over into the module.

Once I understood the concept I was able to play confirmation messages to the grounds man on which option was already in use.

Learnt a lot in just getting this to work and breaking it

Thanks for the help.[bow]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top