Class: TencentCloud::Tsi::V20210325::TTS
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tsi::V20210325::TTS
- Defined in:
- lib/v20210325/models.rb
Overview
同传TTS请求参数
Instance Attribute Summary collapse
-
#Codec ⇒ Object
-
16000:16k(默认) - 8000:8k.
-
-
#SampleRate ⇒ Object
-
16000:16k(默认) - 8000:8k.
-
-
#Speed ⇒ Object
-
16000:16k(默认) - 8000:8k.
-
-
#VoiceType ⇒ Object
-
16000:16k(默认) - 8000:8k.
-
-
#Volume ⇒ Object
-
16000:16k(默认) - 8000:8k.
-
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(codec = nil, voicetype = nil, volume = nil, speed = nil, samplerate = nil) ⇒ TTS
constructor
A new instance of TTS.
Constructor Details
#initialize(codec = nil, voicetype = nil, volume = nil, speed = nil, samplerate = nil) ⇒ TTS
Returns a new instance of TTS.
93 94 95 96 97 98 99 |
# File 'lib/v20210325/models.rb', line 93 def initialize(codec=nil, voicetype=nil, volume=nil, speed=nil, samplerate=nil) @Codec = codec @VoiceType = voicetype @Volume = volume @Speed = speed @SampleRate = samplerate end |
Instance Attribute Details
#Codec ⇒ Object
-
16000:16k(默认)
-
8000:8k
91 92 93 |
# File 'lib/v20210325/models.rb', line 91 def Codec @Codec end |
#SampleRate ⇒ Object
-
16000:16k(默认)
-
8000:8k
91 92 93 |
# File 'lib/v20210325/models.rb', line 91 def SampleRate @SampleRate end |
#Speed ⇒ Object
-
16000:16k(默认)
-
8000:8k
91 92 93 |
# File 'lib/v20210325/models.rb', line 91 def Speed @Speed end |
#VoiceType ⇒ Object
-
16000:16k(默认)
-
8000:8k
91 92 93 |
# File 'lib/v20210325/models.rb', line 91 def VoiceType @VoiceType end |
#Volume ⇒ Object
-
16000:16k(默认)
-
8000:8k
91 92 93 |
# File 'lib/v20210325/models.rb', line 91 def Volume @Volume end |
Instance Method Details
#deserialize(params) ⇒ Object
101 102 103 104 105 106 107 |
# File 'lib/v20210325/models.rb', line 101 def deserialize(params) @Codec = params['Codec'] @VoiceType = params['VoiceType'] @Volume = params['Volume'] @Speed = params['Speed'] @SampleRate = params['SampleRate'] end |