setvoiceoption
Description
bool setvoiceoption
( string $name
, string $value
)
setvoiceoption sets the option specified as name, value pair.
Following options can be specified:
- voicetype - Possible values can be "male" or "female".
- bargein - Possible values are 0(disabled) or 1(enabled).
- autospellnumbers - This option allows VoicePHP to readout any number in the text as individual digits rather than speaking it out literally (one million thirty thousand ....). The value 'N' specifies that this option should be activated only for number over N-1 digits e.g. when set to 7, all numbers
over 6 digits will be read as individual digits rather than literal. Checkout an example
here
- fetchtimeout - Specifies the timeout for fetch operation in seconds. A maximum of 255 seconds ca be specified. The default value is 20 seconds.
- dtmfeos - Specifies the end of stream character for DTMF input. The default character used is '#'.
Parameters
-
name
-
This specifies the name of the option that is intended to be set.
-
value
-
This specifies the value for the option that is intended to be set.
Return Values
Returns TRUE on success or FALSE on failure.