Class: TencentCloud::Tts::V20190823::TextToVoiceRequest

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

Overview

TextToVoice请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text = nil, sessionid = nil, volume = nil, speed = nil, projectid = nil, modeltype = nil, voicetype = nil, fastvoicetype = nil, primarylanguage = nil, samplerate = nil, codec = nil, enablesubtitle = nil, segmentrate = nil, emotioncategory = nil, emotionintensity = nil) ⇒ TextToVoiceRequest

Returns a new instance of TextToVoiceRequest.



286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/v20190823/models.rb', line 286

def initialize(text=nil, sessionid=nil, volume=nil, speed=nil, projectid=nil, modeltype=nil, voicetype=nil, fastvoicetype=nil, primarylanguage=nil, samplerate=nil, codec=nil, enablesubtitle=nil, segmentrate=nil, emotioncategory=nil, emotionintensity=nil)
  @Text = text
  @SessionId = sessionid
  @Volume = volume
  @Speed = speed
  @ProjectId = projectid
  @ModelType = modeltype
  @VoiceType = voicetype
  @FastVoiceType = fastvoicetype
  @PrimaryLanguage = primarylanguage
  @SampleRate = samplerate
  @Codec = codec
  @EnableSubtitle = enablesubtitle
  @SegmentRate = segmentrate
  @EmotionCategory = emotioncategory
  @EmotionIntensity = emotionintensity
end

Instance Attribute Details

#CodecObject

Parameters:



284
285
286
# File 'lib/v20190823/models.rb', line 284

def Codec
  @Codec
end

#EmotionCategoryObject

Parameters:



284
285
286
# File 'lib/v20190823/models.rb', line 284

def EmotionCategory
  @EmotionCategory
end

#EmotionIntensityObject

Parameters:



284
285
286
# File 'lib/v20190823/models.rb', line 284

def EmotionIntensity
  @EmotionIntensity
end

#EnableSubtitleObject

Parameters:



284
285
286
# File 'lib/v20190823/models.rb', line 284

def EnableSubtitle
  @EnableSubtitle
end

#FastVoiceTypeObject

Parameters:



284
285
286
# File 'lib/v20190823/models.rb', line 284

def FastVoiceType
  @FastVoiceType
end

#ModelTypeObject

Parameters:



284
285
286
# File 'lib/v20190823/models.rb', line 284

def ModelType
  @ModelType
end

#PrimaryLanguageObject

Parameters:



284
285
286
# File 'lib/v20190823/models.rb', line 284

def PrimaryLanguage
  @PrimaryLanguage
end

#ProjectIdObject

Parameters:



284
285
286
# File 'lib/v20190823/models.rb', line 284

def ProjectId
  @ProjectId
end

#SampleRateObject

Parameters:



284
285
286
# File 'lib/v20190823/models.rb', line 284

def SampleRate
  @SampleRate
end

#SegmentRateObject

Parameters:



284
285
286
# File 'lib/v20190823/models.rb', line 284

def SegmentRate
  @SegmentRate
end

#SessionIdObject

Parameters:



284
285
286
# File 'lib/v20190823/models.rb', line 284

def SessionId
  @SessionId
end

#SpeedObject

Parameters:



284
285
286
# File 'lib/v20190823/models.rb', line 284

def Speed
  @Speed
end

#TextObject

Parameters:



284
285
286
# File 'lib/v20190823/models.rb', line 284

def Text
  @Text
end

#VoiceTypeObject

Parameters:



284
285
286
# File 'lib/v20190823/models.rb', line 284

def VoiceType
  @VoiceType
end

#VolumeObject

Parameters:



284
285
286
# File 'lib/v20190823/models.rb', line 284

def Volume
  @Volume
end

Instance Method Details

#deserialize(params) ⇒ Object



304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
# File 'lib/v20190823/models.rb', line 304

def deserialize(params)
  @Text = params['Text']
  @SessionId = params['SessionId']
  @Volume = params['Volume']
  @Speed = params['Speed']
  @ProjectId = params['ProjectId']
  @ModelType = params['ModelType']
  @VoiceType = params['VoiceType']
  @FastVoiceType = params['FastVoiceType']
  @PrimaryLanguage = params['PrimaryLanguage']
  @SampleRate = params['SampleRate']
  @Codec = params['Codec']
  @EnableSubtitle = params['EnableSubtitle']
  @SegmentRate = params['SegmentRate']
  @EmotionCategory = params['EmotionCategory']
  @EmotionIntensity = params['EmotionIntensity']
end