tencentcloud-sdk-tts 3.0.640 → 3.0.642
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/v20190823/models.rb +19 -4
- 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: 4db47c339f981e1d985e47b5f57ca7044c07855a
|
4
|
+
data.tar.gz: f4480b0df6f268f01ec012bb2793a9f0f9511cfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca651e980bc7d7c7f7c1d7dd3d3dff0c9a2522ca5c2bb4eacce7f744e172f583557feac410f86355ee36c24cbcf22c214753d8e69a637dc727f1a429d963f98c
|
7
|
+
data.tar.gz: afd3cb244ff5fbfe077123a5932d0faaf0c943cbeb7255f156264bde5a3f3d370b8d0057ea07eb26f22bc52d46129ada11677b9b4767d536c376dc3cd48ee458
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.642
|
data/lib/v20190823/models.rb
CHANGED
@@ -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.
|
4
|
+
version: 3.0.642
|
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-
|
11
|
+
date: 2023-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -34,8 +34,8 @@ extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
36
|
- lib/tencentcloud-sdk-tts.rb
|
37
|
-
- lib/v20190823/models.rb
|
38
37
|
- lib/v20190823/client.rb
|
38
|
+
- lib/v20190823/models.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|