tencentcloud-sdk-trtc 3.0.1160 → 3.0.1169
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 +82 -27
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f4e8118206e4c9f25aedab1a06ca3b09be3d8564
|
|
4
|
+
data.tar.gz: a30203bd6bb719be4517f806e38c3463ea46e9d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b09cf3ce6955d720c91aaeba2bef2e099f379c2f62d382ae24bb1302673b38a3e23862b52c23e5f7416a79ef10598046cd633f342b124bbc6c561e879834217
|
|
7
|
+
data.tar.gz: 90bae9108b34f174a9e429776108de16d60755462d49e096249041e38c01f4a65fe8c6f02bfa29a3e92534c39b4248dac19d0046a47bda084bc7c5c52762367a
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1169
|
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
|
|
@@ -6493,15 +6497,27 @@ 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
|
|
6502
|
+
# @param Speed: 语速,范围 0.5-2.0,默认 1.0
|
|
6503
|
+
# @type Speed: Float
|
|
6504
|
+
# @param Volume: (0, 10] 默认值1.0
|
|
6505
|
+
# @type Volume: Float
|
|
6496
6506
|
|
|
6497
|
-
attr_accessor :VoiceId
|
|
6507
|
+
attr_accessor :VoiceId, :Model, :Speed, :Volume
|
|
6498
6508
|
|
|
6499
|
-
def initialize(voiceid=nil)
|
|
6509
|
+
def initialize(voiceid=nil, model=nil, speed=nil, volume=nil)
|
|
6500
6510
|
@VoiceId = voiceid
|
|
6511
|
+
@Model = model
|
|
6512
|
+
@Speed = speed
|
|
6513
|
+
@Volume = volume
|
|
6501
6514
|
end
|
|
6502
6515
|
|
|
6503
6516
|
def deserialize(params)
|
|
6504
6517
|
@VoiceId = params['VoiceId']
|
|
6518
|
+
@Model = params['Model']
|
|
6519
|
+
@Speed = params['Speed']
|
|
6520
|
+
@Volume = params['Volume']
|
|
6505
6521
|
end
|
|
6506
6522
|
end
|
|
6507
6523
|
|
|
@@ -6587,15 +6603,24 @@ module TencentCloud
|
|
|
6587
6603
|
# @type AudioFormat: :class:`Tencentcloud::Trtc.v20190722.models.AudioFormat`
|
|
6588
6604
|
# @param APIKey: TTS的API密钥
|
|
6589
6605
|
# @type APIKey: String
|
|
6606
|
+
# @param Model: TTS的模型:flow_01_turbo,flow_01_ex
|
|
6607
|
+
# @type Model: String
|
|
6608
|
+
# @param Language: 语言参数,默认为空, 参考: (ISO 639-1)
|
|
6609
|
+
# @type Language: String
|
|
6590
6610
|
|
|
6591
|
-
attr_accessor :Text, :Voice, :SdkAppId, :AudioFormat, :APIKey
|
|
6611
|
+
attr_accessor :Text, :Voice, :SdkAppId, :AudioFormat, :APIKey, :Model, :Language
|
|
6612
|
+
extend Gem::Deprecate
|
|
6613
|
+
deprecate :APIKey, :none, 2025, 11
|
|
6614
|
+
deprecate :APIKey=, :none, 2025, 11
|
|
6592
6615
|
|
|
6593
|
-
def initialize(text=nil, voice=nil, sdkappid=nil, audioformat=nil, apikey=nil)
|
|
6616
|
+
def initialize(text=nil, voice=nil, sdkappid=nil, audioformat=nil, apikey=nil, model=nil, language=nil)
|
|
6594
6617
|
@Text = text
|
|
6595
6618
|
@Voice = voice
|
|
6596
6619
|
@SdkAppId = sdkappid
|
|
6597
6620
|
@AudioFormat = audioformat
|
|
6598
6621
|
@APIKey = apikey
|
|
6622
|
+
@Model = model
|
|
6623
|
+
@Language = language
|
|
6599
6624
|
end
|
|
6600
6625
|
|
|
6601
6626
|
def deserialize(params)
|
|
@@ -6610,6 +6635,8 @@ module TencentCloud
|
|
|
6610
6635
|
@AudioFormat.deserialize(params['AudioFormat'])
|
|
6611
6636
|
end
|
|
6612
6637
|
@APIKey = params['APIKey']
|
|
6638
|
+
@Model = params['Model']
|
|
6639
|
+
@Language = params['Language']
|
|
6613
6640
|
end
|
|
6614
6641
|
end
|
|
6615
6642
|
|
|
@@ -6645,15 +6672,21 @@ module TencentCloud
|
|
|
6645
6672
|
# @type AudioFormat: :class:`Tencentcloud::Trtc.v20190722.models.AudioFormat`
|
|
6646
6673
|
# @param APIKey: TTS的API密钥
|
|
6647
6674
|
# @type APIKey: String
|
|
6675
|
+
# @param Model: TTS的模型:flow_01_turbo,flow_01_ex
|
|
6676
|
+
# @type Model: String
|
|
6677
|
+
# @param Language: 语言参数,默认为空, 参考: (ISO 639-1)
|
|
6678
|
+
# @type Language: String
|
|
6648
6679
|
|
|
6649
|
-
attr_accessor :Text, :Voice, :SdkAppId, :AudioFormat, :APIKey
|
|
6680
|
+
attr_accessor :Text, :Voice, :SdkAppId, :AudioFormat, :APIKey, :Model, :Language
|
|
6650
6681
|
|
|
6651
|
-
def initialize(text=nil, voice=nil, sdkappid=nil, audioformat=nil, apikey=nil)
|
|
6682
|
+
def initialize(text=nil, voice=nil, sdkappid=nil, audioformat=nil, apikey=nil, model=nil, language=nil)
|
|
6652
6683
|
@Text = text
|
|
6653
6684
|
@Voice = voice
|
|
6654
6685
|
@SdkAppId = sdkappid
|
|
6655
6686
|
@AudioFormat = audioformat
|
|
6656
6687
|
@APIKey = apikey
|
|
6688
|
+
@Model = model
|
|
6689
|
+
@Language = language
|
|
6657
6690
|
end
|
|
6658
6691
|
|
|
6659
6692
|
def deserialize(params)
|
|
@@ -6668,6 +6701,8 @@ module TencentCloud
|
|
|
6668
6701
|
@AudioFormat.deserialize(params['AudioFormat'])
|
|
6669
6702
|
end
|
|
6670
6703
|
@APIKey = params['APIKey']
|
|
6704
|
+
@Model = params['Model']
|
|
6705
|
+
@Language = params['Language']
|
|
6671
6706
|
end
|
|
6672
6707
|
end
|
|
6673
6708
|
|
|
@@ -6734,10 +6769,10 @@ module TencentCloud
|
|
|
6734
6769
|
|
|
6735
6770
|
attr_accessor :UserId, :UserSig, :IMAdminUserId, :IMAdminUserSig, :MaxIdleTime, :TranscriptionMode, :TargetUserId, :TargetUserIdList, :VoicePrint, :TurnDetection
|
|
6736
6771
|
extend Gem::Deprecate
|
|
6737
|
-
deprecate :IMAdminUserId, :none, 2025,
|
|
6738
|
-
deprecate :IMAdminUserId=, :none, 2025,
|
|
6739
|
-
deprecate :IMAdminUserSig, :none, 2025,
|
|
6740
|
-
deprecate :IMAdminUserSig=, :none, 2025,
|
|
6772
|
+
deprecate :IMAdminUserId, :none, 2025, 11
|
|
6773
|
+
deprecate :IMAdminUserId=, :none, 2025, 11
|
|
6774
|
+
deprecate :IMAdminUserSig, :none, 2025, 11
|
|
6775
|
+
deprecate :IMAdminUserSig=, :none, 2025, 11
|
|
6741
6776
|
|
|
6742
6777
|
def initialize(userid=nil, usersig=nil, imadminuserid=nil, imadminusersig=nil, maxidletime=nil, transcriptionmode=nil, targetuserid=nil, targetuseridlist=nil, voiceprint=nil, turndetection=nil)
|
|
6743
6778
|
@UserId = userid
|
|
@@ -7284,15 +7319,27 @@ module TencentCloud
|
|
|
7284
7319
|
class Voice < TencentCloud::Common::AbstractModel
|
|
7285
7320
|
# @param VoiceId: TTS的声音的ID
|
|
7286
7321
|
# @type VoiceId: String
|
|
7322
|
+
# @param Speed: 语速,范围 0.5-2.0,默认 1.0
|
|
7323
|
+
# @type Speed: Float
|
|
7324
|
+
# @param Volume: (0, 10] 默认值1.0
|
|
7325
|
+
# @type Volume: Float
|
|
7326
|
+
# @param Pitch: 取值[-12,12],默认0
|
|
7327
|
+
# @type Pitch: Integer
|
|
7287
7328
|
|
|
7288
|
-
attr_accessor :VoiceId
|
|
7329
|
+
attr_accessor :VoiceId, :Speed, :Volume, :Pitch
|
|
7289
7330
|
|
|
7290
|
-
def initialize(voiceid=nil)
|
|
7331
|
+
def initialize(voiceid=nil, speed=nil, volume=nil, pitch=nil)
|
|
7291
7332
|
@VoiceId = voiceid
|
|
7333
|
+
@Speed = speed
|
|
7334
|
+
@Volume = volume
|
|
7335
|
+
@Pitch = pitch
|
|
7292
7336
|
end
|
|
7293
7337
|
|
|
7294
7338
|
def deserialize(params)
|
|
7295
7339
|
@VoiceId = params['VoiceId']
|
|
7340
|
+
@Speed = params['Speed']
|
|
7341
|
+
@Volume = params['Volume']
|
|
7342
|
+
@Pitch = params['Pitch']
|
|
7296
7343
|
end
|
|
7297
7344
|
end
|
|
7298
7345
|
|
|
@@ -7308,15 +7355,21 @@ module TencentCloud
|
|
|
7308
7355
|
# @type APIKey: String
|
|
7309
7356
|
# @param PromptText: 声音克隆的参考文本,为参考音频对应的文字。
|
|
7310
7357
|
# @type PromptText: String
|
|
7358
|
+
# @param Model: TTS的模型:flow_01_turbo,flow_01_ex
|
|
7359
|
+
# @type Model: String
|
|
7360
|
+
# @param Language: 语言参数,默认为空, 参考: (ISO 639-1)
|
|
7361
|
+
# @type Language: String
|
|
7311
7362
|
|
|
7312
|
-
attr_accessor :SdkAppId, :VoiceName, :PromptAudio, :APIKey, :PromptText
|
|
7363
|
+
attr_accessor :SdkAppId, :VoiceName, :PromptAudio, :APIKey, :PromptText, :Model, :Language
|
|
7313
7364
|
|
|
7314
|
-
def initialize(sdkappid=nil, voicename=nil, promptaudio=nil, apikey=nil, prompttext=nil)
|
|
7365
|
+
def initialize(sdkappid=nil, voicename=nil, promptaudio=nil, apikey=nil, prompttext=nil, model=nil, language=nil)
|
|
7315
7366
|
@SdkAppId = sdkappid
|
|
7316
7367
|
@VoiceName = voicename
|
|
7317
7368
|
@PromptAudio = promptaudio
|
|
7318
7369
|
@APIKey = apikey
|
|
7319
7370
|
@PromptText = prompttext
|
|
7371
|
+
@Model = model
|
|
7372
|
+
@Language = language
|
|
7320
7373
|
end
|
|
7321
7374
|
|
|
7322
7375
|
def deserialize(params)
|
|
@@ -7325,6 +7378,8 @@ module TencentCloud
|
|
|
7325
7378
|
@PromptAudio = params['PromptAudio']
|
|
7326
7379
|
@APIKey = params['APIKey']
|
|
7327
7380
|
@PromptText = params['PromptText']
|
|
7381
|
+
@Model = params['Model']
|
|
7382
|
+
@Language = params['Language']
|
|
7328
7383
|
end
|
|
7329
7384
|
end
|
|
7330
7385
|
|
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.1169
|
|
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-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|
|
@@ -33,8 +33,8 @@ executables: []
|
|
|
33
33
|
extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
|
-
- lib/v20190722/models.rb
|
|
37
36
|
- lib/v20190722/client.rb
|
|
37
|
+
- lib/v20190722/models.rb
|
|
38
38
|
- lib/tencentcloud-sdk-trtc.rb
|
|
39
39
|
- lib/VERSION
|
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|