Class: Nexmo::Voice::Talk
- Inherits:
-
Namespace
- Object
- Namespace
- Nexmo::Voice::Talk
- Defined in:
- lib/nexmo/voice/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.
32 33 34 |
# File 'lib/nexmo/voice/talk.rb', line 32 def start(id, params) request('/v1/calls/' + id + '/talk', params: params, type: Put) end |
#stop(id) ⇒ Response
Stop text to speech in a call.
44 45 46 |
# File 'lib/nexmo/voice/talk.rb', line 44 def stop(id) request('/v1/calls/' + id + '/talk', type: Delete) end |