diff --git a/transcription.go b/transcription.go index b854e7d..1bcb045 100644 --- a/transcription.go +++ b/transcription.go @@ -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 { @@ -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 diff --git a/xml/plivoxml.go b/xml/plivoxml.go index 0c68697..cd9448d 100644 --- a/xml/plivoxml.go +++ b/xml/plivoxml.go @@ -1197,6 +1197,12 @@ type MultiPartyCallElement struct { StartRecordingAudioMethod *string `xml:"StartRecordingAudioMethod,attr"` StopRecordingAudio *string `xml:"StopRecordingAudio,attr"` StopRecordingAudioMethod *string `xml:"StopRecordingAudioMethod,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 {