tencentcloud-sdk-python-trtc 3.1.13__tar.gz → 3.1.28__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of tencentcloud-sdk-python-trtc might be problematic. Click here for more details.

Files changed (17) hide show
  1. {tencentcloud_sdk_python_trtc-3.1.13 → tencentcloud_sdk_python_trtc-3.1.28}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_trtc-3.1.13 → tencentcloud_sdk_python_trtc-3.1.28}/setup.py +1 -1
  3. {tencentcloud_sdk_python_trtc-3.1.13 → tencentcloud_sdk_python_trtc-3.1.28}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_trtc-3.1.13 → tencentcloud_sdk_python_trtc-3.1.28}/tencentcloud/trtc/v20190722/errorcodes.py +3 -0
  5. {tencentcloud_sdk_python_trtc-3.1.13 → tencentcloud_sdk_python_trtc-3.1.28}/tencentcloud/trtc/v20190722/models.py +143 -30
  6. {tencentcloud_sdk_python_trtc-3.1.13 → tencentcloud_sdk_python_trtc-3.1.28}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +2 -2
  7. tencentcloud_sdk_python_trtc-3.1.28/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
  8. tencentcloud_sdk_python_trtc-3.1.13/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
  9. {tencentcloud_sdk_python_trtc-3.1.13 → tencentcloud_sdk_python_trtc-3.1.28}/README.rst +0 -0
  10. {tencentcloud_sdk_python_trtc-3.1.13 → tencentcloud_sdk_python_trtc-3.1.28}/setup.cfg +0 -0
  11. {tencentcloud_sdk_python_trtc-3.1.13 → tencentcloud_sdk_python_trtc-3.1.28}/tencentcloud/trtc/__init__.py +0 -0
  12. {tencentcloud_sdk_python_trtc-3.1.13 → tencentcloud_sdk_python_trtc-3.1.28}/tencentcloud/trtc/v20190722/__init__.py +0 -0
  13. {tencentcloud_sdk_python_trtc-3.1.13 → tencentcloud_sdk_python_trtc-3.1.28}/tencentcloud/trtc/v20190722/trtc_client.py +0 -0
  14. {tencentcloud_sdk_python_trtc-3.1.13 → tencentcloud_sdk_python_trtc-3.1.28}/tencentcloud/trtc/v20190722/trtc_client_async.py +0 -0
  15. {tencentcloud_sdk_python_trtc-3.1.13 → tencentcloud_sdk_python_trtc-3.1.28}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_trtc-3.1.13 → tencentcloud_sdk_python_trtc-3.1.28}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_trtc-3.1.13 → tencentcloud_sdk_python_trtc-3.1.28}/tencentcloud_sdk_python_trtc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.1.13
3
+ Version: 3.1.28
4
4
  Summary: Tencent Cloud Trtc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.13
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.28
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-trtc',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.13,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.28,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Trtc SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.13'
17
+ __version__ = '3.1.28'
@@ -416,6 +416,9 @@ RESOURCEINSUFFICIENT_REQUESTREJECTION = 'ResourceInsufficient.RequestRejection'
416
416
  # 资源不存在。
417
417
  RESOURCENOTFOUND = 'ResourceNotFound'
418
418
 
419
+ # 资源不存在。
420
+ RESOURCENOTFOUND_RESOURCENOTFOUND = 'ResourceNotFound.ResourceNotFound'
421
+
419
422
  # 没有操作SdkAppId的权限。
420
423
  UNAUTHORIZEDOPERATION_SDKAPPID = 'UnauthorizedOperation.SdkAppId'
421
424
 
@@ -751,34 +751,37 @@ class AudioFormat(AbstractModel):
751
751
  r"""
752
752
  :param _Format: 生成的音频格式
753
753
 
754
- - TextToSpeech流式接口
754
+ - TextToSpeechSSE 流式接口
755
755
 
756
756
  支持 pcm, 默认: pcm
757
757
 
758
- - TextToSpeech非流式接口
758
+ - TextToSpeech 非流式接口
759
759
 
760
- 支持 pcm,wav, 默认: pcm
760
+ 支持 pcm,wav,mp3, 默认: pcm
761
761
  :type Format: str
762
762
  :param _SampleRate: 生成的音频采样率,默认24000
763
763
  可选
764
764
  - 16000
765
765
  - 24000
766
766
  :type SampleRate: int
767
+ :param _Bitrate: MP3 比特率 (kbps),仅对 MP3 格式生效, 可以选: `64`, `128`, `192`, `256` , 默认: `128`
768
+ :type Bitrate: int
767
769
  """
