Class: GetStream::Generated::Models::StartTranscriptionRequest

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/start_transcription_request.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ StartTranscriptionRequest

Initialize with attributes



23
24
25
26
27
28
# File 'lib/getstream_ruby/generated/models/start_transcription_request.rb', line 23

def initialize(attributes = {})
  super(attributes)
  @enable_closed_captions = attributes[:enable_closed_captions] || attributes['enable_closed_captions'] || nil
  @language = attributes[:language] || attributes['language'] || nil
  @transcription_external_storage = attributes[:transcription_external_storage] || attributes['transcription_external_storage'] || nil
end

Instance Attribute Details

#enable_closed_captionsBoolean

Returns Enable closed captions along with transcriptions.

Returns:

  • (Boolean)

    Enable closed captions along with transcriptions



14
15
16
# File 'lib/getstream_ruby/generated/models/start_transcription_request.rb', line 14

def enable_closed_captions
  @enable_closed_captions
end

#languageString

Returns The spoken language in the call, if not provided the language defined in the transcription settings will be used.

Returns:

  • (String)

    The spoken language in the call, if not provided the language defined in the transcription settings will be used



17
18
19
# File 'lib/getstream_ruby/generated/models/start_transcription_request.rb', line 17

def language
  @language
end

#transcription_external_storageString

Returns Store transcriptions in this external storage.

Returns:

  • (String)

    Store transcriptions in this external storage



20
21
22
# File 'lib/getstream_ruby/generated/models/start_transcription_request.rb', line 20

def transcription_external_storage
  @transcription_external_storage
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



31
32
33
34
35
36
37
# File 'lib/getstream_ruby/generated/models/start_transcription_request.rb', line 31

def self.json_field_mappings
  {
    enable_closed_captions: 'enable_closed_captions',
    language: 'language',
    transcription_external_storage: 'transcription_external_storage'
  }
end