Class: Nexmo::Calls::Talk
- Inherits:
-
Namespace
- Object
- Namespace
- Nexmo::Calls::Talk
- Defined in:
- lib/nexmo/calls/talk.rb
Instance Method Summary collapse
-
#start(id, params) ⇒ Response
Play text to speech into a call.
-
#stop(id) ⇒ Response
Stop text to speech in a call.
Instance Method Details
#start(id, params) ⇒ Response
Play text to speech into a call.
31 32 33 |
# File 'lib/nexmo/calls/talk.rb', line 31 def start(id, params) request('/v1/calls/' + id + '/talk', params: params, type: Put) end |
#stop(id) ⇒ Response
Stop text to speech in a call.
43 44 45 |
# File 'lib/nexmo/calls/talk.rb', line 43 def stop(id) request('/v1/calls/' + id + '/talk', type: Delete) end |