tencentcloud-sdk-trtc 3.0.1153 → 3.0.1163
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190722/models.rb +85 -38
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 35fb94044599b8afc72d9de18e2b6c6027e4a45f
|
|
4
|
+
data.tar.gz: 7fd22333c233818cfb6d68dee8fc0007f997b44e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9a626facd3b5c051ffc988e4922426d28d602434b47a9e206ece581909f5163d588400ba57f5915854f440d66a0884745d2f101109d0487b05651309d42406ae
|
|
7
|
+
data.tar.gz: 8fa259843fcb320f0cddc4cb2224d108633dcf902a21e97bd2db7b851d5b49be1b44918cb984297356af4d8a3a656d5a4d2deea13eff871a3265a68ba8b7ec30
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1163
|
data/lib/v20190722/models.rb
CHANGED
|
@@ -278,17 +278,21 @@ module TencentCloud
|
|
|
278
278
|
|
|
279
279
|
# TTS音频输出的格式
|
|
280
280
|
class AudioFormat < TencentCloud::Common::AbstractModel
|
|
281
|
-
# @param Format: 生成的音频格式,默认pcm
|
|
281
|
+
# @param Format: 生成的音频格式,默认pcm,目前支持的格式列表:流式:[pcm],非流式 [pcm,wav]
|
|
282
282
|
# @type Format: String
|
|
283
|
+
# @param SampleRate: 采样率,默认24000, 可选16000, 24000
|
|
284
|
+
# @type SampleRate: Integer
|
|
283
285
|
|
|
284
|
-
attr_accessor :Format
|
|
286
|
+
attr_accessor :Format, :SampleRate
|
|
285
287
|
|
|
286
|
-
def initialize(format=nil)
|
|
288
|
+
def initialize(format=nil, samplerate=nil)
|
|
287
289
|
@Format = format
|
|
290
|
+
@SampleRate = samplerate
|
|
288
291
|
end
|
|
289
292
|
|
|
290
293
|
def deserialize(params)
|
|
291
294
|
@Format = params['Format']
|
|
295
|
+
@SampleRate = params['SampleRate']
|
|
292
296
|
end
|
|
293
297
|
end
|
|
294
298
|
|
|
@@ -4771,10 +4775,10 @@ module TencentCloud
|
|
|
4771
4775
|
|
|
4772
4776
|
attr_accessor :Language, :AlternativeLanguage, :Model, :TranslationLanguage, :HotWordList, :VadSilenceTime, :VadLevel
|
|
4773
4777
|
extend Gem::Deprecate
|
|
4774
|
-
deprecate :Model, :none, 2025,
|
|
4775
|
-
deprecate :Model=, :none, 2025,
|
|
4776
|
-
deprecate :TranslationLanguage, :none, 2025,
|
|
4777
|
-
deprecate :TranslationLanguage=, :none, 2025,
|
|
4778
|
+
deprecate :Model, :none, 2025, 11
|
|
4779
|
+
deprecate :Model=, :none, 2025, 11
|
|
4780
|
+
deprecate :TranslationLanguage, :none, 2025, 11
|
|
4781
|
+
deprecate :TranslationLanguage=, :none, 2025, 11
|
|
4778
4782
|
|
|
4779
4783
|
def initialize(language=nil, alternativelanguage=nil, model=nil, translationlanguage=nil, hotwordlist=nil, vadsilencetime=nil, vadlevel=nil)
|
|
4780
4784
|
@Language = language
|
|
@@ -5897,12 +5901,12 @@ module TencentCloud
|
|
|
5897
5901
|
|
|
5898
5902
|
attr_accessor :SdkAppId, :RoomId, :RoomIdType, :UserId, :UserSig, :StreamUrl, :PrivateMapKey, :VideoEncodeParams, :AudioEncodeParams, :SourceUrl, :SeekSecond, :AutoPush, :RepeatNum, :MaxDuration, :Volume
|
|
5899
5903
|
extend Gem::Deprecate
|
|
5900
|
-
deprecate :VideoEncodeParams, :none, 2025,
|
|
5901
|
-
deprecate :VideoEncodeParams=, :none, 2025,
|
|
5902
|
-
deprecate :AudioEncodeParams, :none, 2025,
|
|
5903
|
-
deprecate :AudioEncodeParams=, :none, 2025,
|
|
5904
|
-
deprecate :SourceUrl, :none, 2025,
|
|
5905
|
-
deprecate :SourceUrl=, :none, 2025,
|
|
5904
|
+
deprecate :VideoEncodeParams, :none, 2025, 11
|
|
5905
|
+
deprecate :VideoEncodeParams=, :none, 2025, 11
|
|
5906
|
+
deprecate :AudioEncodeParams, :none, 2025, 11
|
|
5907
|
+
deprecate :AudioEncodeParams=, :none, 2025, 11
|
|
5908
|
+
deprecate :SourceUrl, :none, 2025, 11
|
|
5909
|
+
deprecate :SourceUrl=, :none, 2025, 11
|
|
5906
5910
|
|
|
5907
5911
|
def initialize(sdkappid=nil, roomid=nil, roomidtype=nil, userid=nil, usersig=nil, streamurl=nil, privatemapkey=nil, videoencodeparams=nil, audioencodeparams=nil, sourceurl=nil, seeksecond=nil, autopush=nil, repeatnum=nil, maxduration=nil, volume=nil)
|
|
5908
5912
|
@SdkAppId = sdkappid
|
|
@@ -5969,16 +5973,16 @@ module TencentCloud
|
|
|
5969
5973
|
|
|
5970
5974
|
# StartWebRecord请求参数结构体
|
|
5971
5975
|
class StartWebRecordRequest < TencentCloud::Common::AbstractModel
|
|
5972
|
-
# @param RecordUrl:
|
|
5976
|
+
# @param RecordUrl: 【必填】需要录制的网页URL
|
|
5973
5977
|
# @type RecordUrl: String
|
|
5974
|
-
# @param MaxDurationLimit: 录制最大时长限制, 单位 s, 合法取值范围[1800, 36000], 默认 36000s(10 小时)
|
|
5975
|
-
# @type MaxDurationLimit: Integer
|
|
5976
5978
|
# @param StorageParams: 【必填】云存储相关的参数,目前支持腾讯云对象存储以及腾讯云云点播VOD,不支持第三方云存储;输出文件的存储格式仅支持hls或mp4
|
|
5977
5979
|
# @type StorageParams: :class:`Tencentcloud::Trtc.v20190722.models.StorageParams`
|
|
5978
|
-
# @param WebRecordVideoParams: 页面录制视频参数
|
|
5979
|
-
# @type WebRecordVideoParams: :class:`Tencentcloud::Trtc.v20190722.models.WebRecordVideoParams`
|
|
5980
5980
|
# @param SdkAppId: 【必填】TRTC的SdkAppId
|
|
5981
5981
|
# @type SdkAppId: Integer
|
|
5982
|
+
# @param MaxDurationLimit: 录制最大时长限制, 单位 s, 合法取值范围[1800, 86400], 默认 86400s(24 小时)
|
|
5983
|
+
# @type MaxDurationLimit: Integer
|
|
5984
|
+
# @param WebRecordVideoParams: 页面录制视频参数
|
|
5985
|
+
# @type WebRecordVideoParams: :class:`Tencentcloud::Trtc.v20190722.models.WebRecordVideoParams`
|
|
5982
5986
|
# @param RecordId: 当对重复任务敏感时,请关注此值: 为了避免任务在短时间内重复发起,导致任务重复
|
|
5983
5987
|
# 传入录制RecordId来标识此次任务, 小于32字节,若携带RecordId发起两次以上的开始录制请求,任务只会启动一个,第二个报错FailedOperation.TaskExist。注意StartWebRecord调用失败时而非FailedOperation.TaskExist错误,请更换RecordId重新发起。
|
|
5984
5988
|
# @type RecordId: String
|
|
@@ -5989,14 +5993,14 @@ module TencentCloud
|
|
|
5989
5993
|
# @param EmulateMobileParams: 渲染移动模式参数;不准备渲染移动模式页面时,请勿设置此参数。
|
|
5990
5994
|
# @type EmulateMobileParams: :class:`Tencentcloud::Trtc.v20190722.models.EmulateMobileParams`
|
|
5991
5995
|
|
|
5992
|
-
attr_accessor :RecordUrl, :
|
|
5996
|
+
attr_accessor :RecordUrl, :StorageParams, :SdkAppId, :MaxDurationLimit, :WebRecordVideoParams, :RecordId, :PublishCdnParams, :ReadyTimeout, :EmulateMobileParams
|
|
5993
5997
|
|
|
5994
|
-
def initialize(recordurl=nil,
|
|
5998
|
+
def initialize(recordurl=nil, storageparams=nil, sdkappid=nil, maxdurationlimit=nil, webrecordvideoparams=nil, recordid=nil, publishcdnparams=nil, readytimeout=nil, emulatemobileparams=nil)
|
|
5995
5999
|
@RecordUrl = recordurl
|
|
5996
|
-
@MaxDurationLimit = maxdurationlimit
|
|
5997
6000
|
@StorageParams = storageparams
|
|
5998
|
-
@WebRecordVideoParams = webrecordvideoparams
|
|
5999
6001
|
@SdkAppId = sdkappid
|
|
6002
|
+
@MaxDurationLimit = maxdurationlimit
|
|
6003
|
+
@WebRecordVideoParams = webrecordvideoparams
|
|
6000
6004
|
@RecordId = recordid
|
|
6001
6005
|
@PublishCdnParams = publishcdnparams
|
|
6002
6006
|
@ReadyTimeout = readytimeout
|
|
@@ -6005,16 +6009,16 @@ module TencentCloud
|
|
|
6005
6009
|
|
|
6006
6010
|
def deserialize(params)
|
|
6007
6011
|
@RecordUrl = params['RecordUrl']
|
|
6008
|
-
@MaxDurationLimit = params['MaxDurationLimit']
|
|
6009
6012
|
unless params['StorageParams'].nil?
|
|
6010
6013
|
@StorageParams = StorageParams.new
|
|
6011
6014
|
@StorageParams.deserialize(params['StorageParams'])
|
|
6012
6015
|
end
|
|
6016
|
+
@SdkAppId = params['SdkAppId']
|
|
6017
|
+
@MaxDurationLimit = params['MaxDurationLimit']
|
|
6013
6018
|
unless params['WebRecordVideoParams'].nil?
|
|
6014
6019
|
@WebRecordVideoParams = WebRecordVideoParams.new
|
|
6015
6020
|
@WebRecordVideoParams.deserialize(params['WebRecordVideoParams'])
|
|
6016
6021
|
end
|
|
6017
|
-
@SdkAppId = params['SdkAppId']
|
|
6018
6022
|
@RecordId = params['RecordId']
|
|
6019
6023
|
unless params['PublishCdnParams'].nil?
|
|
6020
6024
|
@PublishCdnParams = []
|
|
@@ -6493,15 +6497,19 @@ module TencentCloud
|
|
|
6493
6497
|
class TTSConfig < TencentCloud::Common::AbstractModel
|
|
6494
6498
|
# @param VoiceId: 音色ID
|
|
6495
6499
|
# @type VoiceId: String
|
|
6500
|
+
# @param Model: TTS 的模型,默认是:flow_01_turbo, 可选: [ flow_01_turbo, flow_01_ex]
|
|
6501
|
+
# @type Model: String
|
|
6496
6502
|
|
|
6497
|
-
attr_accessor :VoiceId
|
|
6503
|
+
attr_accessor :VoiceId, :Model
|
|
6498
6504
|
|
|
6499
|
-
def initialize(voiceid=nil)
|
|
6505
|
+
def initialize(voiceid=nil, model=nil)
|
|
6500
6506
|
@VoiceId = voiceid
|
|
6507
|
+
@Model = model
|
|
6501
6508
|
end
|
|
6502
6509
|
|
|
6503
6510
|
def deserialize(params)
|
|
6504
6511
|
@VoiceId = params['VoiceId']
|
|
6512
|
+
@Model = params['Model']
|
|
6505
6513
|
end
|
|
6506
6514
|
end
|
|
6507
6515
|
|
|
@@ -6587,15 +6595,24 @@ module TencentCloud
|
|
|
6587
6595
|
# @type AudioFormat: :class:`Tencentcloud::Trtc.v20190722.models.AudioFormat`
|
|
6588
6596
|
# @param APIKey: TTS的API密钥
|
|
6589
6597
|
# @type APIKey: String
|
|
6598
|
+
# @param Model: TTS的模型:flow_01_turbo,flow_01_ex
|
|
6599
|
+
# @type Model: String
|
|
6600
|
+
# @param Language: 语言参数,默认为空, 参考: (ISO 639-1)
|
|
6601
|
+
# @type Language: String
|
|
6590
6602
|
|
|
6591
|
-
attr_accessor :Text, :Voice, :SdkAppId, :AudioFormat, :APIKey
|
|
6603
|
+
attr_accessor :Text, :Voice, :SdkAppId, :AudioFormat, :APIKey, :Model, :Language
|
|
6604
|
+
extend Gem::Deprecate
|
|
6605
|
+
deprecate :APIKey, :none, 2025, 11
|
|
6606
|
+
deprecate :APIKey=, :none, 2025, 11
|
|
6592
6607
|
|
|
6593
|
-
def initialize(text=nil, voice=nil, sdkappid=nil, audioformat=nil, apikey=nil)
|
|
6608
|
+
def initialize(text=nil, voice=nil, sdkappid=nil, audioformat=nil, apikey=nil, model=nil, language=nil)
|
|
6594
6609
|
@Text = text
|
|
6595
6610
|
@Voice = voice
|
|
6596
6611
|
@SdkAppId = sdkappid
|
|
6597
6612
|
@AudioFormat = audioformat
|
|
6598
6613
|
@APIKey = apikey
|
|
6614
|
+
@Model = model
|
|
6615
|
+
@Language = language
|
|
6599
6616
|
end
|
|
6600
6617
|
|
|
6601
6618
|
def deserialize(params)
|
|
@@ -6610,6 +6627,8 @@ module TencentCloud
|
|
|
6610
6627
|
@AudioFormat.deserialize(params['AudioFormat'])
|
|
6611
6628
|
end
|
|
6612
6629
|
@APIKey = params['APIKey']
|
|
6630
|
+
@Model = params['Model']
|
|
6631
|
+
@Language = params['Language']
|
|
6613
6632
|
end
|
|
6614
6633
|
end
|
|
6615
6634
|
|
|
@@ -6645,15 +6664,21 @@ module TencentCloud
|
|
|
6645
6664
|
# @type AudioFormat: :class:`Tencentcloud::Trtc.v20190722.models.AudioFormat`
|
|
6646
6665
|
# @param APIKey: TTS的API密钥
|
|
6647
6666
|
# @type APIKey: String
|
|
6667
|
+
# @param Model: TTS的模型:flow_01_turbo,flow_01_ex
|
|
6668
|
+
# @type Model: String
|
|
6669
|
+
# @param Language: 语言参数,默认为空, 参考: (ISO 639-1)
|
|
6670
|
+
# @type Language: String
|
|
6648
6671
|
|
|
6649
|
-
attr_accessor :Text, :Voice, :SdkAppId, :AudioFormat, :APIKey
|
|
6672
|
+
attr_accessor :Text, :Voice, :SdkAppId, :AudioFormat, :APIKey, :Model, :Language
|
|
6650
6673
|
|
|
6651
|
-
def initialize(text=nil, voice=nil, sdkappid=nil, audioformat=nil, apikey=nil)
|
|
6674
|
+
def initialize(text=nil, voice=nil, sdkappid=nil, audioformat=nil, apikey=nil, model=nil, language=nil)
|
|
6652
6675
|
@Text = text
|
|
6653
6676
|
@Voice = voice
|
|
6654
6677
|
@SdkAppId = sdkappid
|
|
6655
6678
|
@AudioFormat = audioformat
|
|
6656
6679
|
@APIKey = apikey
|
|
6680
|
+
@Model = model
|
|
6681
|
+
@Language = language
|
|
6657
6682
|
end
|
|
6658
6683
|
|
|
6659
6684
|
def deserialize(params)
|
|
@@ -6668,6 +6693,8 @@ module TencentCloud
|
|
|
6668
6693
|
@AudioFormat.deserialize(params['AudioFormat'])
|
|
6669
6694
|
end
|
|
6670
6695
|
@APIKey = params['APIKey']
|
|
6696
|
+
@Model = params['Model']
|
|
6697
|
+
@Language = params['Language']
|
|
6671
6698
|
end
|
|
6672
6699
|
end
|
|
6673
6700
|
|
|
@@ -6734,10 +6761,10 @@ module TencentCloud
|
|
|
6734
6761
|
|
|
6735
6762
|
attr_accessor :UserId, :UserSig, :IMAdminUserId, :IMAdminUserSig, :MaxIdleTime, :TranscriptionMode, :TargetUserId, :TargetUserIdList, :VoicePrint, :TurnDetection
|
|
6736
6763
|
extend Gem::Deprecate
|
|
6737
|
-
deprecate :IMAdminUserId, :none, 2025,
|
|
6738
|
-
deprecate :IMAdminUserId=, :none, 2025,
|
|
6739
|
-
deprecate :IMAdminUserSig, :none, 2025,
|
|
6740
|
-
deprecate :IMAdminUserSig=, :none, 2025,
|
|
6764
|
+
deprecate :IMAdminUserId, :none, 2025, 11
|
|
6765
|
+
deprecate :IMAdminUserId=, :none, 2025, 11
|
|
6766
|
+
deprecate :IMAdminUserSig, :none, 2025, 11
|
|
6767
|
+
deprecate :IMAdminUserSig=, :none, 2025, 11
|
|
6741
6768
|
|
|
6742
6769
|
def initialize(userid=nil, usersig=nil, imadminuserid=nil, imadminusersig=nil, maxidletime=nil, transcriptionmode=nil, targetuserid=nil, targetuseridlist=nil, voiceprint=nil, turndetection=nil)
|
|
6743
6770
|
@UserId = userid
|
|
@@ -7284,15 +7311,27 @@ module TencentCloud
|
|
|
7284
7311
|
class Voice < TencentCloud::Common::AbstractModel
|
|
7285
7312
|
# @param VoiceId: TTS的声音的ID
|
|
7286
7313
|
# @type VoiceId: String
|
|
7314
|
+
# @param Speed: 语速,范围 0.5-2.0,默认 1.0
|
|
7315
|
+
# @type Speed: Float
|
|
7316
|
+
# @param Volume: (0, 10] 默认值1.0
|
|
7317
|
+
# @type Volume: Float
|
|
7318
|
+
# @param Pitch: 取值[-12,12],默认0
|
|
7319
|
+
# @type Pitch: Integer
|
|
7287
7320
|
|
|
7288
|
-
attr_accessor :VoiceId
|
|
7321
|
+
attr_accessor :VoiceId, :Speed, :Volume, :Pitch
|
|
7289
7322
|
|
|
7290
|
-
def initialize(voiceid=nil)
|
|
7323
|
+
def initialize(voiceid=nil, speed=nil, volume=nil, pitch=nil)
|
|
7291
7324
|
@VoiceId = voiceid
|
|
7325
|
+
@Speed = speed
|
|
7326
|
+
@Volume = volume
|
|
7327
|
+
@Pitch = pitch
|
|
7292
7328
|
end
|
|
7293
7329
|
|
|
7294
7330
|
def deserialize(params)
|
|
7295
7331
|
@VoiceId = params['VoiceId']
|
|
7332
|
+
@Speed = params['Speed']
|
|
7333
|
+
@Volume = params['Volume']
|
|
7334
|
+
@Pitch = params['Pitch']
|
|
7296
7335
|
end
|
|
7297
7336
|
end
|
|
7298
7337
|
|
|
@@ -7308,15 +7347,21 @@ module TencentCloud
|
|
|
7308
7347
|
# @type APIKey: String
|
|
7309
7348
|
# @param PromptText: 声音克隆的参考文本,为参考音频对应的文字。
|
|
7310
7349
|
# @type PromptText: String
|
|
7350
|
+
# @param Model: TTS的模型:flow_01_turbo,flow_01_ex
|
|
7351
|
+
# @type Model: String
|
|
7352
|
+
# @param Language: 语言参数,默认为空, 参考: (ISO 639-1)
|
|
7353
|
+
# @type Language: String
|
|
7311
7354
|
|
|
7312
|
-
attr_accessor :SdkAppId, :VoiceName, :PromptAudio, :APIKey, :PromptText
|
|
7355
|
+
attr_accessor :SdkAppId, :VoiceName, :PromptAudio, :APIKey, :PromptText, :Model, :Language
|
|
7313
7356
|
|
|
7314
|
-
def initialize(sdkappid=nil, voicename=nil, promptaudio=nil, apikey=nil, prompttext=nil)
|
|
7357
|
+
def initialize(sdkappid=nil, voicename=nil, promptaudio=nil, apikey=nil, prompttext=nil, model=nil, language=nil)
|
|
7315
7358
|
@SdkAppId = sdkappid
|
|
7316
7359
|
@VoiceName = voicename
|
|
7317
7360
|
@PromptAudio = promptaudio
|
|
7318
7361
|
@APIKey = apikey
|
|
7319
7362
|
@PromptText = prompttext
|
|
7363
|
+
@Model = model
|
|
7364
|
+
@Language = language
|
|
7320
7365
|
end
|
|
7321
7366
|
|
|
7322
7367
|
def deserialize(params)
|
|
@@ -7325,6 +7370,8 @@ module TencentCloud
|
|
|
7325
7370
|
@PromptAudio = params['PromptAudio']
|
|
7326
7371
|
@APIKey = params['APIKey']
|
|
7327
7372
|
@PromptText = params['PromptText']
|
|
7373
|
+
@Model = params['Model']
|
|
7374
|
+
@Language = params['Language']
|
|
7328
7375
|
end
|
|
7329
7376
|
end
|
|
7330
7377
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-trtc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1163
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|
|
@@ -33,9 +33,9 @@ executables: []
|
|
|
33
33
|
extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
|
-
- lib/tencentcloud-sdk-trtc.rb
|
|
37
|
-
- lib/v20190722/models.rb
|
|
38
36
|
- lib/v20190722/client.rb
|
|
37
|
+
- lib/v20190722/models.rb
|
|
38
|
+
- lib/tencentcloud-sdk-trtc.rb
|
|
39
39
|
- lib/VERSION
|
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
41
41
|
licenses:
|