Class: TencentCloud::Mps::V20190612::ComposeAudioOperation

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190612/models.rb

Overview

视频编辑/合成任务 音频操作。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, volume = nil) ⇒ ComposeAudioOperation

Returns a new instance of ComposeAudioOperation.



6369
6370
6371
6372
# File 'lib/v20190612/models.rb', line 6369

def initialize(type=nil, volume=nil)
  @Type = type
  @Volume = volume
end

Instance Attribute Details

#TypeObject

<li>Volume:音量调节。</li> <li>0 表示静音。</li> <li>小于1 表示降低音量。</li> <li>1 表示不变。</li> <li>大于1表示升高音量。</li>

Parameters:

  • Type:

    音频操作类型,取值有:

  • Volume:

    当 Type = Volume 时有效。音量调节参数,取值范围: 0~5。



6367
6368
6369
# File 'lib/v20190612/models.rb', line 6367

def Type
  @Type
end

#VolumeObject

<li>Volume:音量调节。</li> <li>0 表示静音。</li> <li>小于1 表示降低音量。</li> <li>1 表示不变。</li> <li>大于1表示升高音量。</li>

Parameters:

  • Type:

    音频操作类型,取值有:

  • Volume:

    当 Type = Volume 时有效。音量调节参数,取值范围: 0~5。



6367
6368
6369
# File 'lib/v20190612/models.rb', line 6367

def Volume
  @Volume
end

Instance Method Details

#deserialize(params) ⇒ Object



6374
6375
6376
6377
# File 'lib/v20190612/models.rb', line 6374

def deserialize(params)
  @Type = params['Type']
  @Volume = params['Volume']
end