# =================================================================================================== # _ __ _ _ # | |/ /__ _| | |_ _ _ _ _ __ _ # | ' . # # @ignore # =================================================================================================== require 'kaltura_client.rb' require File.dirname(__FILE__) + '/kaltura_integration_client_plugin.rb' require File.dirname(__FILE__) + '/kaltura_transcript_client_plugin.rb' module Kaltura class KalturaVoicebaseJobProviderData < KalturaIntegrationJobProviderData # Entry ID attr_accessor :entry_id # Flavor ID attr_accessor :flavor_asset_id # input Transcript-asset ID attr_accessor :transcript_id # Caption formats attr_accessor :caption_asset_formats # Api key for service provider attr_accessor :api_key # Api key for service provider attr_accessor :api_password # Transcript content language attr_accessor :spoken_language # Transcript Content location attr_accessor :file_location # should replace remote media content attr_accessor :replace_media_content # additional parameters to send to VoiceBase attr_accessor :additional_parameters def replace_media_content=(val) @replace_media_content = to_b(val) end def from_xml(xml_element) super if xml_element.elements['entryId'] != nil self.entry_id = xml_element.elements['entryId'].text end if xml_element.elements['flavorAssetId'] != nil self.flavor_asset_id = xml_element.elements['flavorAssetId'].text end if xml_element.elements['transcriptId'] != nil self.transcript_id = xml_element.elements['transcriptId'].text end if xml_element.elements['captionAssetFormats'] != nil self.caption_asset_formats = xml_element.elements['captionAssetFormats'].text end if xml_element.elements['apiKey'] != nil self.api_key = xml_element.elements['apiKey'].text end if xml_element.elements['apiPassword'] != nil self.api_password = xml_element.elements['apiPassword'].text end if xml_element.elements['spokenLanguage'] != nil self.spoken_language = xml_element.elements['spokenLanguage'].text end if xml_element.elements['fileLocation'] != nil self.file_location = xml_element.elements['fileLocation'].text end if xml_element.elements['replaceMediaContent'] != nil self.replace_media_content = xml_element.elements['replaceMediaContent'].text end if xml_element.elements['additionalParameters'] != nil self.additional_parameters = xml_element.elements['additionalParameters'].text end end end end