768
770
  self._Format = None
769
771
  self._SampleRate = None
772
+ self._Bitrate = None
770
773
 
771
774
  @property
772
775
  def Format(self):
773
776
  r"""生成的音频格式
774
777
 
775
- - TextToSpeech流式接口
778
+ - TextToSpeechSSE 流式接口
776
779
 
777
780
  支持 pcm, 默认: pcm
778
781
 
779
- - TextToSpeech非流式接口
782
+ - TextToSpeech 非流式接口
780
783
 
781
- 支持 pcm,wav, 默认: pcm
784
+ 支持 pcm,wav,mp3, 默认: pcm
782
785
  :rtype: str
783
786
  """
784
787
  return self._Format
@@ -801,10 +804,22 @@ class AudioFormat(AbstractModel):
801
804
  def SampleRate(self, SampleRate):
802
805
  self._SampleRate = SampleRate
803
806
 
807
+ @property
808
+ def Bitrate(self):
809
+ r""" MP3 比特率 (kbps),仅对 MP3 格式生效, 可以选: `64`, `128`, `192`, `256` , 默认: `128`
810
+ :rtype: int
811
+ """
812
+ return self._Bitrate
813
+
814
+ @Bitrate.setter
815
+ def Bitrate(self, Bitrate):
816
+ self._Bitrate = Bitrate
817
+
804
818
 
805
819
  def _deserialize(self, params):
806
820
  self._Format = params.get("Format")
807
821
  self._SampleRate = params.get("SampleRate")
822
+ self._Bitrate = params.get("Bitrate")
808
823
  memeber_set = set(params.keys())
809
824
  for name, value in vars(self).items():
810
825
  property_name = name[1:]
@@ -5175,11 +5190,14 @@ class DescribeTRTCMarketQualityDataRequest(AbstractModel):
5175
5190
  d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
5176
5191
  h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
5177
5192
  :type Period: str
