Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::Audio

Inherits:
Codec
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-07-01/generated/azure_mgmt_media_services/models/audio.rb

Overview

Defines the common properties for all audio codecs.

Direct Known Subclasses

AacAudio

Instance Attribute Summary collapse

Attributes inherited from Codec

#label

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAudio

Returns a new instance of Audio.



16
17
18
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/audio.rb', line 16

def initialize
  @odatatype = "#Microsoft.Media.Audio"
end

Instance Attribute Details

#bitrateInteger

encoded audio.

Returns:

  • (Integer)

    The bitrate, in bits per second, of the output



30
31
32
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/audio.rb', line 30

def bitrate
  @bitrate
end

#channelsInteger

Returns The number of channels in the audio.

Returns:

  • (Integer)

    The number of channels in the audio.



23
24
25
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/audio.rb', line 23

def channels
  @channels
end

#odatatypeObject

Returns the value of attribute odatatype.



20
21
22
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/audio.rb', line 20

def odatatype
  @odatatype
end

#sampling_rateInteger

Returns The sampling rate to use for encoding in hertz.

Returns:

  • (Integer)

    The sampling rate to use for encoding in hertz.



26
27
28
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/audio.rb', line 26

def sampling_rate
  @sampling_rate
end

Class Method Details

.mapperObject

Mapper for Audio class as Ruby Hash. This will be used for serialization/deserialization.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/audio.rb', line 37

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: '#Microsoft.Media.Audio',
    type: {
      name: 'Composite',
      class_name: 'Audio',
      model_properties: {
        label: {
          client_side_validation: true,
          required: false,
          serialized_name: 'label',
          type: {
            name: 'String'
          }
        },
        odatatype: {
          client_side_validation: true,
          required: true,
          serialized_name: '@odata\\.type',
          type: {
            name: 'String'
          }
        },
        channels: {
          client_side_validation: true,
          required: false,
          serialized_name: 'channels',
          type: {
            name: 'Number'
          }
        },
        sampling_rate: {
          client_side_validation: true,
          required: false,
          serialized_name: 'samplingRate',
          type: {
            name: 'Number'
          }
        },
        bitrate: {
          client_side_validation: true,
          required: false,
          serialized_name: 'bitrate',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end