Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paramAdditionInSpeakApi #253

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
Loading