Class: TencentCloud::Iotexplorer::V20190423::TalkTTSConfigInfo

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

Overview

TTS配置信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ttstype = nil, enabled = nil, config = nil, speed = nil, volume = nil, pitch = nil) ⇒ TalkTTSConfigInfo

Returns a new instance of TalkTTSConfigInfo.



13798
13799
13800
13801
13802
13803
13804
13805
# File 'lib/v20190423/models.rb', line 13798

def initialize(ttstype=nil, enabled=nil, config=nil, speed=nil, volume=nil, pitch=nil)
  @TTSType = ttstype
  @Enabled = enabled
  @Config = config
  @Speed = speed
  @Volume = volume
  @Pitch = pitch
end

Instance Attribute Details

#ConfigObject

## azure “‘

 "SubscriptionKey": 100203,
 "Region": "ch-zn",
 "VoiceName": "XXXXX",
"Language":"zh"

“‘ ## elevenlabs “`

"ModelId": 100203,
"VoiceId": "ch-zn",
"ApiKey": "XXXXX"

“‘ ## minimax “`

"Model":"xxxx",
 "ApiUrl": "346w34",
 "ApiKey": "xxx",
 "GroupId": "ion",
"VoiceType":"xioawei"

“‘ ## cartesia “`

"Model":"xxxx",
 "ApiKey": "xxx",
"VoiceId":"xioawei"

“‘ ## aliyun “`

"VoiceType": 100203,
"RegionId": "XXXX",
"ApiKey": "XXXXX"

“‘ ## volcengine “`

 "AppId": "346w34",
 "AccessToken": "xxx",
 "ResourceId": "volc.bigasr.sauc.duration",
"VoiceType":"xioawei"

“‘

Parameters:

  • Speed:

    温度

  • Volume:

    最大token数

  • Pitch:

    PITCH



13796
13797
13798
# File 'lib/v20190423/models.rb', line 13796

def Config
  @Config
end

#EnabledObject

## azure “‘

 "SubscriptionKey": 100203,
 "Region": "ch-zn",
 "VoiceName": "XXXXX",
"Language":"zh"

“‘ ## elevenlabs “`

"ModelId": 100203,
"VoiceId": "ch-zn",
"ApiKey": "XXXXX"

“‘ ## minimax “`

"Model":"xxxx",
 "ApiUrl": "346w34",
 "ApiKey": "xxx",
 "GroupId": "ion",
"VoiceType":"xioawei"

“‘ ## cartesia “`

"Model":"xxxx",
 "ApiKey": "xxx",
"VoiceId":"xioawei"

“‘ ## aliyun “`

"VoiceType": 100203,
"RegionId": "XXXX",
"ApiKey": "XXXXX"

“‘ ## volcengine “`

 "AppId": "346w34",
 "AccessToken": "xxx",
 "ResourceId": "volc.bigasr.sauc.duration",
"VoiceType":"xioawei"

“‘

Parameters:

  • Speed:

    温度

  • Volume:

    最大token数

  • Pitch:

    PITCH



13796
13797
13798
# File 'lib/v20190423/models.rb', line 13796

def Enabled
  @Enabled
end

#PitchObject

## azure “‘

 "SubscriptionKey": 100203,
 "Region": "ch-zn",
 "VoiceName": "XXXXX",
"Language":"zh"

“‘ ## elevenlabs “`

"ModelId": 100203,
"VoiceId": "ch-zn",
"ApiKey": "XXXXX"

“‘ ## minimax “`

"Model":"xxxx",
 "ApiUrl": "346w34",
 "ApiKey": "xxx",
 "GroupId": "ion",
"VoiceType":"xioawei"

“‘ ## cartesia “`

"Model":"xxxx",
 "ApiKey": "xxx",
"VoiceId":"xioawei"

“‘ ## aliyun “`

"VoiceType": 100203,
"RegionId": "XXXX",
"ApiKey": "XXXXX"

“‘ ## volcengine “`

 "AppId": "346w34",
 "AccessToken": "xxx",
 "ResourceId": "volc.bigasr.sauc.duration",
"VoiceType":"xioawei"

“‘

Parameters:

  • Speed:

    温度

  • Volume:

    最大token数

  • Pitch:

    PITCH



