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.



13828
13829
13830
13831
13832
13833
13834
13835
# File 'lib/v20190423/models.rb', line 13828

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



13826
13827
13828
# File 'lib/v20190423/models.rb', line 13826

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



13826
13827
13828
# File 'lib/v20190423/models.rb', line 13826

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



13826
13827
13828
# File 'lib/v20190423/models.rb', line 13826

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



13826
13827
13828
# File 'lib/v20190423/models.rb', line 13826

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



13826
13827
13828
# File 'lib/v20190423/models.rb', line 13826

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



13826
13827
13828
# File 'lib/v20190423/models.rb', line 13826

def Volume
  @Volume
end

Instance Method Details

#deserialize(params) ⇒ Object



13837
13838
13839
13840
13841
13842
13843
13844
# File 'lib/v20190423/models.rb', line 13837

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