From 0514c0caac7c6da11260fbc46e4a61175c5ee63c Mon Sep 17 00:00:00 2001 From: Manjunath Shanbhog Date: Wed, 8 Oct 2025 07:38:11 +0530 Subject: [PATCH 1/2] transcription report type in record API --- CHANGELOG.md | 4 ++++ plivo/resources/calls.py | 4 ++++ plivo/version.py | 2 +- plivo/xml/ResponseElement.py | 2 ++ plivo/xml/recordElement.py | 19 +++++++++++++++++++ setup.py | 2 +- 6 files changed, 31 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2999c36e..9c16460e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Change Log +## [4.59.3](https://github.com/plivo/plivo-python/tree/v4.59.3) (2025-10-08) +**Feature - New Param added for Start Recording API.** +- Support `transcription_report_type` in Start Recording API and `transcription_report_type` in Record XML. + ## [4.59.2](https://github.com/plivo/plivo-python/tree/v4.59.2) (2025-08-06) **Feature - Expanded Media Type Support for Media Upload** - Added support for additional media file formats: GIF, MP3, WAV, OGG, 3GPP, 3GPP2, VCARD, CSV, XLS, XLSX, and PLAIN text files diff --git a/plivo/resources/calls.py b/plivo/resources/calls.py index 17fe09bd..55d3972e 100644 --- a/plivo/resources/calls.py +++ b/plivo/resources/calls.py @@ -31,6 +31,7 @@ def record(self, transcription_type=None, transcription_url=None, transcription_method=None, + transcription_report_type=None, callback_url=None, callback_method=None, record_channel_type=None): @@ -43,6 +44,7 @@ def start_recording(self, transcription_type=None, transcription_url=None, transcription_method=None, + transcription_report_type=None, callback_url=None, callback_method=None): return self.client.calls.start_recording(self.id, @@ -345,6 +347,7 @@ def record(self, transcription_type=None, transcription_url=None, transcription_method=None, + transcription_report_type=None, callback_url=None, callback_method=None, record_channel_type=None): @@ -359,6 +362,7 @@ def start_recording(self, transcription_type=None, transcription_url=None, transcription_method=None, + transcription_report_type=None, callback_url=None, callback_method=None, record_channel_type=None): diff --git a/plivo/version.py b/plivo/version.py index 58e258a1..9222a418 100644 --- a/plivo/version.py +++ b/plivo/version.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -__version__ = '4.59.2' +__version__ = '4.59.3' diff --git a/plivo/xml/ResponseElement.py b/plivo/xml/ResponseElement.py index 6860b8a7..5da76736 100644 --- a/plivo/xml/ResponseElement.py +++ b/plivo/xml/ResponseElement.py @@ -259,6 +259,7 @@ def add_record( start_on_dial_answer=None, transcription_type=None, transcription_url=None, + transcription_report_type=None, transcription_method=None, callback_url=None, callback_method=None, @@ -277,6 +278,7 @@ def add_record( start_on_dial_answer=start_on_dial_answer, transcription_type=transcription_type, transcription_url=transcription_url, + transcription_report_type=transcription_report_type, transcription_method=transcription_method, callback_url=callback_url, callback_method=callback_method, diff --git a/plivo/xml/recordElement.py b/plivo/xml/recordElement.py index a703bc19..9af3571d 100644 --- a/plivo/xml/recordElement.py +++ b/plivo/xml/recordElement.py @@ -206,6 +206,22 @@ def transcription_method(self, value): def set_transcription_method(self, value): self.transcription_method = value return self + + @property + def transcription_report_type(self): + return self.__transcription_report_type + + @transcription_report_type.setter + def transcription_report_type(self, value): + self.__transcription_report_type = six.text_type( + value) if value is not None else None + + @validate_args( + value=[of_type(six.text_type)], + ) + def set_transcription_report_type(self, value): + self.transcription_report_type = value + return self @property def callback_url(self): @@ -270,6 +286,7 @@ def __init__( transcription_type=None, transcription_url=None, transcription_method=None, + transcription_report_type=None, callback_url=None, callback_method=None, record_channel_type=None @@ -288,6 +305,7 @@ def __init__( self.start_on_dial_answer = start_on_dial_answer self.transcription_type = transcription_type self.transcription_url = transcription_url + self.transcription_report_type = transcription_report_type self.transcription_method = transcription_method self.callback_url = callback_url self.callback_method = callback_method @@ -308,6 +326,7 @@ def to_dict(self): 'transcriptionType': self.transcription_type, 'transcriptionUrl': self.transcription_url, 'transcriptionMethod': self.transcription_method, + 'transcription_report_type': self.transcription_report_type, 'callbackUrl': self.callback_url, 'callbackMethod': self.callback_method, 'recordChannelType': self.record_channel_type diff --git a/setup.py b/setup.py index 706051a3..eed8d66c 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name='plivo', - version='4.59.2', + version='4.59.3', description='A Python SDK to make voice calls & send SMS using Plivo and to generate Plivo XML', long_description=long_description, url='https://github.com/plivo/plivo-python', From c467556adfe7fe5747c08bde4af4f1f3ea6db4a1 Mon Sep 17 00:00:00 2001 From: Manjunath Shanbhog Date: Wed, 8 Oct 2025 08:52:09 +0530 Subject: [PATCH 2/2] fix xml name filed --- CHANGELOG.md | 2 +- plivo/xml/recordElement.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c16460e..9853b632 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Change Log ## [4.59.3](https://github.com/plivo/plivo-python/tree/v4.59.3) (2025-10-08) **Feature - New Param added for Start Recording API.** -- Support `transcription_report_type` in Start Recording API and `transcription_report_type` in Record XML. +- Support `transcription_report_type` in Start Recording API and `transcriptionReportType` in Record XML. ## [4.59.2](https://github.com/plivo/plivo-python/tree/v4.59.2) (2025-08-06) **Feature - Expanded Media Type Support for Media Upload** diff --git a/plivo/xml/recordElement.py b/plivo/xml/recordElement.py index 9af3571d..423687e0 100644 --- a/plivo/xml/recordElement.py +++ b/plivo/xml/recordElement.py @@ -326,7 +326,7 @@ def to_dict(self): 'transcriptionType': self.transcription_type, 'transcriptionUrl': self.transcription_url, 'transcriptionMethod': self.transcription_method, - 'transcription_report_type': self.transcription_report_type, + 'transcriptionReportType': self.transcription_report_type, 'callbackUrl': self.callback_url, 'callbackMethod': self.callback_method, 'recordChannelType': self.record_channel_type