13796
13797
13798
# File 'lib/v20190423/models.rb', line 13796

def Pitch
  @Pitch
end

#SpeedObject

## azure “‘

 "SubscriptionKey": 100203,
 "Region": "ch-zn",
 "VoiceName": "XXXXX",
"Language":"zh"

“‘ ## elevenlabs “`

"ModelId": 100203,
"VoiceId": "ch-zn",
"ApiKey": "XXXXX"

“‘ ## minimax “`

"Model":"xxxx",
 "ApiUrl": "346w34",
 "ApiKey": "xxx",
 "GroupId": "ion",
"VoiceType":"xioawei"

“‘ ## cartesia “`

"Model":"xxxx",
 "ApiKey": "xxx",
"VoiceId":"xioawei"

“‘ ## aliyun “`

"VoiceType": 100203,
"RegionId": "XXXX",
"ApiKey": "XXXXX"

“‘ ## volcengine “`

 "AppId": "346w34",
 "AccessToken": "xxx",
 "ResourceId": "volc.bigasr.sauc.duration",
"VoiceType":"xioawei"

“‘

Parameters:

  • Speed:

    温度

  • Volume:

    最大token数

  • Pitch:

    PITCH



13796
13797
13798
# File 'lib/v20190423/models.rb', line 13796

def Speed
  @Speed
end

#TTSTypeObject

## azure “‘

 "SubscriptionKey": 100203,
 "Region": "ch-zn",
 "VoiceName": "XXXXX",
"Language":"zh"

“‘ ## elevenlabs “`

"ModelId": 100203,
"VoiceId": "ch-zn",
"ApiKey": "XXXXX"

“‘ ## minimax “`

"Model":"xxxx",
 "ApiUrl": "346w34",
 "ApiKey": "xxx",
 "GroupId": "ion",
"VoiceType":"xioawei"

“‘ ## cartesia “`

"Model":"xxxx",
 "ApiKey": "xxx",
"VoiceId":"xioawei"

“‘ ## aliyun “`

"VoiceType": 100203,
"RegionId": "XXXX",
"ApiKey": "XXXXX"

“‘ ## volcengine “`

 "AppId": "346w34",
 "AccessToken": "xxx",
 "ResourceId": "volc.bigasr.sauc.duration",
"VoiceType":"xioawei"

“‘

Parameters:

  • Speed:

    温度

  • Volume:

    最大token数

  • Pitch:

    PITCH



13796
13797
13798
# File 'lib/v20190423/models.rb', line 13796

def TTSType
  @TTSType
end

#VolumeObject

## azure “‘

 "SubscriptionKey": 100203,
 "Region": "ch-zn",
 "VoiceName": "XXXXX",
"Language":"zh"

“‘ ## elevenlabs “`

"ModelId": 100203,
"VoiceId": "ch-zn",
"ApiKey": "XXXXX"

“‘ ## minimax “`

"Model":"xxxx",
 "ApiUrl": "346w34",
 "ApiKey": "xxx",
 "GroupId": "ion",
"VoiceType":"xioawei"

“‘ ## cartesia “`

"Model":"xxxx",
 "ApiKey": "xxx",
"VoiceId":"xioawei"

“‘ ## aliyun “`

"VoiceType": 100203,
"RegionId": "XXXX",
"ApiKey": "XXXXX"

“‘ ## volcengine “`

 "AppId": "346w34",
 "AccessToken": "xxx",
 "ResourceId": "volc.bigasr.sauc.duration",
"VoiceType":"xioawei"

“‘

Parameters:

  • Speed:

    温度

  • Volume:

    最大token数

  • Pitch:

    PITCH



13796
13797
13798
# File 'lib/v20190423/models.rb', line 13796

def Volume
  @Volume
end

Instance Method Details

#deserialize(params) ⇒ Object



13807
13808
13809
13810
13811
13812
13813
13814
# File 'lib/v20190423/models.rb', line 13807

def deserialize(params)
  @TTSType = params['TTSType']
  @Enabled = params['Enabled']
  @Config = params['Config']
  @Speed = params['Speed']
  @Volume = params['Volume']
  @Pitch = params['Pitch']
end