tencentcloud-sdk-tts 3.0.386 → 3.0.387

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20190823/models.rb +51 -4
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c593407bc90f9abf5eb943dbac19dc3df8c1aba
4
- data.tar.gz: 4a6a6a0a94a45b934bd1683aad1309d461a1076a
3
+ metadata.gz: 671c171a63aa42aa174ab5f07621a4e8f68d4aed
4
+ data.tar.gz: bf61f844bfb32883719a3578f9f49456b3317438
5
5
  SHA512:
6
- metadata.gz: a564ced980c177d4705372e00c9ea5aa937c42d0c994093a234b4077826172880ca49a525bea62e4be8305e396a72e0fbcb736aea947b846b80983fb33565130
7
- data.tar.gz: b15f4ff5fefbb65c6c5b4e374e4380addbc2e384f3ae94f197e6f986f0384b343e763fcdb3b701bf3d8cf3176a3f58e7d002e691d8d28f89076159a5ffaa8a4a
6
+ metadata.gz: d87f38de4f4f2f62ecb894e7496b37a2047a2220a4f87e7c76642d2d9c0012baf9a6d4fccb761b2d141a1740b2065c2c253c09d122c33330f6ab72c809d11ab0
7
+ data.tar.gz: e7ee2e6a394f98490aa32cefc389a3d631c2e2a699e33b8d56d301dc0a1b3955c8bfa56c018da14ade207b8cc23c25e3a9a1b97c875b8e2e9d95819ff1d6ef43
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.386
1
+ 3.0.387
@@ -183,6 +183,38 @@ module TencentCloud
183
183
  end
184
184
  end
185
185
 
186
+ # 时间戳信息。
187
+ class Subtitle < TencentCloud::Common::AbstractModel
188
+ # @param Text: ⽂本信息。
189
+ # @type Text: String
190
+ # @param BeginTime: ⽂本对应tts语⾳开始时间戳,单位ms。
191
+ # @type BeginTime: Integer
192
+ # @param EndTime: ⽂本对应tts语⾳结束时间戳,单位ms。
193
+ # @type EndTime: Integer
194
+ # @param BeginIndex: 该字在整句中的开始位置,从0开始。
195
+ # @type BeginIndex: Integer
196
+ # @param EndIndex: 该字在整句中的结束位置,从0开始。
197
+ # @type EndIndex: Integer
198
+
199
+ attr_accessor :Text, :BeginTime, :EndTime, :BeginIndex, :EndIndex
200
+
201
+ def initialize(text=nil, begintime=nil, endtime=nil, beginindex=nil, endindex=nil)
202
+ @Text = text
203
+ @BeginTime = begintime
204
+ @EndTime = endtime
205
+ @BeginIndex = beginindex
206
+ @EndIndex = endindex
207
+ end
208
+
209
+ def deserialize(params)
210
+ @Text = params['Text']
211
+ @BeginTime = params['BeginTime']
212
+ @EndTime = params['EndTime']
213
+ @BeginIndex = params['BeginIndex']
214
+ @EndIndex = params['EndIndex']
215
+ end
216
+ end
217
+
186
218
  # TextToVoice请求参数结构体
187
219
  class TextToVoiceRequest < TencentCloud::Common::AbstractModel
188
220
  # @param Text: 合成语音的源文本,按UTF-8编码统一计算。
@@ -206,10 +238,12 @@ module TencentCloud
206
238
  # @type SampleRate: Integer
207
239
  # @param Codec: 返回音频格式,可取值:wav(默认),mp3,pcm
208
240
  # @type Codec: String
241
+ # @param EnableSubtitle: 是否开启时间戳功能,默认为false。
242
+ # @type EnableSubtitle: Boolean
209
243
 
210
- attr_accessor :Text, :SessionId, :Volume, :Speed, :ProjectId, :ModelType, :VoiceType, :PrimaryLanguage, :SampleRate, :Codec
244
+ attr_accessor :Text, :SessionId, :Volume, :Speed, :ProjectId, :ModelType, :VoiceType, :PrimaryLanguage, :SampleRate, :Codec, :EnableSubtitle
211
245
 
212
- def initialize(text=nil, sessionid=nil, volume=nil, speed=nil, projectid=nil, modeltype=nil, voicetype=nil, primarylanguage=nil, samplerate=nil, codec=nil)
246
+ def initialize(text=nil, sessionid=nil, volume=nil, speed=nil, projectid=nil, modeltype=nil, voicetype=nil, primarylanguage=nil, samplerate=nil, codec=nil, enablesubtitle=nil)
213
247
  @Text = text
214
248
  @SessionId = sessionid
215
249
  @Volume = volume
@@ -220,6 +254,7 @@ module TencentCloud
220
254
  @PrimaryLanguage = primarylanguage
221
255
  @SampleRate = samplerate
222
256
  @Codec = codec
257
+ @EnableSubtitle = enablesubtitle
223
258
  end
224
259
 
225
260
  def deserialize(params)
@@ -233,6 +268,7 @@ module TencentCloud
233
268
  @PrimaryLanguage = params['PrimaryLanguage']
234
269
  @SampleRate = params['SampleRate']
235
270
  @Codec = params['Codec']
271
+ @EnableSubtitle = params['EnableSubtitle']
236
272
  end
237
273
  end
238
274
 
@@ -242,20 +278,31 @@ module TencentCloud
242
278
  # @type Audio: String
243
279
  # @param SessionId: 一次请求对应一个SessionId
244
280
  # @type SessionId: String
281
+ # @param Subtitles: 时间戳信息,若未开启时间戳,则返回空数组。
282
+ # @type Subtitles: Array
245
283
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
246
284
  # @type RequestId: String
247
285
 
248
- attr_accessor :Audio, :SessionId, :RequestId
286
+ attr_accessor :Audio, :SessionId, :Subtitles, :RequestId
249
287
 
250
- def initialize(audio=nil, sessionid=nil, requestid=nil)
288
+ def initialize(audio=nil, sessionid=nil, subtitles=nil, requestid=nil)
251
289
  @Audio = audio
252
290
  @SessionId = sessionid
291
+ @Subtitles = subtitles
253
292
  @RequestId = requestid
254
293
  end
255
294
 
256
295
  def deserialize(params)
257
296
  @Audio = params['Audio']
258
297
  @SessionId = params['SessionId']
298
+ unless params['Subtitles'].nil?
299
+ @Subtitles = []
300
+ params['Subtitles'].each do |i|
301
+ subtitle_tmp = Subtitle.new
302
+ subtitle_tmp.deserialize(i)
303
+ @Subtitles << subtitle_tmp
304
+ end
305
+ end
259
306
  @RequestId = params['RequestId']
260
307
  end
261
308
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tts
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.386
4
+ version: 3.0.387
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-12 00:00:00.000000000 Z
11
+ date: 2022-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common