tencentcloud-sdk-trtc 3.0.1189 → 3.0.1196

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20190722/models.rb +38 -34
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0905d2bb184f53d5d7df396b5bd6a35fac34692
4
- data.tar.gz: 6a0525795bee558ee4d50024406e47eab606ec2c
3
+ metadata.gz: 4a2432a9b9c3980501f9bd57efb19dcf66a26348
4
+ data.tar.gz: f609c2ad3faa8e86437df5df586ffcb9e0c14371
5
5
  SHA512:
6
- metadata.gz: 510509ae8e7db2da7bb3f9a20bf188392c683318ce23be94b567f59045c0d80ba08e967dc22222b2b395a2e56c63ca4ca02fa06caacfc1eea7a436fe6345059d
7
- data.tar.gz: b939f46f8add354ba487f2146899ca59791b775082c6a887f8c3a11a864c5d6b4d64119553ba84b9aac2ffa414f866033a965d059a37f6fa4d86335e95772e1d
6
+ metadata.gz: 17c24bb727838a6167c87f25c540ef54745ec8119df94038997171bc2d3c3f96f6c4f51e48b1b72b3fda8e1f7aa0454aa974e5599ef21018da3481cba5278ba3
7
+ data.tar.gz: 873899d5ebfef625e67a36d36799ad9bd6c95ba1b78a4af57141312154d7eb9a4b88c3295f8637c69879c92ca73953dbaa6960db6bab195c46014ef1277d13d5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1189
1
+ 3.0.1196
@@ -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
 
@@ -2048,14 +2052,17 @@ module TencentCloud
2048
2052
  # d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
2049
2053
  # h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
2050
2054
  # @type Period: String
2055
+ # @param IsFloat: 返回数据是否为小数
2056
+ # @type IsFloat: Boolean
2051
2057
 
2052
- attr_accessor :SdkAppId, :StartTime, :EndTime, :Period
2058
+ attr_accessor :SdkAppId, :StartTime, :EndTime, :Period, :IsFloat
2053
2059
 
2054
- def initialize(sdkappid=nil, starttime=nil, endtime=nil, period=nil)
2060
+ def initialize(sdkappid=nil, starttime=nil, endtime=nil, period=nil, isfloat=nil)
2055
2061
  @SdkAppId = sdkappid
2056
2062
  @StartTime = starttime
2057
2063
  @EndTime = endtime
2058
2064
  @Period = period
2065
+ @IsFloat = isfloat
2059
2066
  end
2060
2067
 
2061
2068
  def deserialize(params)
@@ -2063,6 +2070,7 @@ module TencentCloud
2063
2070
  @StartTime = params['StartTime']
2064
2071
  @EndTime = params['EndTime']
2065
2072
  @Period = params['Period']
2073
+ @IsFloat = params['IsFloat']
2066
2074
  end
2067
2075
  end
2068
2076
 
@@ -4711,17 +4719,10 @@ module TencentCloud
4711
4719
 
4712
4720
  # **基础语言引擎**:
4713
4721
  # - "zh": 中文(简体)
4714
- # - "zh-TW": 中文(繁体)
4715
- # - "en": 英语
4716
- # - "16k_zh_edu":中文教育
4717
- # - "16k_zh_medical":中文医疗
4718
- # - "16k_zh_court":中文法庭
4719
4722
 
4720
4723
  # **标准语言引擎:**
4721
4724
  # - "8k_zh_large": 普方大模型引擎. 当前模型同时支持中文等语言的识别,模型参数量极大,语言模型性能增强,针对电话音频中各类场景、各类中文方言的识别准确率极大提升.
4722
4725
  # - "16k_zh_large": 普方英大模型引擎. 当前模型同时支持中文、英文、多种中文方言等语言的识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.
4723
- # - "16k_multi_lang": 多语种大模型引擎. 当前模型同时支持英语、日语、韩语、阿拉伯语、菲律宾语、法语、印地语、印尼语、马来语、葡萄牙语、西班牙语、泰语、土耳其语、越南语、德语的识别,可实现15个语种的自动识别(句子/段落级别).
4724
- # - "16k_zh_en": 中英大模型引擎. 当前模型同时支持中文、英语识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.
4725
4726
 
4726
4727
  # **高级语言引擎:**
4727
4728
  # - "zh-dialect": 中国方言
@@ -4786,10 +4787,10 @@ module TencentCloud
4786
4787
 
4787
4788
  attr_accessor :Language, :AlternativeLanguage, :Model, :TranslationLanguage, :HotWordList, :VadSilenceTime, :VadLevel
4788
4789
  extend Gem::Deprecate
