Skip to content

Commit

Permalink
Merge pull request #253 from plivo/VT-7039
Browse files Browse the repository at this point in the history
paramAdditionInSpeakApi
  • Loading branch information
eniyavan-muruganantham-plivo authored Jan 5, 2024
2 parents adc51ec + bc7eca3 commit 4a5a566
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Change Log
## [4.47.1](https://github.com/plivo/plivo-python/tree/v4.47.1) (2023-12-19)
**Type param addition in speak api for call and mpc**

## [4.47.0](https://github.com/plivo/plivo-python/tree/v4.47.0) (2023-12-07)
**Minor enhancements and optimizations**

Expand Down
14 changes: 9 additions & 5 deletions plivo/resources/calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def speak(self,
language=None,
legs=None,
loop=None,
mix=None, is_voice_request=True):
mix=None,
type=None, is_voice_request=True):
return self.client.calls.speak(self.id,
**to_param_dict(self.start_playing,
locals()))
Expand All @@ -83,7 +84,8 @@ def start_speaking(self,
language=None,
legs=None,
loop=None,
mix=None):
mix=None,
type=None):
return self.client.calls.start_speaking(self.id,
**to_param_dict(
self.start_playing,
Expand Down Expand Up @@ -421,10 +423,11 @@ def speak(self,
loop=None,
mix=None,
callback_url=None,
callback_method=None
callback_method=None,
type=None,
):
return self.start_speaking(call_uuid, text, voice, language, legs,
loop, mix, callback_url, callback_method)
loop, mix, callback_url, callback_method, type)

@validate_args(call_uuid=[of_type(six.text_type)])
def start_speaking(self,
Expand All @@ -436,7 +439,8 @@ def start_speaking(self,
loop=None,
mix=None,
callback_url=None,
callback_method=None
callback_method=None,
type=None
):
return self.client.request('POST', ('Call', call_uuid, 'Speak'),
to_param_dict(self.start_speaking,
Expand Down
2 changes: 1 addition & 1 deletion plivo/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = '4.47.0'
__version__ = '4.47.1'

0 comments on commit 4a5a566

Please sign in to comment.