Class: Vonage::Voice::Talk
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Voice::Talk
- Defined in:
- lib/vonage/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.
42 43 44 |
# File 'lib/vonage/voice/talk.rb', line 42 def start(id, params) request('/v1/calls/' + id + '/talk', params: params, type: Put) end |
#stop(id) ⇒ Response
Stop text to speech in a call.
54 55 56 |
# File 'lib/vonage/voice/talk.rb', line 54 def stop(id) request('/v1/calls/' + id + '/talk', type: Delete) end |