4789
- deprecate :Model, :none, 2025, 12
4790
- deprecate :Model=, :none, 2025, 12
4791
- deprecate :TranslationLanguage, :none, 2025, 12
4792
- deprecate :TranslationLanguage=, :none, 2025, 12
4790
+ deprecate :Model, :none, 2026, 1
4791
+ deprecate :Model=, :none, 2026, 1
4792
+ deprecate :TranslationLanguage, :none, 2026, 1
4793
+ deprecate :TranslationLanguage=, :none, 2026, 1
4793
4794
 
4794
4795
  def initialize(language=nil, alternativelanguage=nil, model=nil, translationlanguage=nil, hotwordlist=nil, vadsilencetime=nil, vadlevel=nil)
4795
4796
  @Language = language
@@ -5076,15 +5077,19 @@ module TencentCloud
5076
5077
  # @param RowValue: 数据值
5077
5078
  # 注意:此字段可能返回 null,表示取不到有效值。
5078
5079
  # @type RowValue: Array
5080
+ # @param RowValueFloat: 数据值
5081
+ # @type RowValueFloat: Array
5079
5082
 
5080
- attr_accessor :RowValue
5083
+ attr_accessor :RowValue, :RowValueFloat
5081
5084
 
5082
- def initialize(rowvalue=nil)
5085
+ def initialize(rowvalue=nil, rowvaluefloat=nil)
5083
5086
  @RowValue = rowvalue
5087
+ @RowValueFloat = rowvaluefloat
5084
5088
  end
5085
5089
 
5086
5090
  def deserialize(params)
5087
5091
  @RowValue = params['RowValue']
5092
+ @RowValueFloat = params['RowValueFloat']
5088
5093
  end
5089
5094
  end
5090
5095
 
@@ -5499,10 +5504,9 @@ module TencentCloud
5499
5504
  # @type RoomIdType: Integer
5500
5505
  # @param STTConfig: 语音识别配置。
5501
5506
  # @type STTConfig: :class:`Tencentcloud::Trtc.v20190722.models.STTConfig`
5502
- # @param LLMConfig: LLM配置。需符合openai规范,为JSON字符串,示例如下:
5503
- # <pre> { <br> &emsp; "LLMType": "大模型类型", // String 必填,如:"openai" <br> &emsp; "Model": "您的模型名称", // String 必填,指定使用的模型<br> "APIKey": "您的LLM API密钥", // String 必填 <br> &emsp; "APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL<br> &emsp; "History": 10, // Integer 选填,设置 LLM 的上下文轮次,默认值为0,最大值50<br> &emsp; "HistoryMode": 1, // Integer 选填,1表示LLM上下文中的内容会和播放音频做同步,没有播放的音频对应的文本不会出现在上下文中。0表示不会做同步,默认值为0<br> &emsp; "Streaming": true // Boolean 非必填,指定是否使用流式传输<br> &emsp;} </pre>
5507
+ # @param LLMConfig: 必填参数,LLM配置。需符合openai规范,为JSON字符串,示例如下:<pre> { <br> &emsp; "LLMType": "大模型类型", // String 必填,如:"openai" <br> &emsp; "Model": "您的模型名称", // String 必填,指定使用的模型<br> "APIKey": "您的LLM API密钥", // String 必填 <br> &emsp; "APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL<br> &emsp; "History": 10, // Integer 选填,设置 LLM 的上下文轮次,默认值为0,最大值50<br> &emsp; "HistoryMode": 1, // Integer 选填,1表示LLM上下文中的内容会和播放音频做同步,没有播放的音频对应的文本不会出现在上下文中。0表示不会做同步,默认值为0<br> &emsp; "Streaming": true // Boolean 非必填,指定是否使用流式传输<br> &emsp;} </pre>
5504
5508
  # @type LLMConfig: String
5505
- # @param TTSConfig: TTS配置,为JSON字符串,腾讯云TTS示例如下: <pre>{ <br> &emsp; "AppId": 您的应用ID, // Integer 必填<br> &emsp; "TTSType": "TTS类型", // String TTS类型, 固定为"tencent"<br> &emsp; "SecretId": "您的密钥ID", // String 必填<br> &emsp; "SecretKey": "您的密钥Key", // String 必填<br> &emsp; "VoiceType": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见<a href="https://cloud.tencent.com/document/product/1073/34112">语音合成计费概述</a>。完整的音色 ID 列表请参见<a href="https://cloud.tencent.com/document/product/1073/92668#55924b56-1a73-4663-a7a1-a8dd82d6e823">语音合成音色列表</a>。<br> &emsp; "Speed": 1.25, // Integer 非必填,语速,范围:[-2,6],分别对应不同语速: -2: 代表0.6倍 -1: 代表0.8倍 0: 代表1.0倍(默认) 1: 代表1.2倍 2: 代表1.5倍 6: 代表2.5倍 如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。 参数值与实际语速转换,可参考 <a href="https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz">语速转换</a><br> &emsp; "Volume": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。<br> &emsp; "EmotionCategory": "angry", // String 非必填 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)。<br> &emsp; "EmotionIntensity": 150 // Integer 非必填 控制合成音频情感程度,取值范围为 [50,200],默认为 100;只有 EmotionCategory 不为空时生效。<br> &emsp; }</pre>
5509
+ # @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
5510
  # @type TTSConfig: String
