Greetings,
First time diving into HSPhone scripting
System: PCI modem
There is a local "snow phone" and "What's going on" phone number here in Whistler that plays back a recorded message when you call it.
What I want to do is have HS call the local "snow phone" and broadcast the recorded message over the TTS speakers. Have not figured out how to do this
So what I figured I would try is a script that:
dials the number
creates a voicemail message
records the snow phone recorded information to the House mail box
Then somehow play back the message
Have not had any luck with this...getting errors for one thing...here is the script I am playing with:
Or is there a simple way of pipeing the sound directly to the TTS speakers?
First time diving into HSPhone scripting
System: PCI modem
There is a local "snow phone" and "What's going on" phone number here in Whistler that plays back a recorded message when you call it.
What I want to do is have HS call the local "snow phone" and broadcast the recorded message over the TTS speakers. Have not figured out how to do this
So what I figured I would try is a script that:
dials the number
creates a voicemail message
records the snow phone recorded information to the House mail box
Then somehow play back the message
Have not had any luck with this...getting errors for one thing...here is the script I am playing with:
Code:
sub main() dim r dim voice dim messege r=hsp.LINEDial(1,"604-932-4211",false,false) if r=5 then ' line is busy hs.WriteLog "Dial Error","Line busy" exit sub end if hsp.waitms 1000 messege=hsp.CreateMessageFilename(House, 604-932-4211, Snow Phone) hsp.LINERecordStart(1, message) hsp.waitms 10000 hsp.LINERecordStop hsp.waitms 1000 hsp.LINEHangUp 1 end sub
Comment