tencentcloud-sdk-trtc 3.0.1183 → 3.0.1195
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 +48 -29
- 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: db3edb2f191cfa5a07e8748cbaf85bcef9962b7e
|
|
4
|
+
data.tar.gz: 2243858671752ce25e3786ebc202ecac4fd6d2e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df76055cd00067bf8fbf427c0ec362ac4dedefe3c085f63060e7d894d18304df31d6a317de0ad79f11d7073a7e08a1b4d0ebe88a97e0381c057f0343b8405ee4
|
|
7
|
+
data.tar.gz: 66d5e0a5e028fd8a088a60a0d853d0227408bc461bb31121d6e651e3b6b330fec86f68b1e25203dc41a949d556195e38135b27489c1e1d1aa00fb55ab23713ea
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1195
|
data/lib/v20190722/models.rb
CHANGED
|
@@ -293,17 +293,21 @@ module TencentCloud
|
|
|
293
293
|
# - 16000
|
|
294
294
|
# - 24000
|
|
295
295
|
# @type SampleRate: Integer
|
|
296
|
+
# @param Bitrate: MP3 比特率 (kbps),仅对 MP3 格式生效, 可以选: `64`, `128`, `192`, `256` , 默认: `128`
|
|
297
|
+
# @type Bitrate: Integer
|
|
296
298
|
|
|
297
|
-
attr_accessor :Format, :SampleRate
|
|
299
|
+
attr_accessor :Format, :SampleRate, :Bitrate
|
|
298
300
|
|
|
299
|
-
def initialize(format=nil, samplerate=nil)
|
|
301
|
+
def initialize(format=nil, samplerate=nil, bitrate=nil)
|
|
300
302
|
@Format = format
|
|
301
303
|
@SampleRate = samplerate
|
|
304
|
+
@Bitrate = bitrate
|
|
302
305
|
end
|
|
303
306
|
|
|
304
307
|
def deserialize(params)
|
|
305
308
|
@Format = params['Format']
|
|
306
309
|
@SampleRate = params['SampleRate']
|
|
310
|
+
@Bitrate = params['Bitrate']
|
|
307
311
|
end
|
|
308
312
|
end
|
|
309
313
|
|
|
@@ -4786,10 +4790,10 @@ module TencentCloud
|
|
|
4786
4790
|
|
|
4787
4791
|
attr_accessor :Language, :AlternativeLanguage, :Model, :TranslationLanguage, :HotWordList, :VadSilenceTime, :VadLevel
|
|
4788
4792
|
extend Gem::Deprecate
|
|
4789
|
-
deprecate :Model, :none,
|
|
4790
|
-
deprecate :Model=, :none,
|
|
4791
|
-
deprecate :TranslationLanguage, :none,
|
|
4792
|
-
deprecate :TranslationLanguage=, :none,
|
|
4793
|
+
deprecate :Model, :none, 2026, 1
|
|
4794
|
+
deprecate :Model=, :none, 2026, 1
|
|
4795
|
+
deprecate :TranslationLanguage, :none, 2026, 1
|
|
4796
|
+
deprecate :TranslationLanguage=, :none, 2026, 1
|
|
4793
4797
|
|
|
4794
4798
|
def initialize(language=nil, alternativelanguage=nil, model=nil, translationlanguage=nil, hotwordlist=nil, vadsilencetime=nil, vadlevel=nil)
|
|
4795
4799
|
@Language = language
|
|
@@ -5499,10 +5503,9 @@ module TencentCloud
|
|
|
5499
5503
|
# @type RoomIdType: Integer
|
|
5500
5504
|
# @param STTConfig: 语音识别配置。
|
|
5501
5505
|
# @type STTConfig: :class:`Tencentcloud::Trtc.v20190722.models.STTConfig`
|
|
5502
|
-
# @param LLMConfig: LLM配置。需符合openai规范,为JSON
|
|
5503
|
-
# <pre> { <br>   "LLMType": "大模型类型", // String 必填,如:"openai" <br>   "Model": "您的模型名称", // String 必填,指定使用的模型<br> "APIKey": "您的LLM API密钥", // String 必填 <br>   "APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL<br>   "History": 10, // Integer 选填,设置 LLM 的上下文轮次,默认值为0,最大值50<br>   "HistoryMode": 1, // Integer 选填,1表示LLM上下文中的内容会和播放音频做同步,没有播放的音频对应的文本不会出现在上下文中。0表示不会做同步,默认值为0<br>   "Streaming": true // Boolean 非必填,指定是否使用流式传输<br>  } </pre>
|
|
5506
|
+
# @param LLMConfig: 必填参数,LLM配置。需符合openai规范,为JSON字符串,示例如下:<pre> { <br>   "LLMType": "大模型类型", // String 必填,如:"openai" <br>   "Model": "您的模型名称", // String 必填,指定使用的模型<br> "APIKey": "您的LLM API密钥", // String 必填 <br>   "APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL<br>   "History": 10, // Integer 选填,设置 LLM 的上下文轮次,默认值为0,最大值50<br>   "HistoryMode": 1, // Integer 选填,1表示LLM上下文中的内容会和播放音频做同步,没有播放的音频对应的文本不会出现在上下文中。0表示不会做同步,默认值为0<br>   "Streaming": true // Boolean 非必填,指定是否使用流式传输<br>  } </pre>
|
|
5504
5507
|
# @type LLMConfig: String
|
|
5505
|
-
# @param TTSConfig: TTS
|
|
5508
|
+
# @param TTSConfig: 必填参数,TTS配置,详见 [TTS配置说明](https://cloud.tencent.com/document/product/647/115414 ), 为JSON字符串: TRTC TTS的配置如下:```{ "TTSType": "flow", // 【必填】固定为此值 "VoiceId": "v-female-R2s4N9qJ", // 【必填】精品音色 ID /克隆音色 ID, 可选择不同音色, ID 库参考下方音色列表 "Model": "flow_01_turbo", // 【必填】当前默认的 TTS 模型版本(对应 Flash 版本) "Speed": 1.0, //【可选】调节语速 范围 [0.5-2.0],默认 1.0; 取值越大,语速越快 "Volume": 1.0, // 【可选】调节音量 [0, 10] 默认值 1.0; 取值越大,音量越高 "Pitch": 0, // 【可选】调节语调 [-12,12],默认值为 0,其中 0 为原音色输出。 "Language": "zh" //【可选】建议填写,目前支持填写中文:zh 英文:en 粤语方言:yue; 参数参考:(ISO 639-1) }```
|
|
5506
5509
|
# @type TTSConfig: String
|
|
5507
5510
|
# @param AvatarConfig: 数字人配置,为JSON字符串。**数字人配置需要提工单加白后才能使用**
|
|
5508
5511
|
# @type AvatarConfig: String
|
|
@@ -5913,17 +5916,21 @@ module TencentCloud
|
|
|
5913
5916
|
# @type MaxDuration: Integer
|
|
5914
5917
|
# @param Volume: 音量,取值范围[0, 100],默认100,表示原音量。
|
|
5915
5918
|
# @type Volume: Integer
|
|
5919
|
+
# @param EnableProgress: 开启播放进度回调, 默认false,当开启后,播放进度会通过trtc custom data 回调给播放端
|
|
5920
|
+
# @type EnableProgress: Boolean
|
|
5921
|
+
# @param Tempo: 播放倍速,默认1.0,可取[0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0]
|
|
5922
|
+
# @type Tempo: Float
|
|
5916
5923
|
|
|
5917
|
-
attr_accessor :SdkAppId, :RoomId, :RoomIdType, :UserId, :UserSig, :StreamUrl, :PrivateMapKey, :VideoEncodeParams, :AudioEncodeParams, :SourceUrl, :SeekSecond, :AutoPush, :RepeatNum, :MaxDuration, :Volume
|
|
5924
|
+
attr_accessor :SdkAppId, :RoomId, :RoomIdType, :UserId, :UserSig, :StreamUrl, :PrivateMapKey, :VideoEncodeParams, :AudioEncodeParams, :SourceUrl, :SeekSecond, :AutoPush, :RepeatNum, :MaxDuration, :Volume, :EnableProgress, :Tempo
|
|
5918
5925
|
extend Gem::Deprecate
|
|
5919
|
-
deprecate :VideoEncodeParams, :none,
|
|
5920
|
-
deprecate :VideoEncodeParams=, :none,
|
|
5921
|
-
deprecate :AudioEncodeParams, :none,
|
|
5922
|
-
deprecate :AudioEncodeParams=, :none,
|
|
5923
|
-
deprecate :SourceUrl, :none,
|
|
5924
|
-
deprecate :SourceUrl=, :none,
|
|
5925
|
-
|
|
5926
|
-
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)
|
|
5926
|
+
deprecate :VideoEncodeParams, :none, 2026, 1
|
|
5927
|
+
deprecate :VideoEncodeParams=, :none, 2026, 1
|
|
5928
|
+
deprecate :AudioEncodeParams, :none, 2026, 1
|
|
5929
|
+
deprecate :AudioEncodeParams=, :none, 2026, 1
|
|
5930
|
+
deprecate :SourceUrl, :none, 2026, 1
|
|
5931
|
+
deprecate :SourceUrl=, :none, 2026, 1
|
|
5932
|
+
|
|
5933
|
+
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, enableprogress=nil, tempo=nil)
|
|
5927
5934
|
@SdkAppId = sdkappid
|
|
5928
5935
|
@RoomId = roomid
|
|
5929
5936
|
@RoomIdType = roomidtype
|
|
@@ -5939,6 +5946,8 @@ module TencentCloud
|
|
|
5939
5946
|
@RepeatNum = repeatnum
|
|
5940
5947
|
@MaxDuration = maxduration
|
|
5941
5948
|
@Volume = volume
|
|
5949
|
+
@EnableProgress = enableprogress
|
|
5950
|
+
@Tempo = tempo
|
|
5942
5951
|
end
|
|
5943
5952
|
|
|
5944
5953
|
def deserialize(params)
|
|
@@ -5963,6 +5972,8 @@ module TencentCloud
|
|
|
5963
5972
|
@RepeatNum = params['RepeatNum']
|
|
5964
5973
|
@MaxDuration = params['MaxDuration']
|
|
5965
5974
|
@Volume = params['Volume']
|
|
5975
|
+
@EnableProgress = params['EnableProgress']
|
|
5976
|
+
@Tempo = params['Tempo']
|
|
5966
5977
|
end
|
|
5967
5978
|
end
|
|
5968
5979
|
|
|
@@ -6625,8 +6636,8 @@ module TencentCloud
|
|
|
6625
6636
|
|
|
6626
6637
|
attr_accessor :Text, :Voice, :SdkAppId, :AudioFormat, :APIKey, :Model, :Language
|
|
6627
6638
|
extend Gem::Deprecate
|
|
6628
|
-
deprecate :APIKey, :none,
|
|
6629
|
-
deprecate :APIKey=, :none,
|
|
6639
|
+
deprecate :APIKey, :none, 2026, 1
|
|
6640
|
+
deprecate :APIKey=, :none, 2026, 1
|
|
6630
6641
|
|
|
6631
6642
|
def initialize(text=nil, voice=nil, sdkappid=nil, audioformat=nil, apikey=nil, model=nil, language=nil)
|
|
6632
6643
|
@Text = text
|
|
@@ -6694,8 +6705,8 @@ module TencentCloud
|
|
|
6694
6705
|
|
|
6695
6706
|
attr_accessor :Text, :Voice, :SdkAppId, :AudioFormat, :APIKey, :Model, :Language
|
|
6696
6707
|
extend Gem::Deprecate
|
|
6697
|
-
deprecate :APIKey, :none,
|
|
6698
|
-
deprecate :APIKey=, :none,
|
|
6708
|
+
deprecate :APIKey, :none, 2026, 1
|
|
6709
|
+
deprecate :APIKey=, :none, 2026, 1
|
|
6699
6710
|
|
|
6700
6711
|
def initialize(text=nil, voice=nil, sdkappid=nil, audioformat=nil, apikey=nil, model=nil, language=nil)
|
|
6701
6712
|
@Text = text
|
|
@@ -6787,10 +6798,10 @@ module TencentCloud
|
|
|
6787
6798
|
|
|
6788
6799
|
attr_accessor :UserId, :UserSig, :IMAdminUserId, :IMAdminUserSig, :MaxIdleTime, :TranscriptionMode, :TargetUserId, :TargetUserIdList, :VoicePrint, :TurnDetection
|
|
6789
6800
|
extend Gem::Deprecate
|
|
6790
|
-
deprecate :IMAdminUserId, :none,
|
|
6791
|
-
deprecate :IMAdminUserId=, :none,
|
|
6792
|
-
deprecate :IMAdminUserSig, :none,
|
|
6793
|
-
deprecate :IMAdminUserSig=, :none,
|
|
6801
|
+
deprecate :IMAdminUserId, :none, 2026, 1
|
|
6802
|
+
deprecate :IMAdminUserId=, :none, 2026, 1
|
|
6803
|
+
deprecate :IMAdminUserSig, :none, 2026, 1
|
|
6804
|
+
deprecate :IMAdminUserSig=, :none, 2026, 1
|
|
6794
6805
|
|
|
6795
6806
|
def initialize(userid=nil, usersig=nil, imadminuserid=nil, imadminusersig=nil, maxidletime=nil, transcriptionmode=nil, targetuserid=nil, targetuseridlist=nil, voiceprint=nil, turndetection=nil)
|
|
6796
6807
|
@UserId = userid
|
|
@@ -7082,15 +7093,21 @@ module TencentCloud
|
|
|
7082
7093
|
# @type Volume: Integer
|
|
7083
7094
|
# @param IsPause: 是否暂停,默认false表示不暂停。暂停期间任务仍在进行中仍会计费,暂停超过12小时会自动销毁任务, 建议主动调用停止任务接口。
|
|
7084
7095
|
# @type IsPause: Boolean
|
|
7096
|
+
# @param EnableProgress: 是否开启播放进度回调, 默认false,当开启后,播放进度会通过trtc custom data 回调给播放端
|
|
7097
|
+
# @type EnableProgress: Boolean
|
|
7098
|
+
# @param Tempo: 播放倍速,默认1.0,可取[0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0]
|
|
7099
|
+
# @type Tempo: Float
|
|
7085
7100
|
|
|
7086
|
-
attr_accessor :SdkAppId, :TaskId, :StreamUrl, :Volume, :IsPause
|
|
7101
|
+
attr_accessor :SdkAppId, :TaskId, :StreamUrl, :Volume, :IsPause, :EnableProgress, :Tempo
|
|
7087
7102
|
|
|
7088
|
-
def initialize(sdkappid=nil, taskid=nil, streamurl=nil, volume=nil, ispause=nil)
|
|
7103
|
+
def initialize(sdkappid=nil, taskid=nil, streamurl=nil, volume=nil, ispause=nil, enableprogress=nil, tempo=nil)
|
|
7089
7104
|
@SdkAppId = sdkappid
|
|
7090
7105
|
@TaskId = taskid
|
|
7091
7106
|
@StreamUrl = streamurl
|
|
7092
7107
|
@Volume = volume
|
|
7093
7108
|
@IsPause = ispause
|
|
7109
|
+
@EnableProgress = enableprogress
|
|
7110
|
+
@Tempo = tempo
|
|
7094
7111
|
end
|
|
7095
7112
|
|
|
7096
7113
|
def deserialize(params)
|
|
@@ -7099,6 +7116,8 @@ module TencentCloud
|
|
|
7099
7116
|
@StreamUrl = params['StreamUrl']
|
|
7100
7117
|
@Volume = params['Volume']
|
|
7101
7118
|
@IsPause = params['IsPause']
|
|
7119
|
+
@EnableProgress = params['EnableProgress']
|
|
7120
|
+
@Tempo = params['Tempo']
|
|
7102
7121
|
end
|
|
7103
7122
|
end
|
|
7104
7123
|
|
|
@@ -7367,7 +7386,7 @@ module TencentCloud
|
|
|
7367
7386
|
# @type SdkAppId: Integer
|
|
7368
7387
|
# @param VoiceName: 声音克隆的名称, 只允许使用数字、字母、下划线,不能超过36位
|
|
7369
7388
|
# @type VoiceName: String
|
|
7370
|
-
# @param PromptAudio: 声音克隆的参考音频,必须为16k单声道的wav的base64字符串, 长度在
|
|
7389
|
+
# @param PromptAudio: 声音克隆的参考音频,必须为16k单声道的wav的base64字符串, 长度在10秒~180秒之间
|
|
7371
7390
|
# @type PromptAudio: String
|
|
7372
7391
|
# @param APIKey: TTS的API密钥
|
|
7373
7392
|
# @type APIKey: String
|
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.1195
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-04 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:
|