5507
5511
  # @param AvatarConfig: 数字人配置,为JSON字符串。**数字人配置需要提工单加白后才能使用**
5508
5512
  # @type AvatarConfig: String
@@ -5920,12 +5924,12 @@ module TencentCloud
5920
5924
 
5921
5925
  attr_accessor :SdkAppId, :RoomId, :RoomIdType, :UserId, :UserSig, :StreamUrl, :PrivateMapKey, :VideoEncodeParams, :AudioEncodeParams, :SourceUrl, :SeekSecond, :AutoPush, :RepeatNum, :MaxDuration, :Volume, :EnableProgress, :Tempo
5922
5926
  extend Gem::Deprecate
5923
- deprecate :VideoEncodeParams, :none, 2025, 12
5924
- deprecate :VideoEncodeParams=, :none, 2025, 12
5925
- deprecate :AudioEncodeParams, :none, 2025, 12
5926
- deprecate :AudioEncodeParams=, :none, 2025, 12
5927
- deprecate :SourceUrl, :none, 2025, 12
5928
- deprecate :SourceUrl=, :none, 2025, 12
5927
+ deprecate :VideoEncodeParams, :none, 2026, 1
5928
+ deprecate :VideoEncodeParams=, :none, 2026, 1
5929
+ deprecate :AudioEncodeParams, :none, 2026, 1
5930
+ deprecate :AudioEncodeParams=, :none, 2026, 1
5931
+ deprecate :SourceUrl, :none, 2026, 1
5932
+ deprecate :SourceUrl=, :none, 2026, 1
5929
5933
 
5930
5934
  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)
5931
5935
  @SdkAppId = sdkappid
@@ -6633,8 +6637,8 @@ module TencentCloud
6633
6637
 
6634
6638
  attr_accessor :Text, :Voice, :SdkAppId, :AudioFormat, :APIKey, :Model, :Language
6635
6639
  extend Gem::Deprecate
6636
- deprecate :APIKey, :none, 2025, 12
6637
- deprecate :APIKey=, :none, 2025, 12
6640
+ deprecate :APIKey, :none, 2026, 1
6641
+ deprecate :APIKey=, :none, 2026, 1
6638
6642
 
6639
6643
  def initialize(text=nil, voice=nil, sdkappid=nil, audioformat=nil, apikey=nil, model=nil, language=nil)
6640
6644
  @Text = text
@@ -6702,8 +6706,8 @@ module TencentCloud
6702
6706
 
6703
6707
  attr_accessor :Text, :Voice, :SdkAppId, :AudioFormat, :APIKey, :Model, :Language
6704
6708
  extend Gem::Deprecate
6705
- deprecate :APIKey, :none, 2025, 12
6706
- deprecate :APIKey=, :none, 2025, 12
6709
+ deprecate :APIKey, :none, 2026, 1
6710
+ deprecate :APIKey=, :none, 2026, 1
6707
6711
 
6708
6712
  def initialize(text=nil, voice=nil, sdkappid=nil, audioformat=nil, apikey=nil, model=nil, language=nil)
6709
6713
  @Text = text
@@ -6795,10 +6799,10 @@ module TencentCloud
6795
6799
 
6796
6800
  attr_accessor :UserId, :UserSig, :IMAdminUserId, :IMAdminUserSig, :MaxIdleTime, :TranscriptionMode, :TargetUserId, :TargetUserIdList, :VoicePrint, :TurnDetection
6797
6801
  extend Gem::Deprecate
6798
- deprecate :IMAdminUserId, :none, 2025, 12
6799
- deprecate :IMAdminUserId=, :none, 2025, 12
6800
- deprecate :IMAdminUserSig, :none, 2025, 12
6801
- deprecate :IMAdminUserSig=, :none, 2025, 12
6802
+ deprecate :IMAdminUserId, :none, 2026, 1
6803
+ deprecate :IMAdminUserId=, :none, 2026, 1
6804
+ deprecate :IMAdminUserSig, :none, 2026, 1
6805
+ deprecate :IMAdminUserSig=, :none, 2026, 1
6802
6806
 
6803
6807
  def initialize(userid=nil, usersig=nil, imadminuserid=nil, imadminusersig=nil, maxidletime=nil, transcriptionmode=nil, targetuserid=nil, targetuseridlist=nil, voiceprint=nil, turndetection=nil)
6804
6808
  @UserId = userid
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.1189
4
+ version: 3.0.1196
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-12-24 00:00:00.000000000 Z
11
+ date: 2026-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common