tencentcloud-sdk-tts 3.0.640 → 3.0.641

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 +19 -4
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b69795727ee566450b9332d93b4186ffef82dd93
4
- data.tar.gz: 18f1a9752d72ec10e5083c5f2896bf6029e33133
3
+ metadata.gz: 6715f5017b3b59359bf9b217f72908b1fb5e2e7a
4
+ data.tar.gz: a1dc5c6c054a0741ab086025ca5d4a535f6823b2
5
5
  SHA512:
6
- metadata.gz: 59d4368b289c4357d320babd66911a883af1169d80bd5896c0d82a4b6f9b56d0ac0bef251efb397264a51c947941ac456cac0a6556afc78d2d22a0bed00c7275
7
- data.tar.gz: 1fcb69f638dc3036bf807cd99f897bb4ffc2239bd11d8d7c1e8c5f0fa9977c717278915e8d4bafb1d508425dc651903eb7e09f69824e619898d559bcc767c1a5
6
+ metadata.gz: 3c89c71020a77eec082d78addcabcd927da4cb3983f6ac9f256a9ae61b293262b29877e45bfe747b0219cbea6d48e105236008622165876237f2f32403cd4159
7
+ data.tar.gz: c9114a908866550dd5e8ea8e91fe3b9f16ed952bad452938dcf7301abed32cdca698400e05c45033c953b3ae5b93c2c3317f9a504bcd620d565fb63b8b2a2417
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.640
1
+ 3.0.641
@@ -39,12 +39,14 @@ module TencentCloud
39
39
  # @type Codec: String
40
40
  # @param CallbackUrl: 回调 URL,用户自行搭建的用于接收识别结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。[回调说明](https://cloud.tencent.com/document/product/1073/55746)
41
41
  # @type CallbackUrl: String
42
+ # @param EnableSubtitle: 是否开启时间戳功能,默认为false。
43
+ # @type EnableSubtitle: Boolean
42
44
  # @param VoiceoverDialogueSplit: 旁白与对白文本解析,分别合成相应风格(仅适用于旁对白音色10510000、100510000),默认 false
43
45
  # @type VoiceoverDialogueSplit: Boolean
44
46
 
45
- attr_accessor :Text, :ModelType, :Volume, :Speed, :ProjectId, :VoiceType, :PrimaryLanguage, :SampleRate, :Codec, :CallbackUrl, :VoiceoverDialogueSplit
47
+ attr_accessor :Text, :ModelType, :Volume, :Speed, :ProjectId, :VoiceType, :PrimaryLanguage, :SampleRate, :Codec, :CallbackUrl, :EnableSubtitle, :VoiceoverDialogueSplit
46
48
 
47
- def initialize(text=nil, modeltype=nil, volume=nil, speed=nil, projectid=nil, voicetype=nil, primarylanguage=nil, samplerate=nil, codec=nil, callbackurl=nil, voiceoverdialoguesplit=nil)
49
+ def initialize(text=nil, modeltype=nil, volume=nil, speed=nil, projectid=nil, voicetype=nil, primarylanguage=nil, samplerate=nil, codec=nil, callbackurl=nil, enablesubtitle=nil, voiceoverdialoguesplit=nil)
48
50
  @Text = text
49
51
  @ModelType = modeltype
50
52
  @Volume = volume
@@ -55,6 +57,7 @@ module TencentCloud
55
57
  @SampleRate = samplerate
56
58
  @Codec = codec
57
59
  @CallbackUrl = callbackurl
60
+ @EnableSubtitle = enablesubtitle
58
61
  @VoiceoverDialogueSplit = voiceoverdialoguesplit
59
62
  end
60
63
 
@@ -69,6 +72,7 @@ module TencentCloud
69
72
  @SampleRate = params['SampleRate']
70
73
  @Codec = params['Codec']
71
74
  @CallbackUrl = params['CallbackUrl']
75
+ @EnableSubtitle = params['EnableSubtitle']
72
76
  @VoiceoverDialogueSplit = params['VoiceoverDialogueSplit']
73
77
  end
74
78
  end
@@ -138,16 +142,19 @@ module TencentCloud
138
142
  # @type StatusStr: String
139
143
  # @param ResultUrl: 合成音频COS地址(链接有效期1天)。
140
144
  # @type ResultUrl: String
145
+ # @param Subtitles: 时间戳信息,若未开启时间戳,则返回空数组。
146
+ # @type Subtitles: Array
141
147
  # @param ErrorMsg: 失败原因说明。
142
148
  # @type ErrorMsg: String
143
149
 
144
- attr_accessor :TaskId, :Status, :StatusStr, :ResultUrl, :ErrorMsg
150
+ attr_accessor :TaskId, :Status, :StatusStr, :ResultUrl, :Subtitles, :ErrorMsg
145
151
 
146
- def initialize(taskid=nil, status=nil, statusstr=nil, resulturl=nil, errormsg=nil)
152
+ def initialize(taskid=nil, status=nil, statusstr=nil, resulturl=nil, subtitles=nil, errormsg=nil)
147
153
  @TaskId = taskid
148
154
  @Status = status
149
155
  @StatusStr = statusstr
150
156
  @ResultUrl = resulturl
157
+ @Subtitles = subtitles
151
158
  @ErrorMsg = errormsg
152
159
  end
153
160
 
@@ -156,6 +163,14 @@ module TencentCloud
156
163
  @Status = params['Status']
157
164
  @StatusStr = params['StatusStr']
158
165
  @ResultUrl = params['ResultUrl']
166
+ unless params['Subtitles'].nil?
167
+ @Subtitles = []
168
+ params['Subtitles'].each do |i|
169
+ subtitle_tmp = Subtitle.new
170
+ subtitle_tmp.deserialize(i)
171
+ @Subtitles << subtitle_tmp
172
+ end
173
+ end
159
174
  @ErrorMsg = params['ErrorMsg']
160
175
  end
161
176
  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.640
4
+ version: 3.0.641
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-21 00:00:00.000000000 Z
11
+ date: 2023-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common