Class: TencentCloud::Iotexplorer::V20190423::TalkSTTConfigInfo

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

Overview

STT配置信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stttype = nil, enabled = nil, config = nil) ⇒ TalkSTTConfigInfo

Returns a new instance of TalkSTTConfigInfo.



13735
13736
13737
13738
13739
# File 'lib/v20190423/models.rb', line 13735

def initialize(stttype=nil, enabled=nil, config=nil)
  @STTType = stttype
  @Enabled = enabled
  @Config = config
end

Instance Attribute Details

#ConfigObject

deepgram

{
  "Model": "nova-2",
  "Language": "zh",
   "BaseUrl":"http://www.deepgram.com",
  "ApiKey": "SecretKey****"
}


13733
13734
13735
# File 'lib/v20190423/models.rb', line 13733

def Config
  @Config
end

#EnabledObject

deepgram

{
  "Model": "nova-2",
  "Language": "zh",
   "BaseUrl":"http://www.deepgram.com",
  "ApiKey": "SecretKey****"
}


13733
13734
13735
# File 'lib/v20190423/models.rb', line 13733

def Enabled
  @Enabled
end

#STTTypeObject

deepgram

{
  "Model": "nova-2",
  "Language": "zh",
   "BaseUrl":"http://www.deepgram.com",
  "ApiKey": "SecretKey****"
}


13733
13734
13735
# File 'lib/v20190423/models.rb', line 13733

def STTType
  @STTType
end

Instance Method Details

#deserialize(params) ⇒ Object



13741
13742
13743
13744
13745
# File 'lib/v20190423/models.rb', line 13741

def deserialize(params)
  @STTType = params['STTType']
  @Enabled = params['Enabled']
  @Config = params['Config']
end