Class: TencentCloud::Vtc::V20240223::AudioTranslateResult

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

Overview

音频翻译结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sourcetext = nil, targettext = nil) ⇒ AudioTranslateResult

Returns a new instance of AudioTranslateResult.



56
57
58
59
# File 'lib/v20240223/models.rb', line 56

def initialize(sourcetext=nil, targettext=nil)
  @SourceText = sourcetext
  @TargetText = targettext
end

Instance Attribute Details

#SourceTextObject

Parameters:

  • SourceText:

    原文本

  • TargetText:

    目标文本



54
55
56
# File 'lib/v20240223/models.rb', line 54

def SourceText
  @SourceText
end

#TargetTextObject

Parameters:

  • SourceText:

    原文本

  • TargetText:

    目标文本



54
55
56
# File 'lib/v20240223/models.rb', line 54

def TargetText
  @TargetText
end

Instance Method Details

#deserialize(params) ⇒ Object



61
62
63
64
# File 'lib/v20240223/models.rb', line 61

def deserialize(params)
  @SourceText = params['SourceText']
  @TargetText = params['TargetText']
end