5193
+ :param _IsFloat: 返回数据是否为小数
5194
+ :type IsFloat: bool
5178
5195
  """
5179
5196
  self._SdkAppId = None
5180
5197
  self._StartTime = None
5181
5198
  self._EndTime = None
5182
5199
  self._Period = None
5200
+ self._IsFloat = None
5183
5201
 
5184
5202
  @property
5185
5203
  def SdkAppId(self):
@@ -5227,12 +5245,24 @@ h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数
5227
5245
  def Period(self, Period):
5228
5246
  self._Period = Period
5229
5247
 
5248
+ @property
5249
+ def IsFloat(self):
5250
+ r"""返回数据是否为小数
5251
+ :rtype: bool
5252
+ """
5253
+ return self._IsFloat
5254
+
5255
+ @IsFloat.setter
5256
+ def IsFloat(self, IsFloat):
5257
+ self._IsFloat = IsFloat
5258
+
5230
5259
 
5231
5260
  def _deserialize(self, params):
5232
5261
  self._SdkAppId = params.get("SdkAppId")
5233
5262
  self._StartTime = params.get("StartTime")
5234
5263
  self._EndTime = params.get("EndTime")
5235
5264
  self._Period = params.get("Period")
5265
+ self._IsFloat = params.get("IsFloat")
5236
5266
  memeber_set = set(params.keys())
5237
5267
  for name, value in vars(self).items():
5238
5268
  property_name = name[1:]
@@ -12105,17 +12135,11 @@ class RecognizeConfig(AbstractModel):
12105
12135
 
12106
12136
  **基础语言引擎**:
12107
12137
  - "zh": 中文(简体)
12108
- - "zh-TW": 中文(繁体)
12109
- - "en": 英语
12110
- - "16k_zh_edu":中文教育
12111
- - "16k_zh_medical":中文医疗
12112
- - "16k_zh_court":中文法庭
12113
12138
 
12114
12139
  **标准语言引擎:**
12115
12140
  - "8k_zh_large": 普方大模型引擎. 当前模型同时支持中文等语言的识别,模型参数量极大,语言模型性能增强,针对电话音频中各类场景、各类中文方言的识别准确率极大提升.
12116
12141
  - "16k_zh_large": 普方英大模型引擎. 当前模型同时支持中文、英文、多种中文方言等语言的识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.
12117
- - "16k_multi_lang": 多语种大模型引擎. 当前模型同时支持英语、日语、韩语、阿拉伯语、菲律宾语、法语、印地语、印尼语、马来语、葡萄牙语、西班牙语、泰语、土耳其语、越南语、德语的识别,可实现15个语种的自动识别(句子/段落级别).
12118
- - "16k_zh_en": 中英大模型引擎. 当前模型同时支持中文、英语识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.
12142
+ - "16k_zh_en": :中英大模型引擎.当前模型同时支持中文、英语识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升。
12119
12143
 
12120
12144
  **高级语言引擎:**
12121
12145
  - "zh-dialect": 中国方言
@@ -12197,17 +12221,11 @@ class RecognizeConfig(AbstractModel):
12197
12221
 
12198
12222
  **基础语言引擎**:
12199
12223
  - "zh": 中文(简体)
12200
- - "zh-TW": 中文(繁体)
12201
- - "en": 英语
12202
- - "16k_zh_edu":中文教育
12203
- - "16k_zh_medical":中文医疗
12204
- - "16k_zh_court":中文法庭
12205
12224
 
12206
12225
  **标准语言引擎:**
12207
12226
  - "8k_zh_large": 普方大模型引擎. 当前模型同时支持中文等语言的识别,模型参数量极大,语言模型性能增强,针对电话音频中各类场景、各类中文方言的识别准确率极大提升.
12208
12227
  - "16k_zh_large": 普方英大模型引擎. 当前模型同时支持中文、英文、多种中文方言等语言的识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.
12209
- - "16k_multi_lang": 多语种大模型引擎. 当前模型同时支持英语、日语、韩语、阿拉伯语、菲律宾语、法语、印地语、印尼语、马来语、葡萄牙语、西班牙语、泰语、土耳其语、越南语、德语的识别,可实现15个语种的自动识别(句子/段落级别).
12210
- - "16k_zh_en": 中英大模型引擎. 当前模型同时支持中文、英语识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.
12228
+ - "16k_zh_en": :中英大模型引擎.当前模型同时支持中文、英语识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升。
12211
12229
 
12212
12230
  **高级语言引擎:**
12213
12231
  - "zh-dialect": 中国方言
@@ -13075,8 +13093,11 @@ class RowValues(AbstractModel):
13075
13093
  :param _RowValue: 数据值
13076
13094
  注意:此字段可能返回 null,表示取不到有效值。
13077
13095
  :type RowValue: list of int
13096
+ :param _RowValueFloat: 数据值
13097
+ :type RowValueFloat: list of float
13078
13098
  """
13079
13099
  self._RowValue = None
13100
+ self._RowValueFloat = None
13080
13101
 
13081
13102
  @property
13082
13103
  def RowValue(self):
@@ -13090,9 +13111,21 @@ class RowValues(AbstractModel):
13090
13111
  def RowValue(self, RowValue):
13091
13112
  self._RowValue = RowValue
13092
13113
 
13114
+ @property
13115
+ def RowValueFloat(self):
13116
+ r"""数据值
13117
+ :rtype: list of float
13118
+ """
13119
+ return self._RowValueFloat
13120
+
13121
+ @RowValueFloat.setter
13122
+ def RowValueFloat(self, RowValueFloat):
13123
+ self._RowValueFloat = RowValueFloat
13124
+
13093
13125
 
13094
13126
  def _deserialize(self, params):
13095
13127
  self._RowValue = params.get("RowValue")
13128
+ self._RowValueFloat = params.get("RowValueFloat")
13096
13129
  memeber_set = set(params.keys())
13097
13130
  for name, value in vars(self).items():
13098
13131
  property_name = name[1:]
@@ -14168,11 +14201,21 @@ class StartAIConversationRequest(AbstractModel):
14168
14201
  :type RoomIdType: int
