tencentcloud-sdk-tts 3.0.639 → 3.0.641

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f82126b8b6de75bfe377ec8b239c2d47d2c3720
4
- data.tar.gz: 84dfc28bf74e1f53ac8ec179c5dac2424752f0c0
3
+ metadata.gz: 6715f5017b3b59359bf9b217f72908b1fb5e2e7a
4
+ data.tar.gz: a1dc5c6c054a0741ab086025ca5d4a535f6823b2
5
5
  SHA512:
6
- metadata.gz: 76a1cba43d768b1f4a0c4b3f530b1bd2fb33203235673849afad86abc7e14024c1407c0680de1d5515a07019eadd38f031f7d7daedb54483d50a5912a978160c
7
- data.tar.gz: 8a6a9e210cb637c017ec1b22ed01417de2cf01dc0452c111c52e2f7a7f3c57c7157acbf97dadd9887aa30b7401e955ec4265e2e5c2f901ad033bc117b502ff09
6
+ metadata.gz: 3c89c71020a77eec082d78addcabcd927da4cb3983f6ac9f256a9ae61b293262b29877e45bfe747b0219cbea6d48e105236008622165876237f2f32403cd4159
7
+ data.tar.gz: c9114a908866550dd5e8ea8e91fe3b9f16ed952bad452938dcf7301abed32cdca698400e05c45033c953b3ae5b93c2c3317f9a504bcd620d565fb63b8b2a2417
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.639
1
+ 3.0.641
@@ -99,7 +99,6 @@ module TencentCloud
99
99
 
100
100
  # 腾讯云语音合成技术(TTS)可以将任意文本转化为语音,实现让机器和应用张口说话。
101
101
  # 腾讯TTS技术可以应用到很多场景,比如,移动APP语音播报新闻;智能设备语音提醒;依靠网上现有节目或少量录音,快速合成明星语音,降低邀约成本;支持车载导航语音合成的个性化语音播报。
102
- # 内测期间免费使用。
103
102
  # 基础合成支持 SSML,语法详见 [SSML 标记语言](https://cloud.tencent.com/document/product/1073/49575)。
104
103
  # 默认接口请求频率限制:20次/秒。
105
104
 
@@ -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.639
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-18 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