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.



5627
5628
5629
5630
# File 'lib/v20190612/models.rb', line 5627

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。



5625
5626
5627
# File 'lib/v20190612/models.rb', line 5625

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。



5625
5626
5627
# File 'lib/v20190612/models.rb', line 5625

def Volume
  @Volume
end

Instance Method Details

#deserialize(params) ⇒ Object



5632
5633
5634
5635
# File 'lib/v20190612/models.rb', line 5632

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