14169
14202
  :param _STTConfig: 语音识别配置。
14170
14203
  :type STTConfig: :class:`tencentcloud.trtc.v20190722.models.STTConfig`
14171
- :param _LLMConfig: LLM配置。需符合openai规范,为JSON字符串,示例如下:
14172
- <pre> { <br> &emsp; "LLMType": "大模型类型", // String 必填,如:"openai" <br> &emsp; "Model": "您的模型名称", // String 必填,指定使用的模型<br> "APIKey": "您的LLM API密钥", // String 必填 <br> &emsp; "APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL<br> &emsp; "History": 10, // Integer 选填,设置 LLM 的上下文轮次,默认值为0,最大值50<br> &emsp; "HistoryMode": 1, // Integer 选填,1表示LLM上下文中的内容会和播放音频做同步,没有播放的音频对应的文本不会出现在上下文中。0表示不会做同步,默认值为0<br> &emsp; "Streaming": true // Boolean 非必填,指定是否使用流式传输<br> &emsp;} </pre>
14173
-
14204
+ :param _LLMConfig: 必填参数,LLM配置。需符合openai规范,为JSON字符串,示例如下:<pre> { <br> &emsp; "LLMType": "大模型类型", // String 必填,如:"openai" <br> &emsp; "Model": "您的模型名称", // String 必填,指定使用的模型<br> "APIKey": "您的LLM API密钥", // String 必填 <br> &emsp; "APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL<br> &emsp; "History": 10, // Integer 选填,设置 LLM 的上下文轮次,默认值为0,最大值50<br> &emsp; "HistoryMode": 1, // Integer 选填,1表示LLM上下文中的内容会和播放音频做同步,没有播放的音频对应的文本不会出现在上下文中。0表示不会做同步,默认值为0<br> &emsp; "Streaming": true // Boolean 非必填,指定是否使用流式传输<br> &emsp;} </pre>
14174
14205
  :type LLMConfig: str
14175
- :param _TTSConfig: TTS配置,为JSON字符串,腾讯云TTS示例如下: <pre>{ <br> &emsp; "AppId": 您的应用ID, // Integer 必填<br> &emsp; "TTSType": "TTS类型", // String TTS类型, 固定为"tencent"<br> &emsp; "SecretId": "您的密钥ID", // String 必填<br> &emsp; "SecretKey": "您的密钥Key", // String 必填<br> &emsp; "VoiceType": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见<a href="https://cloud.tencent.com/document/product/1073/34112">语音合成计费概述</a>。完整的音色 ID 列表请参见<a href="https://cloud.tencent.com/document/product/1073/92668#55924b56-1a73-4663-a7a1-a8dd82d6e823">语音合成音色列表</a>。<br> &emsp; "Speed": 1.25, // Integer 非必填,语速,范围:[-26],分别对应不同语速: -2: 代表0.6倍 -1: 代表0.8倍 0: 代表1.0倍(默认) 1: 代表1.2倍 2: 代表1.5倍 6: 代表2.5倍 如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。 参数值与实际语速转换,可参考 <a href="https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz">语速转换</a><br> &emsp; "Volume": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。<br> &emsp; "EmotionCategory": "angry", // String 非必填 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)。<br> &emsp; "EmotionIntensity": 150 // Integer 非必填 控制合成音频情感程度,取值范围为 [50,200],默认为 100;只有 EmotionCategory 不为空时生效。<br> &emsp; }</pre>
14206
+ :param _TTSConfig: 必填参数,TTS配置,详见 [TTS配置说明](https://cloud.tencent.com/document/product/647/115414 )为JSON字符串: TRTC TTS的配置如下:
14207
+
14208
+ ```
14209
+ {
14210
+ "TTSType": "flow", // 【必填】固定为此值
14211
+ "VoiceId": "v-female-R2s4N9qJ", // 【必填】精品音色 ID /克隆音色 ID, 可选择 不同音色, ID 库参考下方音色列表
14212
+ "Model": "flow_01_turbo", // 【必填】当前默认的 TTS 模型版本(对应 Flash 版本)
14213
+ "Speed": 1.0, //【可选】调节语速 范围 [0.5-2.0],默认 1.0; 取值越大,语速越快
14214
+ "Volume": 1.0, // 【可选】调节音量 [0, 10] 默认值 1.0; 取值越大,音量越高
14215
+ "Pitch": 0, // 【可选】调节语调 [-12,12],默认值为 0,其中 0 为原音色输出。
14216
+ "Language": "zh" //【可选】建议填写,目前支持填写中文:zh 英文:en 粤语方言:yue; 参数参考:(ISO 639-1)
14217
+ }
14218
+ ```
14176
14219
  :type TTSConfig: str
14177
14220
  :param _AvatarConfig: 数字人配置,为JSON字符串。**数字人配置需要提工单加白后才能使用**
14178
14221
  :type AvatarConfig: str
@@ -14258,9 +14301,7 @@ class StartAIConversationRequest(AbstractModel):
14258
14301
 
14259
14302
  @property
14260
14303
  def LLMConfig(self):
14261
- r"""LLM配置。需符合openai规范,为JSON字符串,示例如下:
14262
- <pre> { <br> &emsp; "LLMType": "大模型类型", // String 必填,如:"openai" <br> &emsp; "Model": "您的模型名称", // String 必填,指定使用的模型<br> "APIKey": "您的LLM API密钥", // String 必填 <br> &emsp; "APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL<br> &emsp; "History": 10, // Integer 选填,设置 LLM 的上下文轮次,默认值为0,最大值50<br> &emsp; "HistoryMode": 1, // Integer 选填,1表示LLM上下文中的内容会和播放音频做同步,没有播放的音频对应的文本不会出现在上下文中。0表示不会做同步,默认值为0<br> &emsp; "Streaming": true // Boolean 非必填,指定是否使用流式传输<br> &emsp;} </pre>
14263
-
14304
+ r"""必填参数,LLM配置。需符合openai规范,为JSON字符串,示例如下:<pre> { <br> &emsp; "LLMType": "大模型类型", // String 必填,如:"openai" <br> &emsp; "Model": "您的模型名称", // String 必填,指定使用的模型<br> "APIKey": "您的LLM API密钥", // String 必填 <br> &emsp; "APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL<br> &emsp; "History": 10, // Integer 选填,设置 LLM 的上下文轮次,默认值为0,最大值50<br> &emsp; "HistoryMode": 1, // Integer 选填,1表示LLM上下文中的内容会和播放音频做同步,没有播放的音频对应的文本不会出现在上下文中。0表示不会做同步,默认值为0<br> &emsp; "Streaming": true // Boolean 非必填,指定是否使用流式传输<br> &emsp;} </pre>
14264
14305
  :rtype: str
14265
14306
  """
14266
14307
  return self._LLMConfig
@@ -14271,7 +14312,19 @@ class StartAIConversationRequest(AbstractModel):
14271
14312
 
14272
14313
  @property
14273
14314
  def TTSConfig(self):
14274
- r"""TTS配置,为JSON字符串,腾讯云TTS示例如下: <pre>{ <br> &emsp; "AppId": 您的应用ID, // Integer 必填<br> &emsp; "TTSType": "TTS类型", // String TTS类型, 固定为"tencent"<br> &emsp; "SecretId": "您的密钥ID", // String 必填<br> &emsp; "SecretKey": "您的密钥Key", // String 必填<br> &emsp; "VoiceType": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见<a href="https://cloud.tencent.com/document/product/1073/34112">语音合成计费概述</a>。完整的音色 ID 列表请参见<a href="https://cloud.tencent.com/document/product/1073/92668#55924b56-1a73-4663-a7a1-a8dd82d6e823">语音合成音色列表</a>。<br> &emsp; "Speed": 1.25, // Integer 非必填,语速,范围:[-26],分别对应不同语速: -2: 代表0.6倍 -1: 代表0.8倍 0: 代表1.0倍(默认) 1: 代表1.2倍 2: 代表1.5倍 6: 代表2.5倍 如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。 参数值与实际语速转换,可参考 <a href="https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz">语速转换</a><br> &emsp; "Volume": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。<br> &emsp; "EmotionCategory": "angry", // String 非必填 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)。<br> &emsp; "EmotionIntensity": 150 // Integer 非必填 控制合成音频情感程度,取值范围为 [50,200],默认为 100;只有 EmotionCategory 不为空时生效。<br> &emsp; }</pre>
14315
+ r"""必填参数,TTS配置,详见 [TTS配置说明](https://cloud.tencent.com/document/product/647/115414 )为JSON字符串: TRTC TTS的配置如下:
14316
+
14317
+ ```
14318
+ {
14319
+ "TTSType": "flow", // 【必填】固定为此值
14320
+ "VoiceId": "v-female-R2s4N9qJ", // 【必填】精品音色 ID /克隆音色 ID, 可选择 不同音色, ID 库参考下方音色列表
14321
+ "Model": "flow_01_turbo", // 【必填】当前默认的 TTS 模型版本(对应 Flash 版本)
14322
+ "Speed": 1.0, //【可选】调节语速 范围 [0.5-2.0],默认 1.0; 取值越大,语速越快
14323
+ "Volume": 1.0, // 【可选】调节音量 [0, 10] 默认值 1.0; 取值越大,音量越高
14324
+ "Pitch": 0, // 【可选】调节语调 [-12,12],默认值为 0,其中 0 为原音色输出。
14325
+ "Language": "zh" //【可选】建议填写,目前支持填写中文:zh 英文:en 粤语方言:yue; 参数参考:(ISO 639-1)
14326
+ }
14327
+ ```
14275
14328
  :rtype: str
14276
14329
  """
14277
14330
  return self._TTSConfig
@@ -15155,6 +15208,10 @@ class StartStreamIngestRequest(AbstractModel):
15155
15208
  :type MaxDuration: int
15156
15209
  :param _Volume: 音量,取值范围[0, 100],默认100,表示原音量。
15157
15210
  :type Volume: int
15211
+ :param _EnableProgress: 开启播放进度回调, 默认false,当开启后,播放进度会通过trtc custom data 回调给播放端
15212
+ :type EnableProgress: bool
15213
+ :param _Tempo: 播放倍速,默认1.0,可取[0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0]
15214
+ :type Tempo: float
15158
15215
  """
15159
15216
  self._SdkAppId = None
15160
15217
  self._RoomId = None
@@ -15171,6 +15228,8 @@ class StartStreamIngestRequest(AbstractModel):
15171
15228
  self._RepeatNum = None
15172
15229
  self._MaxDuration = None
15173
15230
  self._Volume = None
15231
+ self._EnableProgress = None
15232
+ self._Tempo = None
15174
15233
 
15175
15234
  @property
15176
15235
  def SdkAppId(self):
@@ -15355,6 +15414,28 @@ class StartStreamIngestRequest(AbstractModel):
15355
15414
  def Volume(self, Volume):
15356
15415
  self._Volume = Volume
15357
15416
 
15417
+ @property
15418
+ def EnableProgress(self):
15419
+ r"""开启播放进度回调, 默认false,当开启后,播放进度会通过trtc custom data 回调给播放端
15420
+ :rtype: bool
15421
+ """
15422
+ return self._EnableProgress
15423
+
15424
+ @EnableProgress.setter
15425
+ def EnableProgress(self, EnableProgress):
15426
+ self._EnableProgress = EnableProgress
15427
+
15428
+ @property
15429
+ def Tempo(self):
15430
+ r"""播放倍速,默认1.0,可取[0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0]
15431
+ :rtype: float
15432
+ """
15433
+ return self._Tempo
15434
+
15435
+ @Tempo.setter
15436
+ def Tempo(self, Tempo):
15437
+ self._Tempo = Tempo
15438
+
15358
15439
 
15359
15440
  def _deserialize(self, params):
15360
15441
  self._SdkAppId = params.get("SdkAppId")
@@ -15376,6 +15457,8 @@ class StartStreamIngestRequest(AbstractModel):
15376
15457
  self._RepeatNum = params.get("RepeatNum")
15377
15458
  self._MaxDuration = params.get("MaxDuration")
15378
15459
  self._Volume = params.get("Volume")
15460
+ self._EnableProgress = params.get("EnableProgress")
15461
+ self._Tempo = params.get("Tempo")
15379
15462
  memeber_set = set(params.keys())
15380
15463
  for name, value in vars(self).items():
15381
15464
  property_name = name[1:]
@@ -18140,12 +18223,18 @@ class UpdateStreamIngestRequest(AbstractModel):
18140
18223
  :type Volume: int
18141
18224
  :param _IsPause: 是否暂停,默认false表示不暂停。暂停期间任务仍在进行中仍会计费,暂停超过12小时会自动销毁任务, 建议主动调用停止任务接口。
18142
18225
  :type IsPause: bool
18226
+ :param _EnableProgress: 是否开启播放进度回调, 默认false,当开启后,播放进度会通过trtc custom data 回调给播放端
18227
+ :type EnableProgress: bool
18228
+ :param _Tempo: 播放倍速,默认1.0,可取[0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0]
18229
+ :type Tempo: float
18143
18230
  """
18144
18231
  self._SdkAppId = None
18145
18232
  self._TaskId = None
18146
18233
  self._StreamUrl = None
18147
18234
  self._Volume = None
18148
18235
  self._IsPause = None
18236
+ self._EnableProgress = None
18237
+ self._Tempo = None
18149
18238
 
18150
18239
  @property
18151
18240
  def SdkAppId(self):
@@ -18202,6 +18291,28 @@ class UpdateStreamIngestRequest(AbstractModel):
18202
18291
  def IsPause(self, IsPause):
18203
18292
  self._IsPause = IsPause
18204
18293
 
18294
+ @property
18295
+ def EnableProgress(self):
18296
+ r"""是否开启播放进度回调, 默认false,当开启后,播放进度会通过trtc custom data 回调给播放端
18297
+ :rtype: bool
18298
+ """
18299
+ return self._EnableProgress
18300
+
18301
+ @EnableProgress.setter
18302
+ def EnableProgress(self, EnableProgress):
18303
+ self._EnableProgress = EnableProgress
18304
+
18305
+ @property
18306
+ def Tempo(self):
18307
+ r"""播放倍速,默认1.0,可取[0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0]
18308
+ :rtype: float
18309
+ """
18310
+ return self._Tempo
18311
+
18312
+ @Tempo.setter
18313
+ def Tempo(self, Tempo):
18314
+ self._Tempo = Tempo
18315
+
18205
18316
 
18206
18317
  def _deserialize(self, params):
18207
18318
  self._SdkAppId = params.get("SdkAppId")
@@ -18209,6 +18320,8 @@ class UpdateStreamIngestRequest(AbstractModel):
18209
18320
  self._StreamUrl = params.get("StreamUrl")
18210
18321
  self._Volume = params.get("Volume")
18211
18322
  self._IsPause = params.get("IsPause")
18323
+ self._EnableProgress = params.get("EnableProgress")
18324
+ self._Tempo = params.get("Tempo")
18212
18325
  memeber_set = set(params.keys())
18213
18326
  for name, value in vars(self).items():
18214
18327
  property_name = name[1:]
@@ -18960,7 +19073,7 @@ class VoiceCloneRequest(AbstractModel):
18960
19073
  :type SdkAppId: int
18961
19074
  :param _VoiceName: 声音克隆的名称, 只允许使用数字、字母、下划线,不能超过36位
18962
19075
  :type VoiceName: str
18963
- :param _PromptAudio: 声音克隆的参考音频,必须为16k单声道的wav的base64字符串, 长度在5秒~12秒之间
19076
+ :param _PromptAudio: 声音克隆的参考音频,必须为16k单声道的wav的base64字符串, 长度在10秒~180秒之间
18964
19077
  :type PromptAudio: str
18965
19078
  :param _APIKey: TTS的API密钥
18966
19079
  :type APIKey: str
@@ -19003,7 +19116,7 @@ class VoiceCloneRequest(AbstractModel):
19003
19116
 
19004
19117
  @property
19005
19118
  def PromptAudio(self):
19006
- r"""声音克隆的参考音频,必须为16k单声道的wav的base64字符串, 长度在5秒~12秒之间
19119
+ r"""声音克隆的参考音频,必须为16k单声道的wav的base64字符串, 长度在10秒~180秒之间
19007
19120
  :rtype: str
19008
19121
  """
19009
19122
  return self._PromptAudio
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.1.13
3
+ Version: 3.1.28
4
4
  Summary: Tencent Cloud Trtc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.13
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.28
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.28
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.13