Skip to content

Commit

Permalink
rebasing with master
Browse files Browse the repository at this point in the history
  • Loading branch information
Abinaya-Shunmugavel committed Nov 19, 2024
2 parents 5e8b337 + a29aa10 commit a594196
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
**Feature - Transcription params added in MPC XML Element**
- Support for the `transcriptionUrl`, `transcript` parameter in MPC XML Element.

## [7.55.1](https://github.com/plivo/plivo-go/tree/v7.55.1) (2024-11-15)
**Feature - RecordParticipantTrack param added in MPC XML creation**
- Support for the `RecordParticipantTrack` parameter in MPC XML Creation.

## [7.55.0](https://github.com/plivo/plivo-go/tree/v7.55.0) (2024-11-12)
**Feature - CreateRecordingTranscription and DeleteRecordingTranscription feature added**
Expand Down
10 changes: 5 additions & 5 deletions transcription.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ type GetRecordingTranscriptionRequest struct {
TranscriptionType string `json:"type"`
}

type CallBackUrlStruct struct {
CallbackUrl string `json:"callback_url,omitempty" url:"callback_url,omitempty"`
type TranscriptionCallbackUrlStruct struct {
TranscriptionCallbackUrl string `json:"transcription_callback_url,omitempty" url:"transcription_callback_url,omitempty"`
}

type RecordingTranscriptionRequest struct {
RecordingID string `json:"recording_id"`
CallbackUrl string `json:"callback_url,omitempty" url:"callback_url,omitempty"`
RecordingID string `json:"recording_id"`
TranscriptionCallbackUrl string `json:"transcription_callback_url,omitempty" url:"transcription_callback_url,omitempty"`
}

type DeleteRecordingTranscriptionRequest struct {
Expand All @@ -37,7 +37,7 @@ type GetRecordingTranscriptionResponse struct {
}

func (service *TranscriptionService) CreateRecordingTranscription(request RecordingTranscriptionRequest) (response map[string]interface{}, err error) {
param := CallBackUrlStruct{CallbackUrl: request.CallbackUrl}
param := TranscriptionCallbackUrlStruct{TranscriptionCallbackUrl: request.TranscriptionCallbackUrl}
req, err := service.client.NewRequest("POST", param, "Transcription/%s", request.RecordingID)
if err != nil {
return
Expand Down
6 changes: 6 additions & 0 deletions xml/plivoxml.go
Original file line number Diff line number Diff line change
Expand Up @@ -1199,6 +1199,12 @@ type MultiPartyCallElement struct {
StopRecordingAudioMethod *string `xml:"StopRecordingAudioMethod,attr"`
Transcript *bool `xml:"transcript,attr"`
TranscriptionUrl *string `xml:"transcriptionUrl,attr"`
RecordParticipantTrack *bool `xml:"recordParticipantTrack,attr"`
}

func (e MultiPartyCallElement) SetRecordParticipantTrack(value bool) MultiPartyCallElement {
e.RecordParticipantTrack = &value
return e
}

func (e MultiPartyCallElement) SetRole(value string) MultiPartyCallElement {
Expand Down

0 comments on commit a594196

Please sign in to comment.