Call speak_to_caller

Reads a text for caller using the text to speech engine into a call in progress.

def speak_to_caller message

Code example 1 - Definition

Method parameters

Parameter name Value Description Default value Mandatory
message string value
e.g. 'Hello world!'
Text message to read. (None) Yes

Example

#get the active calls list
calls = OPS.list_active_calls '192.168.0.1', nil, 'admin', 'password'

#pick up the first call
call = calls[0]

if (call != nil)
call.speak_to_caller "Test me!"
end

Code example 2 - Text to speech to caller

More information