Phone Notify! TextToSay Commands
From CDYNE Wiki for Web Services
(Redirected from Notify TextToSay Commands)
Back to Phone Notify!
Contents |
[edit] Playing Text To Speech (Computer generated voice):
No Special command required. Just type the text to say.
[edit] Example
Hello John Doe, your account is past due. Please call Jerry at 757-555-5555 to settle your account.
[edit] Playing a sound file
~^soundid~ - Replace soundid with the name of your sound file.
[edit] Example
Mixing sound files with Text To Speech:
~^intro~ John Doe ~^end~
[edit] TextToSay Advanced Commands
[edit] Syntax
~\command~
[edit] Commands
Phone Notify! TextToSay Advanced Commands - Lists the commands available.
[edit] Examples
[edit] Recording a sound file
[edit] Variables
Variables can only be used in the Commands above. The text to speech is converted before the call is made and therefore cannot use variables. We plan on adding a PlayDigits function that will allow you to playback a Variables contents to a caller. Please note that all variables are converted to lowercase. Variables are truncated if they become over 500 characters (although you can have multiple 500 character Variables).
[edit] Syntax
[variablename]
[edit] Special Variables
These are Variables assigned by the system during the phone call and can be used during the call.
- phonenumber - The phone number that was dialed. For incoming calls it is the phone number the caller dialed.
- queueid - The current queue number. (Incoming calls report this as 0).
- callerid - The CallerID that was set. For incoming calls this is the CallerID of the caller.
- calleridname - This is the CallerID name. Not currently set for incoming calls.
- extension - Only set if an extension was used.
- machinedetection - Can currently only be: HUMAN, MACHINE, or FAX. (keep in mind that this may change at anytime during the call since Answering Machine detection can happen at any time.)
[edit] Example
~\QueryExternalServer(http://ws.cdyne.com/testws/test.asmx/test?val=[somevariable]|returnvar)~
