tencentcloud-sdk-tsi 3.0.929 → 3.0.931
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210325/models.rb +70 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 732d08a6c63600bb9bd26f4b81df530abe56e388
|
4
|
+
data.tar.gz: 774f79223dc36d0729de931f7029d26af069f779
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88db7fd4546906308dc4da75d21acd025d80845bf80f06209551dd3013cd572483f834c45387ecefc17259093bec2cbb75345e4f4916dd726c56ca9742f2341b
|
7
|
+
data.tar.gz: 5e60f4b499f34abab6985079cd360a8599c98a57b3f6511159ff8e878ba2dd845cb9867b4b84ac55920281cf26801eae90421e57ddf3a6801d535909ac900215
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.931
|
data/lib/v20210325/models.rb
CHANGED
@@ -33,10 +33,12 @@ module TencentCloud
|
|
33
33
|
# @type EndTime: Integer
|
34
34
|
# @param IsEnd: 当前句子是否已结束
|
35
35
|
# @type IsEnd: Boolean
|
36
|
+
# @param Audio: base64编码的wav/mp3音频数据
|
37
|
+
# @type Audio: String
|
36
38
|
|
37
|
-
attr_accessor :SeId, :SeVer, :SourceText, :TargetText, :StartTime, :EndTime, :IsEnd
|
39
|
+
attr_accessor :SeId, :SeVer, :SourceText, :TargetText, :StartTime, :EndTime, :IsEnd, :Audio
|
38
40
|
|
39
|
-
def initialize(seid=nil, sever=nil, sourcetext=nil, targettext=nil, starttime=nil, endtime=nil, isend=nil)
|
41
|
+
def initialize(seid=nil, sever=nil, sourcetext=nil, targettext=nil, starttime=nil, endtime=nil, isend=nil, audio=nil)
|
40
42
|
@SeId = seid
|
41
43
|
@SeVer = sever
|
42
44
|
@SourceText = sourcetext
|
@@ -44,6 +46,7 @@ module TencentCloud
|
|
44
46
|
@StartTime = starttime
|
45
47
|
@EndTime = endtime
|
46
48
|
@IsEnd = isend
|
49
|
+
@Audio = audio
|
47
50
|
end
|
48
51
|
|
49
52
|
def deserialize(params)
|
@@ -54,6 +57,53 @@ module TencentCloud
|
|
54
57
|
@StartTime = params['StartTime']
|
55
58
|
@EndTime = params['EndTime']
|
56
59
|
@IsEnd = params['IsEnd']
|
60
|
+
@Audio = params['Audio']
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# 同传TTS请求参数
|
65
|
+
class TTS < TencentCloud::Common::AbstractModel
|
66
|
+
# @param Codec: 返回音频格式,可取值:wav,mp3,pcm
|
67
|
+
# @type Codec: String
|
68
|
+
# @param VoiceType: 音色 ID,只包括标准音色(注,日文只有一个固定音色)。
|
69
|
+
# 完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。
|
70
|
+
# @type VoiceType: Integer
|
71
|
+
# @param Volume: 音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。
|
72
|
+
# @type Volume: Float
|
73
|
+
# @param Speed: 语速,范围:[-2,6],分别对应不同语速:
|
74
|
+
|
75
|
+
# - -2代表0.6倍
|
76
|
+
# - -1代表0.8倍
|
77
|
+
# - 0代表1.0倍(默认)
|
78
|
+
# - 1代表1.2倍
|
79
|
+
# - 2代表1.5倍
|
80
|
+
# - 6代表2.5倍
|
81
|
+
|
82
|
+
# 如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。
|
83
|
+
# 参数值与实际语速转换,可参考[代码示例](https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz)
|
84
|
+
# @type Speed: Float
|
85
|
+
# @param SampleRate: 音频采样率:
|
86
|
+
|
87
|
+
# - 16000:16k(默认)
|
88
|
+
# - 8000:8k
|
89
|
+
# @type SampleRate: Integer
|
90
|
+
|
91
|
+
attr_accessor :Codec, :VoiceType, :Volume, :Speed, :SampleRate
|
92
|
+
|
93
|
+
def initialize(codec=nil, voicetype=nil, volume=nil, speed=nil, samplerate=nil)
|
94
|
+
@Codec = codec
|
95
|
+
@VoiceType = voicetype
|
96
|
+
@Volume = volume
|
97
|
+
@Speed = speed
|
98
|
+
@SampleRate = samplerate
|
99
|
+
end
|
100
|
+
|
101
|
+
def deserialize(params)
|
102
|
+
@Codec = params['Codec']
|
103
|
+
@VoiceType = params['VoiceType']
|
104
|
+
@Volume = params['Volume']
|
105
|
+
@Speed = params['Speed']
|
106
|
+
@SampleRate = params['SampleRate']
|
57
107
|
end
|
58
108
|
end
|
59
109
|
|
@@ -138,10 +188,12 @@ module TencentCloud
|
|
138
188
|
# @type TranslateTime: Integer
|
139
189
|
# @param Data: 语音分片内容进行 Base64 编码后的字符串。音频内容需包含有效并可识别的文本信息。
|
140
190
|
# @type Data: String
|
191
|
+
# @param TTS: TTS播报控制参数
|
192
|
+
# @type TTS: :class:`Tencentcloud::Tsi.v20210325.models.TTS`
|
141
193
|
|
142
|
-
attr_accessor :SessionUuid, :Source, :Target, :AudioFormat, :Seq, :Utc, :IsEnd, :TranslateTime, :Data
|
194
|
+
attr_accessor :SessionUuid, :Source, :Target, :AudioFormat, :Seq, :Utc, :IsEnd, :TranslateTime, :Data, :TTS
|
143
195
|
|
144
|
-
def initialize(sessionuuid=nil, source=nil, target=nil, audioformat=nil, seq=nil, utc=nil, isend=nil, translatetime=nil, data=nil)
|
196
|
+
def initialize(sessionuuid=nil, source=nil, target=nil, audioformat=nil, seq=nil, utc=nil, isend=nil, translatetime=nil, data=nil, tts=nil)
|
145
197
|
@SessionUuid = sessionuuid
|
146
198
|
@Source = source
|
147
199
|
@Target = target
|
@@ -151,6 +203,7 @@ module TencentCloud
|
|
151
203
|
@IsEnd = isend
|
152
204
|
@TranslateTime = translatetime
|
153
205
|
@Data = data
|
206
|
+
@TTS = tts
|
154
207
|
end
|
155
208
|
|
156
209
|
def deserialize(params)
|
@@ -163,6 +216,10 @@ module TencentCloud
|
|
163
216
|
@IsEnd = params['IsEnd']
|
164
217
|
@TranslateTime = params['TranslateTime']
|
165
218
|
@Data = params['Data']
|
219
|
+
unless params['TTS'].nil?
|
220
|
+
@TTS = TTS.new
|
221
|
+
@TTS.deserialize(params['TTS'])
|
222
|
+
end
|
166
223
|
end
|
167
224
|
end
|
168
225
|
|
@@ -212,10 +269,12 @@ module TencentCloud
|
|
212
269
|
# @type TranslateTime: Integer
|
213
270
|
# @param Data: 语音分片内容进行 Base64 编码后的字符串。音频内容需包含有效并可识别的文本信息。
|
214
271
|
# @type Data: String
|
272
|
+
# @param TTS: TTS播报控制参数
|
273
|
+
# @type TTS: :class:`Tencentcloud::Tsi.v20210325.models.TTS`
|
215
274
|
|
216
|
-
attr_accessor :SessionUuid, :Source, :Target, :AudioFormat, :Seq, :Utc, :IsEnd, :TranslateTime, :Data
|
275
|
+
attr_accessor :SessionUuid, :Source, :Target, :AudioFormat, :Seq, :Utc, :IsEnd, :TranslateTime, :Data, :TTS
|
217
276
|
|
218
|
-
def initialize(sessionuuid=nil, source=nil, target=nil, audioformat=nil, seq=nil, utc=nil, isend=nil, translatetime=nil, data=nil)
|
277
|
+
def initialize(sessionuuid=nil, source=nil, target=nil, audioformat=nil, seq=nil, utc=nil, isend=nil, translatetime=nil, data=nil, tts=nil)
|
219
278
|
@SessionUuid = sessionuuid
|
220
279
|
@Source = source
|
221
280
|
@Target = target
|
@@ -225,6 +284,7 @@ module TencentCloud
|
|
225
284
|
@IsEnd = isend
|
226
285
|
@TranslateTime = translatetime
|
227
286
|
@Data = data
|
287
|
+
@TTS = tts
|
228
288
|
end
|
229
289
|
|
230
290
|
def deserialize(params)
|
@@ -237,6 +297,10 @@ module TencentCloud
|
|
237
297
|
@IsEnd = params['IsEnd']
|
238
298
|
@TranslateTime = params['TranslateTime']
|
239
299
|
@Data = params['Data']
|
300
|
+
unless params['TTS'].nil?
|
301
|
+
@TTS = TTS.new
|
302
|
+
@TTS.deserialize(params['TTS'])
|
303
|
+
end
|
240
304
|
end
|
241
305
|
end
|
242
306
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tsi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.931
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|