tencentcloud-sdk-python-trtc 3.1.105__tar.gz → 3.1.112__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_trtc-3.1.105 → tencentcloud_sdk_python_trtc-3.1.112}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_trtc-3.1.105 → tencentcloud_sdk_python_trtc-3.1.112}/setup.py +1 -1
  3. {tencentcloud_sdk_python_trtc-3.1.105 → tencentcloud_sdk_python_trtc-3.1.112}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_trtc-3.1.105 → tencentcloud_sdk_python_trtc-3.1.112}/tencentcloud/trtc/v20190722/models.py +475 -134
  5. {tencentcloud_sdk_python_trtc-3.1.105 → tencentcloud_sdk_python_trtc-3.1.112}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +2 -2
  6. tencentcloud_sdk_python_trtc-3.1.112/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
  7. tencentcloud_sdk_python_trtc-3.1.105/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
  8. {tencentcloud_sdk_python_trtc-3.1.105 → tencentcloud_sdk_python_trtc-3.1.112}/README.rst +0 -0
  9. {tencentcloud_sdk_python_trtc-3.1.105 → tencentcloud_sdk_python_trtc-3.1.112}/setup.cfg +0 -0
  10. {tencentcloud_sdk_python_trtc-3.1.105 → tencentcloud_sdk_python_trtc-3.1.112}/tencentcloud/trtc/__init__.py +0 -0
  11. {tencentcloud_sdk_python_trtc-3.1.105 → tencentcloud_sdk_python_trtc-3.1.112}/tencentcloud/trtc/v20190722/__init__.py +0 -0
  12. {tencentcloud_sdk_python_trtc-3.1.105 → tencentcloud_sdk_python_trtc-3.1.112}/tencentcloud/trtc/v20190722/errorcodes.py +0 -0
  13. {tencentcloud_sdk_python_trtc-3.1.105 → tencentcloud_sdk_python_trtc-3.1.112}/tencentcloud/trtc/v20190722/trtc_client.py +0 -0
  14. {tencentcloud_sdk_python_trtc-3.1.105 → tencentcloud_sdk_python_trtc-3.1.112}/tencentcloud/trtc/v20190722/trtc_client_async.py +0 -0
  15. {tencentcloud_sdk_python_trtc-3.1.105 → tencentcloud_sdk_python_trtc-3.1.112}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_trtc-3.1.105 → tencentcloud_sdk_python_trtc-3.1.112}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_trtc-3.1.105 → tencentcloud_sdk_python_trtc-3.1.112}/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.105
3
+ Version: 3.1.112
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.105
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.112
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.105,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.112,<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.105'
17
+ __version__ = '3.1.112'
@@ -899,21 +899,21 @@ class AsyncTextToSpeechRequest(AbstractModel):
899
899
 
900
900
  def __init__(self):
901
901
  r"""
902
- :param _Text: 需要转语音的文字内容,最大允许50000字符,注意 1汉字=2字符
902
+ :param _Text: <p>需要转语音的文字内容,最大允许50000字符,注意 1汉字=2字符</p>
903
903
  :type Text: str
904
- :param _Voice: 文本转语音的声音配置
904
+ :param _Voice: <p>文本转语音的声音配置</p>
905
905
  :type Voice: :class:`tencentcloud.trtc.v20190722.models.Voice`
906
- :param _SdkAppId: TRTC的SdkAppId
906
+ :param _SdkAppId: <p>TRTC的SdkAppId</p>
907
907
  :type SdkAppId: int
908
- :param _AudioFormat: 文本转语音的输出音频的格式
908
+ :param _AudioFormat: <p>文本转语音的输出音频的格式</p>
909
909
  :type AudioFormat: :class:`tencentcloud.trtc.v20190722.models.AudioFormat`
910
- :param _Model: TTS的模型,当前固定为:flow_01_turbo
910
+ :param _Model: <p>TTS的模型,当前固定为:flow_02_turbo</p><p>枚举值:</p><ul><li>flow_02_turbo: flow_02_turbo</li></ul>
911
911
  :type Model: str
912
- :param _PronunciationDict: 多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。
912
+ :param _PronunciationDict: <p>多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。</p>
913
913
  :type PronunciationDict: list of PronunciationDict
914
- :param _AlignmentMode: 默认为0,0表示不生成字幕,1表示生成字幕
914
+ :param _AlignmentMode: <p>默认为0,0表示不生成字幕,1表示生成字幕</p>
915
915
  :type AlignmentMode: int
916
- :param _LanguageCode: 需要合成的语言(ISO 639-1),默认自动识别,支持的语言如下: zh(中文) en(英文) yue(粤语) ja(日语) ko(韩语) ar(阿拉伯语) id(印尼语) th(泰语)
916
+ :param _LanguageCode: <p>需要合成的语言(ISO 639-1),默认自动识别,支持的语言如下: zh(中文) en(英文) yue(粤语) ja(日语) ko(韩语) ar(阿拉伯语) id(印尼语) th(泰语)</p>
917
917
  :type LanguageCode: str
918
918
  """
919
919
  self._Text = None
@@ -927,7 +927,7 @@ class AsyncTextToSpeechRequest(AbstractModel):
927
927
 
928
928
  @property
929
929
  def Text(self):
930
- r"""需要转语音的文字内容,最大允许50000字符,注意 1汉字=2字符
930
+ r"""<p>需要转语音的文字内容,最大允许50000字符,注意 1汉字=2字符</p>
931
931
  :rtype: str
932
932
  """
933
933
  return self._Text
@@ -938,7 +938,7 @@ class AsyncTextToSpeechRequest(AbstractModel):
938
938
 
939
939
  @property
940
940
  def Voice(self):
941
- r"""文本转语音的声音配置
941
+ r"""<p>文本转语音的声音配置</p>
942
942
  :rtype: :class:`tencentcloud.trtc.v20190722.models.Voice`
943
943
  """
944
944
  return self._Voice
@@ -949,7 +949,7 @@ class AsyncTextToSpeechRequest(AbstractModel):
949
949
 
950
950
  @property
951
951
  def SdkAppId(self):
952
- r"""TRTC的SdkAppId
952
+ r"""<p>TRTC的SdkAppId</p>
953
953
  :rtype: int
954
954
  """
955
955
  return self._SdkAppId
@@ -960,7 +960,7 @@ class AsyncTextToSpeechRequest(AbstractModel):
960
960
 
961
961
  @property
962
962
  def AudioFormat(self):
963
- r"""文本转语音的输出音频的格式
963
+ r"""<p>文本转语音的输出音频的格式</p>
964
964
  :rtype: :class:`tencentcloud.trtc.v20190722.models.AudioFormat`
965
965
  """
966
966
  return self._AudioFormat
@@ -971,7 +971,7 @@ class AsyncTextToSpeechRequest(AbstractModel):
971
971
 
972
972
  @property
973
973
  def Model(self):
974
- r"""TTS的模型,当前固定为:flow_01_turbo
974
+ r"""<p>TTS的模型,当前固定为:flow_02_turbo</p><p>枚举值:</p><ul><li>flow_02_turbo: flow_02_turbo</li></ul>
975
975
  :rtype: str
976
976
  """
977
977
  return self._Model
@@ -982,7 +982,7 @@ class AsyncTextToSpeechRequest(AbstractModel):
982
982
 
983
983
  @property
984
984
  def PronunciationDict(self):
985
- r"""多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。
985
+ r"""<p>多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。</p>
986
986
  :rtype: list of PronunciationDict
987
987
  """
988
988
  return self._PronunciationDict
@@ -993,7 +993,7 @@ class AsyncTextToSpeechRequest(AbstractModel):
993
993
 
994
994
  @property
995
995
  def AlignmentMode(self):
996
- r"""默认为0,0表示不生成字幕,1表示生成字幕
996
+ r"""<p>默认为0,0表示不生成字幕,1表示生成字幕</p>
997
997
  :rtype: int
998
998
  """
999
999
  return self._AlignmentMode
@@ -1004,7 +1004,7 @@ class AsyncTextToSpeechRequest(AbstractModel):
1004
1004
 
1005
1005
  @property
1006
1006
  def LanguageCode(self):
1007
- r"""需要合成的语言(ISO 639-1),默认自动识别,支持的语言如下: zh(中文) en(英文) yue(粤语) ja(日语) ko(韩语) ar(阿拉伯语) id(印尼语) th(泰语)
1007
+ r"""<p>需要合成的语言(ISO 639-1),默认自动识别,支持的语言如下: zh(中文) en(英文) yue(粤语) ja(日语) ko(韩语) ar(阿拉伯语) id(印尼语) th(泰语)</p>
1008
1008
  :rtype: str
1009
1009
  """
1010
1010
  return self._LanguageCode
@@ -1049,7 +1049,7 @@ class AsyncTextToSpeechResponse(AbstractModel):
1049
1049
 
1050
1050
  def __init__(self):
1051
1051
  r"""
1052
- :param _TaskId: 任务ID
1052
+ :param _TaskId: <p>任务ID</p>
1053
1053
  :type TaskId: str
1054
1054
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1055
1055
  :type RequestId: str
@@ -1059,7 +1059,7 @@ class AsyncTextToSpeechResponse(AbstractModel):
1059
1059
 
1060
1060
  @property
1061
1061
  def TaskId(self):
1062
- r"""任务ID
1062
+ r"""<p>任务ID</p>
1063
1063
  :rtype: str
1064
1064
  """
1065
1065
  return self._TaskId
@@ -2928,18 +2928,20 @@ class CreateCloudTranscriptionRequest(AbstractModel):
2928
2928
 
2929
2929
  def __init__(self):
2930
2930
  r"""
2931
- :param _SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和转录的房间所对应的SdkAppId相同。
2931
+ :param _SdkAppId: <p>TRTC的<a href="https://cloud.tencent.com/document/product/647/46351#sdkappid">SdkAppId</a>,和转录的房间所对应的SdkAppId相同。</p>
2932
2932
  :type SdkAppId: int
2933
- :param _RoomId: TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),转录的TRTC房间所对应的RoomId。注:房间号类型默认为整型,若房间号类型为字符串,请通过RoomIdType指定。
2933
+ :param _RoomId: <p>TRTC的<a href="https://cloud.tencent.com/document/product/647/46351#roomid">RoomId</a>,转录的TRTC房间所对应的RoomId。注:房间号类型默认为整型,若房间号类型为字符串,请通过RoomIdType指定。</p>
2934
2934
  :type RoomId: str
2935
- :param _RoomIdType: 房间信息RoomType,必须和转录的房间所对应的RoomId类型相同,0为整型房间号,1为字符串房间号。
2935
+ :param _RoomIdType: <p>房间信息RoomType,必须和转录的房间所对应的RoomId类型相同,0为整型房间号,1为字符串房间号。</p>
2936
2936
  :type RoomIdType: int
2937
- :param _TranscriptionParam: 转录服务加入TRTC房间的参数。
2937
+ :param _TranscriptionParam: <p>转录服务加入TRTC房间的参数。</p>
2938
2938
  :type TranscriptionParam: :class:`tencentcloud.trtc.v20190722.models.TranscriptionParam`
2939
- :param _AsrParam: 转录服务ASR使用的参数。
2939
+ :param _AsrParam: <p>转录服务ASR使用的参数。</p>
2940
2940
  :type AsrParam: :class:`tencentcloud.trtc.v20190722.models.AsrParam`
2941
- :param _TranslationParam: 转录服务翻译使用的参数。
2941
+ :param _TranslationParam: <p>转录服务翻译使用的参数。</p>
2942
2942
  :type TranslationParam: :class:`tencentcloud.trtc.v20190722.models.TranslationParam`
2943
+ :param _TTSParam: <p>转录服务TTS使用的参数。</p>
2944
+ :type TTSParam: list of TTSParam
2943
2945
  """
2944
2946
  self._SdkAppId = None
2945
2947
  self._RoomId = None
@@ -2947,10 +2949,11 @@ class CreateCloudTranscriptionRequest(AbstractModel):
2947
2949
  self._TranscriptionParam = None
2948
2950
  self._AsrParam = None
2949
2951
  self._TranslationParam = None
2952
+ self._TTSParam = None
2950
2953
 
2951
2954
  @property
2952
2955
  def SdkAppId(self):
2953
- r"""TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和转录的房间所对应的SdkAppId相同。
2956
+ r"""<p>TRTC的<a href="https://cloud.tencent.com/document/product/647/46351#sdkappid">SdkAppId</a>,和转录的房间所对应的SdkAppId相同。</p>
2954
2957
  :rtype: int
2955
2958
  """
2956
2959
  return self._SdkAppId
@@ -2961,7 +2964,7 @@ class CreateCloudTranscriptionRequest(AbstractModel):
2961
2964
 
2962
2965
  @property
2963
2966
  def RoomId(self):
2964
- r"""TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),转录的TRTC房间所对应的RoomId。注:房间号类型默认为整型,若房间号类型为字符串,请通过RoomIdType指定。
2967
+ r"""<p>TRTC的<a href="https://cloud.tencent.com/document/product/647/46351#roomid">RoomId</a>,转录的TRTC房间所对应的RoomId。注:房间号类型默认为整型,若房间号类型为字符串,请通过RoomIdType指定。</p>
2965
2968
  :rtype: str
2966
2969
  """
2967
2970
  return self._RoomId
@@ -2972,7 +2975,7 @@ class CreateCloudTranscriptionRequest(AbstractModel):
2972
2975
 
2973
2976
  @property
2974
2977
  def RoomIdType(self):
2975
- r"""房间信息RoomType,必须和转录的房间所对应的RoomId类型相同,0为整型房间号,1为字符串房间号。
2978
+ r"""<p>房间信息RoomType,必须和转录的房间所对应的RoomId类型相同,0为整型房间号,1为字符串房间号。</p>
2976
2979
  :rtype: int
2977
2980
  """
2978
2981
  return self._RoomIdType
@@ -2983,7 +2986,7 @@ class CreateCloudTranscriptionRequest(AbstractModel):
2983
2986
 
2984
2987
  @property
2985
2988
  def TranscriptionParam(self):
2986
- r"""转录服务加入TRTC房间的参数。
2989
+ r"""<p>转录服务加入TRTC房间的参数。</p>
2987
2990
  :rtype: :class:`tencentcloud.trtc.v20190722.models.TranscriptionParam`
2988
2991
  """
2989
2992
  return self._TranscriptionParam
@@ -2994,7 +2997,7 @@ class CreateCloudTranscriptionRequest(AbstractModel):
2994
2997
 
2995
2998
  @property
2996
2999
  def AsrParam(self):
2997
- r"""转录服务ASR使用的参数。
3000
+ r"""<p>转录服务ASR使用的参数。</p>
2998
3001
  :rtype: :class:`tencentcloud.trtc.v20190722.models.AsrParam`
2999
3002
  """
3000
3003
  return self._AsrParam
@@ -3005,7 +3008,7 @@ class CreateCloudTranscriptionRequest(AbstractModel):
3005
3008
 
3006
3009
  @property
3007
3010
  def TranslationParam(self):
3008
- r"""转录服务翻译使用的参数。
3011
+ r"""<p>转录服务翻译使用的参数。</p>
3009
3012
  :rtype: :class:`tencentcloud.trtc.v20190722.models.TranslationParam`
3010
3013
  """
3011
3014
  return self._TranslationParam
@@ -3014,6 +3017,17 @@ class CreateCloudTranscriptionRequest(AbstractModel):
3014
3017
  def TranslationParam(self, TranslationParam):
3015
3018
  self._TranslationParam = TranslationParam
3016
3019
 
3020
+ @property
3021
+ def TTSParam(self):
3022
+ r"""<p>转录服务TTS使用的参数。</p>
3023
+ :rtype: list of TTSParam
3024
+ """
3025
+ return self._TTSParam
3026
+
3027
+ @TTSParam.setter
3028
+ def TTSParam(self, TTSParam):
3029
+ self._TTSParam = TTSParam
3030
+
3017
3031
 
3018
3032
  def _deserialize(self, params):
3019
3033
  self._SdkAppId = params.get("SdkAppId")
@@ -3028,6 +3042,12 @@ class CreateCloudTranscriptionRequest(AbstractModel):
3028
3042
  if params.get("TranslationParam") is not None:
3029
3043
  self._TranslationParam = TranslationParam()
3030
3044
  self._TranslationParam._deserialize(params.get("TranslationParam"))
3045
+ if params.get("TTSParam") is not None:
3046
+ self._TTSParam = []
3047
+ for item in params.get("TTSParam"):
3048
+ obj = TTSParam()
3049
+ obj._deserialize(item)
3050
+ self._TTSParam.append(obj)
3031
3051
  memeber_set = set(params.keys())
3032
3052
  for name, value in vars(self).items():
3033
3053
  property_name = name[1:]
@@ -3045,7 +3065,7 @@ class CreateCloudTranscriptionResponse(AbstractModel):
3045
3065
 
3046
3066
  def __init__(self):
3047
3067
  r"""
3048
- :param _TaskId: 用于唯一标识转录任务,由腾讯云服务端生成,后续查询和停止请求都需要携带TaskID参数。
3068
+ :param _TaskId: <p>用于唯一标识转录任务,由腾讯云服务端生成,后续查询和停止请求都需要携带TaskID参数。</p>
3049
3069
  :type TaskId: str
3050
3070
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3051
3071
  :type RequestId: str
@@ -3055,7 +3075,7 @@ class CreateCloudTranscriptionResponse(AbstractModel):
3055
3075
 
3056
3076
  @property
3057
3077
  def TaskId(self):
3058
- r"""用于唯一标识转录任务,由腾讯云服务端生成,后续查询和停止请求都需要携带TaskID参数。
3078
+ r"""<p>用于唯一标识转录任务,由腾讯云服务端生成,后续查询和停止请求都需要携带TaskID参数。</p>
3059
3079
  :rtype: str
3060
3080
  """
3061
3081
  return self._TaskId
@@ -18071,6 +18091,189 @@ class TTSConfig(AbstractModel):
18071
18091
 
18072
18092
 
18073
18093
 
18094
+ class TTSParam(AbstractModel):
18095
+ r"""伴生转录TTS参数
18096
+
18097
+ """
18098
+
18099
+ def __init__(self):
18100
+ r"""
18101
+ :param _Model: <p>tts模型</p>
18102
+ :type Model: str
18103
+ :param _Language: <p>tts语言,必须在TranslationParam 的TargetLang列表中。</p>
18104
+ :type Language: str
18105
+ :param _TargetUser: <p>需要TTS播报的主播用户,该主播用户必须在订阅白名单里并且不在订阅黑名单里。</p>
18106
+ :type TargetUser: :class:`tencentcloud.trtc.v20190722.models.TranscriptionUserInfoParams`
18107
+ :param _TTSRobotUser: <p>TTS 音频回推到房间的机器人用户。</p>
18108
+ :type TTSRobotUser: :class:`tencentcloud.trtc.v20190722.models.TranscriptionUserInfoParams`
18109
+ :param _Voice: <p>TTS的声音配置参数。</p>
18110
+ :type Voice: :class:`tencentcloud.trtc.v20190722.models.TTSVoice`
18111
+ """
18112
+ self._Model = None
18113
+ self._Language = None
18114
+ self._TargetUser = None
18115
+ self._TTSRobotUser = None
18116
+ self._Voice = None
18117
+
18118
+ @property
18119
+ def Model(self):
18120
+ r"""<p>tts模型</p>
18121
+ :rtype: str
18122
+ """
18123
+ return self._Model
18124
+
18125
+ @Model.setter
18126
+ def Model(self, Model):
18127
+ self._Model = Model
18128
+
18129
+ @property
18130
+ def Language(self):
18131
+ r"""<p>tts语言,必须在TranslationParam 的TargetLang列表中。</p>
18132
+ :rtype: str
18133
+ """
18134
+ return self._Language
18135
+
18136
+ @Language.setter
18137
+ def Language(self, Language):
18138
+ self._Language = Language
18139
+
18140
+ @property
18141
+ def TargetUser(self):
18142
+ r"""<p>需要TTS播报的主播用户,该主播用户必须在订阅白名单里并且不在订阅黑名单里。</p>
18143
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.TranscriptionUserInfoParams`
18144
+ """
18145
+ return self._TargetUser
18146
+
18147
+ @TargetUser.setter
18148
+ def TargetUser(self, TargetUser):
18149
+ self._TargetUser = TargetUser
18150
+
18151
+ @property
18152
+ def TTSRobotUser(self):
18153
+ r"""<p>TTS 音频回推到房间的机器人用户。</p>
18154
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.TranscriptionUserInfoParams`
18155
+ """
18156
+ return self._TTSRobotUser
18157
+
18158
+ @TTSRobotUser.setter
18159
+ def TTSRobotUser(self, TTSRobotUser):
18160
+ self._TTSRobotUser = TTSRobotUser
18161
+
18162
+ @property
18163
+ def Voice(self):
18164
+ r"""<p>TTS的声音配置参数。</p>
18165
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.TTSVoice`
18166
+ """
18167
+ return self._Voice
18168
+
18169
+ @Voice.setter
18170
+ def Voice(self, Voice):
18171
+ self._Voice = Voice
18172
+
18173
+
18174
+ def _deserialize(self, params):
18175
+ self._Model = params.get("Model")
18176
+ self._Language = params.get("Language")
18177
+ if params.get("TargetUser") is not None:
18178
+ self._TargetUser = TranscriptionUserInfoParams()
18179
+ self._TargetUser._deserialize(params.get("TargetUser"))
18180
+ if params.get("TTSRobotUser") is not None:
18181
+ self._TTSRobotUser = TranscriptionUserInfoParams()
18182
+ self._TTSRobotUser._deserialize(params.get("TTSRobotUser"))
18183
+ if params.get("Voice") is not None:
18184
+ self._Voice = TTSVoice()
18185
+ self._Voice._deserialize(params.get("Voice"))
18186
+ memeber_set = set(params.keys())
18187
+ for name, value in vars(self).items():
18188
+ property_name = name[1:]
18189
+ if property_name in memeber_set:
18190
+ memeber_set.remove(property_name)
18191
+ if len(memeber_set) > 0:
18192
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
18193
+
18194
+
18195
+
18196
+ class TTSVoice(AbstractModel):
18197
+ r"""伴生转录TTS的语音参数配置
18198
+
18199
+ """
18200
+
18201
+ def __init__(self):
18202
+ r"""
18203
+ :param _VoiceId: <p>音色 ID。</p>
18204
+ :type VoiceId: str
18205
+ :param _Speed: <p>语速调节,0.5 为半速慢放,2.0 为两倍速快放,1.0 为正常语速,区间:[0.5, 2.0],默认1.0。</p>
18206
+ :type Speed: float
18207
+ :param _Volume: <p>音量调节,0 为静音,10 为最大音量,建议保持默认值 1.0,区间:[0, 10],默认1.0。</p>
18208
+ :type Volume: float
18209
+ :param _Pitch: <p>音高调节,负值声音更低沉,正值声音更尖锐,0 为原始音高,区间 [-12, 12],默认0。</p>
18210
+ :type Pitch: int
18211
+ """
18212
+ self._VoiceId = None
18213
+ self._Speed = None
18214
+ self._Volume = None
18215
+ self._Pitch = None
18216
+
18217
+ @property
18218
+ def VoiceId(self):
18219
+ r"""<p>音色 ID。</p>
18220
+ :rtype: str
18221
+ """
18222
+ return self._VoiceId
18223
+
18224
+ @VoiceId.setter
18225
+ def VoiceId(self, VoiceId):
18226
+ self._VoiceId = VoiceId
18227
+
18228
+ @property
18229
+ def Speed(self):
18230
+ r"""<p>语速调节,0.5 为半速慢放,2.0 为两倍速快放,1.0 为正常语速,区间:[0.5, 2.0],默认1.0。</p>
18231
+ :rtype: float
18232
+ """
18233
+ return self._Speed
18234
+
18235
+ @Speed.setter
18236
+ def Speed(self, Speed):
18237
+ self._Speed = Speed
18238
+
18239
+ @property
18240
+ def Volume(self):
18241
+ r"""<p>音量调节,0 为静音,10 为最大音量,建议保持默认值 1.0,区间:[0, 10],默认1.0。</p>
18242
+ :rtype: float
18243
+ """
18244
+ return self._Volume
18245
+
18246
+ @Volume.setter
18247
+ def Volume(self, Volume):
18248
+ self._Volume = Volume
18249
+
18250
+ @property
18251
+ def Pitch(self):
18252
+ r"""<p>音高调节,负值声音更低沉,正值声音更尖锐,0 为原始音高,区间 [-12, 12],默认0。</p>
18253
+ :rtype: int
18254
+ """
18255
+ return self._Pitch
18256
+
18257
+ @Pitch.setter
18258
+ def Pitch(self, Pitch):
18259
+ self._Pitch = Pitch
18260
+
18261
+
18262
+ def _deserialize(self, params):
18263
+ self._VoiceId = params.get("VoiceId")
18264
+ self._Speed = params.get("Speed")
18265
+ self._Volume = params.get("Volume")
18266
+ self._Pitch = params.get("Pitch")
18267
+ memeber_set = set(params.keys())
18268
+ for name, value in vars(self).items():
18269
+ property_name = name[1:]
18270
+ if property_name in memeber_set:
18271
+ memeber_set.remove(property_name)
18272
+ if len(memeber_set) > 0:
18273
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
18274
+
18275
+
18276
+
18074
18277
  class TencentVod(AbstractModel):
18075
18278
  r"""腾讯云点播相关参数。
18076
18279
 
@@ -18231,6 +18434,57 @@ class TencentVod(AbstractModel):
18231
18434
 
18232
18435
 
18233
18436
 
18437
+ class TermPair(AbstractModel):
18438
+ r"""伴生转录术语表词组对
18439
+
18440
+ """
18441
+
18442
+ def __init__(self):
18443
+ r"""
18444
+ :param _Source: <p>源术语。</p>
18445
+ :type Source: str
18446
+ :param _Target: <p>目标术语翻译结果。</p>
18447
+ :type Target: str
18448
+ """
18449
+ self._Source = None
18450
+ self._Target = None
18451
+
18452
+ @property
18453
+ def Source(self):
18454
+ r"""<p>源术语。</p>
18455
+ :rtype: str
18456
+ """
18457
+ return self._Source
18458
+
18459
+ @Source.setter
18460
+ def Source(self, Source):
18461
+ self._Source = Source
18462
+
18463
+ @property
18464
+ def Target(self):
18465
+ r"""<p>目标术语翻译结果。</p>
18466
+ :rtype: str
18467
+ """
18468
+ return self._Target
18469
+
18470
+ @Target.setter
18471
+ def Target(self, Target):
18472
+ self._Target = Target
18473
+
18474
+
18475
+ def _deserialize(self, params):
18476
+ self._Source = params.get("Source")
18477
+ self._Target = params.get("Target")
18478
+ memeber_set = set(params.keys())
18479
+ for name, value in vars(self).items():
18480
+ property_name = name[1:]
18481
+ if property_name in memeber_set:
18482
+ memeber_set.remove(property_name)
18483
+ if len(memeber_set) > 0:
18484
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
18485
+
18486
+
18487
+
18234
18488
  class Terminology(AbstractModel):
18235
18489
  r"""翻译术语
18236
18490
 
@@ -18282,6 +18536,62 @@ class Terminology(AbstractModel):
18282
18536
 
18283
18537
 
18284
18538
 
18539
+ class TerminologyItem(AbstractModel):
18540
+ r"""伴生转录术语表项
18541
+
18542
+ """
18543
+
18544
+ def __init__(self):
18545
+ r"""
18546
+ :param _TargetLang: <p>翻译目标语言。</p>
18547
+ :type TargetLang: str
18548
+ :param _Terminology: <p>翻译目标语言对应的翻译术语配置。</p>
18549
+ :type Terminology: list of TermPair
18550
+ """
18551
+ self._TargetLang = None
18552
+ self._Terminology = None
18553
+
18554
+ @property
18555
+ def TargetLang(self):
18556
+ r"""<p>翻译目标语言。</p>
18557
+ :rtype: str
18558
+ """
18559
+ return self._TargetLang
18560
+
18561
+ @TargetLang.setter
18562
+ def TargetLang(self, TargetLang):
18563
+ self._TargetLang = TargetLang
18564
+
18565
+ @property
18566
+ def Terminology(self):
18567
+ r"""<p>翻译目标语言对应的翻译术语配置。</p>
18568
+ :rtype: list of TermPair
18569
+ """
18570
+ return self._Terminology
18571
+
18572
+ @Terminology.setter
18573
+ def Terminology(self, Terminology):
18574
+ self._Terminology = Terminology
18575
+
18576
+
18577
+ def _deserialize(self, params):
18578
+ self._TargetLang = params.get("TargetLang")
18579
+ if params.get("Terminology") is not None:
18580
+ self._Terminology = []
18581
+ for item in params.get("Terminology"):
18582
+ obj = TermPair()
18583
+ obj._deserialize(item)
18584
+ self._Terminology.append(obj)
18585
+ memeber_set = set(params.keys())
18586
+ for name, value in vars(self).items():
18587
+ property_name = name[1:]
18588
+ if property_name in memeber_set:
18589
+ memeber_set.remove(property_name)
18590
+ if len(memeber_set) > 0:
18591
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
18592
+
18593
+
18594
+
18285
18595
  class TextToSpeechRequest(AbstractModel):
18286
18596
  r"""TextToSpeech请求参数结构体
18287
18597
 
@@ -18289,32 +18599,26 @@ class TextToSpeechRequest(AbstractModel):
18289
18599
 
18290
18600
  def __init__(self):
18291
18601
  r"""
18292
- :param _Text: 需要转语音的文字内容,长度范围:[1, 255]
18602
+ :param _Text: <p>需要转语音的文字内容,长度范围:[1, 255]</p>
18293
18603
  :type Text: str
18294
- :param _Voice: 文本转语音的声音配置
18604
+ :param _Voice: <p>文本转语音的声音配置</p>
18295
18605
  :type Voice: :class:`tencentcloud.trtc.v20190722.models.Voice`
18296
- :param _SdkAppId: TRTC的SdkAppId
18606
+ :param _SdkAppId: <p>TRTC的SdkAppId</p>
18297
18607
  :type SdkAppId: int
18298
- :param _AudioFormat: 文本转语音的输出音频的格式
18608
+ :param _AudioFormat: <p>文本转语音的输出音频的格式</p>
18299
18609
  :type AudioFormat: :class:`tencentcloud.trtc.v20190722.models.AudioFormat`
18300
- :param _APIKey: TTS的API密钥
18610
+ :param _APIKey: <p>TTS的API密钥</p>
18301
18611
  :type APIKey: str
18302
- :param _Model: TTS的模型,当前固定为:flow_01_turbo
18612
+ :param _Model: <p>TTS的模型,当前固定为:flow_02_turbo</p><p>枚举值:</p><ul><li>flow_02_turbo: flow_02_turbo</li></ul>
18303
18613
  :type Model: str
18304
- :param _Language: 需要合成的语言(ISO 639-1),默认自动识别,支持的语言如下:
18305
- - zh(中文)
18306
- - en(英文)
18307
- - yue(粤语)
18308
- - ja(日语)
18309
- - ko(韩语)
18310
- - ar(阿拉伯语)
18311
- - id(印尼语)
18312
- - th(泰语)
18614
+ :param _Language: <p>需要合成的语言(ISO 639-1),默认自动识别,支持的语言如下:</p><ul><li>zh(中文)</li><li>en(英文)</li><li>yue(粤语)</li><li>ja(日语)</li><li>ko(韩语)</li><li>ar(阿拉伯语)</li><li>id(印尼语)</li><li>th(泰语)</li></ul>
18313
18615
  :type Language: str
18314
- :param _PronunciationDict: 多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。
18616
+ :param _PronunciationDict: <p>多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。</p>
18315
18617
  :type PronunciationDict: list of PronunciationDict
18316
- :param _AlignmentMode: 默认为0,0表示不生成字幕,1表示生成字幕
18618
+ :param _AlignmentMode: <p>默认为0,0表示不生成字幕,1表示生成字幕</p>
18317
18619
  :type AlignmentMode: int
18620
+ :param _ExtraParams: <p>json字符串,用于拓展用法</p>
18621
+ :type ExtraParams: str
18318
18622
  """
18319
18623
  self._Text = None
18320
18624
  self._Voice = None
@@ -18325,10 +18629,11 @@ class TextToSpeechRequest(AbstractModel):
18325
18629
  self._Language = None
18326
18630
  self._PronunciationDict = None
18327
18631
  self._AlignmentMode = None
18632
+ self._ExtraParams = None
18328
18633
 
18329
18634
  @property
18330
18635
  def Text(self):
18331
- r"""需要转语音的文字内容,长度范围:[1, 255]
18636
+ r"""<p>需要转语音的文字内容,长度范围:[1, 255]</p>
18332
18637
  :rtype: str
18333
18638
  """
18334
18639
  return self._Text
@@ -18339,7 +18644,7 @@ class TextToSpeechRequest(AbstractModel):
18339
18644
 
18340
18645
  @property
18341
18646
  def Voice(self):
18342
- r"""文本转语音的声音配置
18647
+ r"""<p>文本转语音的声音配置</p>
18343
18648
  :rtype: :class:`tencentcloud.trtc.v20190722.models.Voice`
18344
18649
  """
18345
18650
  return self._Voice
@@ -18350,7 +18655,7 @@ class TextToSpeechRequest(AbstractModel):
18350
18655
 
18351
18656
  @property
18352
18657
  def SdkAppId(self):
18353
- r"""TRTC的SdkAppId
18658
+ r"""<p>TRTC的SdkAppId</p>
18354
18659
  :rtype: int
18355
18660
  """
18356
18661
  return self._SdkAppId
@@ -18361,7 +18666,7 @@ class TextToSpeechRequest(AbstractModel):
18361
18666
 
18362
18667
  @property
18363
18668
  def AudioFormat(self):
18364
- r"""文本转语音的输出音频的格式
18669
+ r"""<p>文本转语音的输出音频的格式</p>
18365
18670
  :rtype: :class:`tencentcloud.trtc.v20190722.models.AudioFormat`
18366
18671
  """
18367
18672
  return self._AudioFormat
@@ -18374,7 +18679,7 @@ class TextToSpeechRequest(AbstractModel):
18374
18679
  def APIKey(self):
18375
18680
  warnings.warn("parameter `APIKey` is deprecated", DeprecationWarning)
18376
18681
 
18377
- r"""TTS的API密钥
18682
+ r"""<p>TTS的API密钥</p>
18378
18683
  :rtype: str
18379
18684
  """
18380
18685
  return self._APIKey
@@ -18387,7 +18692,7 @@ class TextToSpeechRequest(AbstractModel):
18387
18692
 
18388
18693
  @property
18389
18694
  def Model(self):
18390
- r"""TTS的模型,当前固定为:flow_01_turbo
18695
+ r"""<p>TTS的模型,当前固定为:flow_02_turbo</p><p>枚举值:</p><ul><li>flow_02_turbo: flow_02_turbo</li></ul>
18391
18696
  :rtype: str
18392
18697
  """
18393
18698
  return self._Model
@@ -18398,15 +18703,7 @@ class TextToSpeechRequest(AbstractModel):
18398
18703
 
18399
18704
  @property
18400
18705
  def Language(self):
18401
- r""" 需要合成的语言(ISO 639-1),默认自动识别,支持的语言如下:
18402
- - zh(中文)
18403
- - en(英文)
18404
- - yue(粤语)
18405
- - ja(日语)
18406
- - ko(韩语)
18407
- - ar(阿拉伯语)
18408
- - id(印尼语)
18409
- - th(泰语)
18706
+ r"""<p>需要合成的语言(ISO 639-1),默认自动识别,支持的语言如下:</p><ul><li>zh(中文)</li><li>en(英文)</li><li>yue(粤语)</li><li>ja(日语)</li><li>ko(韩语)</li><li>ar(阿拉伯语)</li><li>id(印尼语)</li><li>th(泰语)</li></ul>
18410
18707
  :rtype: str
18411
18708
  """
18412
18709
  return self._Language
@@ -18417,7 +18714,7 @@ class TextToSpeechRequest(AbstractModel):
18417
18714
 
18418
18715
  @property
18419
18716
  def PronunciationDict(self):
18420
- r"""多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。
18717
+ r"""<p>多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。</p>
18421
18718
  :rtype: list of PronunciationDict
18422
18719
  """
18423
18720
  return self._PronunciationDict
@@ -18428,7 +18725,7 @@ class TextToSpeechRequest(AbstractModel):
18428
18725
 
18429
18726
  @property
18430
18727
  def AlignmentMode(self):
18431
- r"""默认为0,0表示不生成字幕,1表示生成字幕
18728
+ r"""<p>默认为0,0表示不生成字幕,1表示生成字幕</p>
18432
18729
  :rtype: int
18433
18730
  """
18434
18731
  return self._AlignmentMode
@@ -18437,6 +18734,17 @@ class TextToSpeechRequest(AbstractModel):
18437
18734
  def AlignmentMode(self, AlignmentMode):
18438
18735
  self._AlignmentMode = AlignmentMode
18439
18736
 
18737
+ @property
18738
+ def ExtraParams(self):
18739
+ r"""<p>json字符串,用于拓展用法</p>
18740
+ :rtype: str
18741
+ """
18742
+ return self._ExtraParams
18743
+
18744
+ @ExtraParams.setter
18745
+ def ExtraParams(self, ExtraParams):
18746
+ self._ExtraParams = ExtraParams
18747
+
18440
18748
 
18441
18749
  def _deserialize(self, params):
18442
18750
  self._Text = params.get("Text")
@@ -18457,6 +18765,7 @@ class TextToSpeechRequest(AbstractModel):
18457
18765
  obj._deserialize(item)
18458
18766
  self._PronunciationDict.append(obj)
18459
18767
  self._AlignmentMode = params.get("AlignmentMode")
18768
+ self._ExtraParams = params.get("ExtraParams")
18460
18769
  memeber_set = set(params.keys())
18461
18770
  for name, value in vars(self).items():
18462
18771
  property_name = name[1:]
@@ -18474,11 +18783,11 @@ class TextToSpeechResponse(AbstractModel):
18474
18783
 
18475
18784
  def __init__(self):
18476
18785
  r"""
18477
- :param _Audio: Base64编码的音频数据
18786
+ :param _Audio: <p>Base64编码的音频数据</p>
18478
18787
  :type Audio: str
18479
- :param _Alignments: 字幕对齐数据
18788
+ :param _Alignments: <p>字幕对齐数据</p>
18480
18789
  :type Alignments: list of AlignmentItem
18481
- :param _TotalDurationMs: 音频时长
18790
+ :param _TotalDurationMs: <p>音频时长</p>
18482
18791
  :type TotalDurationMs: int
18483
18792
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
18484
18793
  :type RequestId: str
@@ -18490,7 +18799,7 @@ class TextToSpeechResponse(AbstractModel):
18490
18799
 
18491
18800
  @property
18492
18801
  def Audio(self):
18493
- r"""Base64编码的音频数据
18802
+ r"""<p>Base64编码的音频数据</p>
18494
18803
  :rtype: str
18495
18804
  """
18496
18805
  return self._Audio
@@ -18501,7 +18810,7 @@ class TextToSpeechResponse(AbstractModel):
18501
18810
 
18502
18811
  @property
18503
18812
  def Alignments(self):
18504
- r"""字幕对齐数据
18813
+ r"""<p>字幕对齐数据</p>
18505
18814
  :rtype: list of AlignmentItem
18506
18815
  """
18507
18816
  return self._Alignments
@@ -18512,7 +18821,7 @@ class TextToSpeechResponse(AbstractModel):
18512
18821
 
18513
18822
  @property
18514
18823
  def TotalDurationMs(self):
18515
- r"""音频时长
18824
+ r"""<p>音频时长</p>
18516
18825
  :rtype: int
18517
18826
  """
18518
18827
  return self._TotalDurationMs
@@ -18552,33 +18861,26 @@ class TextToSpeechSSERequest(AbstractModel):
18552
18861
 
18553
18862
  def __init__(self):
18554
18863
  r"""
18555
- :param _Text: 需要转语音的文字内容,长度范围:[1, 255]
18864
+ :param _Text: <p>需要转语音的文字内容,长度范围:[1, 255]</p>
18556
18865
  :type Text: str
18557
- :param _Voice: 文本转语音的声音配置
18866
+ :param _Voice: <p>文本转语音的声音配置</p>
18558
18867
  :type Voice: :class:`tencentcloud.trtc.v20190722.models.Voice`
18559
- :param _SdkAppId: TRTC的SdkAppId
18868
+ :param _SdkAppId: <p>TRTC的SdkAppId</p>
18560
18869
  :type SdkAppId: int
18561
- :param _AudioFormat: 文本转语音的输出音频的格式
18870
+ :param _AudioFormat: <p>文本转语音的输出音频的格式</p>
18562
18871
  :type AudioFormat: :class:`tencentcloud.trtc.v20190722.models.AudioFormat`
18563
- :param _APIKey: TTS的API密钥
18872
+ :param _APIKey: <p>TTS的API密钥</p>
18564
18873
  :type APIKey: str
18565
- :param _Model: TTS的模型,当前固定为:flow_01_turbo
18874
+ :param _Model: <p>TTS的模型,当前固定为:flow_02_turbo</p><p>枚举值:</p><ul><li>flow_02_turbo: flow_02_turbo</li></ul>
18566
18875
  :type Model: str
18567
- :param _Language: 需要合成的语言(ISO 639-1),默认自动识别,支持如下语言:
18568
- - zh(中文)
18569
- - en(英文)
18570
- - yue(粤语)
18571
- - ja(日语)
18572
- - ko(韩语)
18573
- - ar(阿拉伯语)
18574
- - id(印尼语)
18575
- - th(泰语)
18576
-
18876
+ :param _Language: <p>需要合成的语言(ISO 639-1),默认自动识别,支持如下语言:</p><ul><li>zh(中文)</li><li>en(英文)</li><li>yue(粤语)</li><li>ja(日语)</li><li>ko(韩语)</li><li>ar(阿拉伯语)</li><li>id(印尼语)</li><li>th(泰语)</li></ul>
18577
18877
  :type Language: str
18578
- :param _PronunciationDict: 多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。
18878
+ :param _PronunciationDict: <p>多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。</p>
18579
18879
  :type PronunciationDict: list of PronunciationDict
18580
- :param _AlignmentMode: 默认为0,0表示不生成字幕,1表示生成字幕
18880
+ :param _AlignmentMode: <p>默认为0,0表示不生成字幕,1表示生成字幕</p>
18581
18881
  :type AlignmentMode: int
18882
+ :param _ExtraParams: <p>json字符串,用于拓展用法</p>
18883
+ :type ExtraParams: str
18582
18884
  """
18583
18885
  self._Text = None
18584
18886
  self._Voice = None
@@ -18589,10 +18891,11 @@ class TextToSpeechSSERequest(AbstractModel):
18589
18891
  self._Language = None
18590
18892
  self._PronunciationDict = None
18591
18893
  self._AlignmentMode = None
18894
+ self._ExtraParams = None
18592
18895
 
18593
18896
  @property
18594
18897
  def Text(self):
18595
- r"""需要转语音的文字内容,长度范围:[1, 255]
18898
+ r"""<p>需要转语音的文字内容,长度范围:[1, 255]</p>
18596
18899
  :rtype: str
18597
18900
  """
18598
18901
  return self._Text
@@ -18603,7 +18906,7 @@ class TextToSpeechSSERequest(AbstractModel):
18603
18906
 
18604
18907
  @property
18605
18908
  def Voice(self):
18606
- r"""文本转语音的声音配置
18909
+ r"""<p>文本转语音的声音配置</p>
18607
18910
  :rtype: :class:`tencentcloud.trtc.v20190722.models.Voice`
18608
18911
  """
18609
18912
  return self._Voice
@@ -18614,7 +18917,7 @@ class TextToSpeechSSERequest(AbstractModel):
18614
18917
 
18615
18918
  @property
18616
18919
  def SdkAppId(self):
18617
- r"""TRTC的SdkAppId
18920
+ r"""<p>TRTC的SdkAppId</p>
18618
18921
  :rtype: int
18619
18922
  """
18620
18923
  return self._SdkAppId
@@ -18625,7 +18928,7 @@ class TextToSpeechSSERequest(AbstractModel):
18625
18928
 
18626
18929
  @property
18627
18930
  def AudioFormat(self):
18628
- r"""文本转语音的输出音频的格式
18931
+ r"""<p>文本转语音的输出音频的格式</p>
18629
18932
  :rtype: :class:`tencentcloud.trtc.v20190722.models.AudioFormat`
18630
18933
  """
18631
18934
  return self._AudioFormat
@@ -18638,7 +18941,7 @@ class TextToSpeechSSERequest(AbstractModel):
18638
18941
  def APIKey(self):
18639
18942
  warnings.warn("parameter `APIKey` is deprecated", DeprecationWarning)
18640
18943
 
18641
- r"""TTS的API密钥
18944
+ r"""<p>TTS的API密钥</p>
18642
18945
  :rtype: str
18643
18946
  """
18644
18947
  return self._APIKey
@@ -18651,7 +18954,7 @@ class TextToSpeechSSERequest(AbstractModel):
18651
18954
 
18652
18955
  @property
18653
18956
  def Model(self):
18654
- r"""TTS的模型,当前固定为:flow_01_turbo
18957
+ r"""<p>TTS的模型,当前固定为:flow_02_turbo</p><p>枚举值:</p><ul><li>flow_02_turbo: flow_02_turbo</li></ul>
18655
18958
  :rtype: str
18656
18959
  """
18657
18960
  return self._Model
@@ -18662,16 +18965,7 @@ class TextToSpeechSSERequest(AbstractModel):
18662
18965
 
18663
18966
  @property
18664
18967
  def Language(self):
18665
- r""" 需要合成的语言(ISO 639-1),默认自动识别,支持如下语言:
18666
- - zh(中文)
18667
- - en(英文)
18668
- - yue(粤语)
18669
- - ja(日语)
18670
- - ko(韩语)
18671
- - ar(阿拉伯语)
18672
- - id(印尼语)
18673
- - th(泰语)
18674
-
18968
+ r"""<p>需要合成的语言(ISO 639-1),默认自动识别,支持如下语言:</p><ul><li>zh(中文)</li><li>en(英文)</li><li>yue(粤语)</li><li>ja(日语)</li><li>ko(韩语)</li><li>ar(阿拉伯语)</li><li>id(印尼语)</li><li>th(泰语)</li></ul>
18675
18969
  :rtype: str
18676
18970
  """
18677
18971
  return self._Language
@@ -18682,7 +18976,7 @@ class TextToSpeechSSERequest(AbstractModel):
18682
18976
 
18683
18977
  @property
18684
18978
  def PronunciationDict(self):
18685
- r"""多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。
18979
+ r"""<p>多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。</p>
18686
18980
  :rtype: list of PronunciationDict
18687
18981
  """
18688
18982
  return self._PronunciationDict
@@ -18693,7 +18987,7 @@ class TextToSpeechSSERequest(AbstractModel):
18693
18987
 
18694
18988
  @property
18695
18989
  def AlignmentMode(self):
18696
- r"""默认为0,0表示不生成字幕,1表示生成字幕
18990
+ r"""<p>默认为0,0表示不生成字幕,1表示生成字幕</p>
18697
18991
  :rtype: int
18698
18992
  """
18699
18993
  return self._AlignmentMode
@@ -18702,6 +18996,17 @@ class TextToSpeechSSERequest(AbstractModel):
18702
18996
  def AlignmentMode(self, AlignmentMode):
18703
18997
  self._AlignmentMode = AlignmentMode
18704
18998
 
18999
+ @property
19000
+ def ExtraParams(self):
19001
+ r"""<p>json字符串,用于拓展用法</p>
19002
+ :rtype: str
19003
+ """
19004
+ return self._ExtraParams
19005
+
19006
+ @ExtraParams.setter
19007
+ def ExtraParams(self, ExtraParams):
19008
+ self._ExtraParams = ExtraParams
19009
+
18705
19010
 
18706
19011
  def _deserialize(self, params):
18707
19012
  self._Text = params.get("Text")
@@ -18722,6 +19027,7 @@ class TextToSpeechSSERequest(AbstractModel):
18722
19027
  obj._deserialize(item)
18723
19028
  self._PronunciationDict.append(obj)
18724
19029
  self._AlignmentMode = params.get("AlignmentMode")
19030
+ self._ExtraParams = params.get("ExtraParams")
18725
19031
  memeber_set = set(params.keys())
18726
19032
  for name, value in vars(self).items():
18727
19033
  property_name = name[1:]
@@ -19260,14 +19566,17 @@ class TranslationParam(AbstractModel):
19260
19566
 
19261
19567
  def __init__(self):
19262
19568
  r"""
19263
- :param _TargetLang: 翻译的目标语言,示例值["en", "ja"]。目标语种列表[中文 "zh",英语 "en",越南语 "vi",日语 "ja",韩语 "ko",印度尼西亚语 "id",泰语 "th",葡萄牙语 "pt",阿拉伯语 "ar",西班牙语 "es",法语 "fr",马来语 "ms",德语 "de",意大利语 "it",俄语 "ru"]
19569
+ :param _TargetLang: <p>翻译的目标语言,示例值[&quot;en&quot;, &quot;ja&quot;]。目标语种列表[中文 &quot;zh&quot;,英语 &quot;en&quot;,越南语 &quot;vi&quot;,日语 &quot;ja&quot;,韩语 &quot;ko&quot;,印度尼西亚语 &quot;id&quot;,泰语 &quot;th&quot;,葡萄牙语 &quot;pt&quot;,阿拉伯语 &quot;ar&quot;,西班牙语 &quot;es&quot;,法语 &quot;fr&quot;,马来语 &quot;ms&quot;,德语 &quot;de&quot;,意大利语 &quot;it&quot;,俄语 &quot;ru&quot;]。</p>
19264
19570
  :type TargetLang: list of str
19571
+ :param _Terminologies: <p>翻译术语表配置。</p>
19572
+ :type Terminologies: list of TerminologyItem
19265
19573
  """
19266
19574
  self._TargetLang = None
19575
+ self._Terminologies = None
19267
19576
 
19268
19577
  @property
19269
19578
  def TargetLang(self):
19270
- r"""翻译的目标语言,示例值["en", "ja"]。目标语种列表[中文 "zh",英语 "en",越南语 "vi",日语 "ja",韩语 "ko",印度尼西亚语 "id",泰语 "th",葡萄牙语 "pt",阿拉伯语 "ar",西班牙语 "es",法语 "fr",马来语 "ms",德语 "de",意大利语 "it",俄语 "ru"]
19579
+ r"""<p>翻译的目标语言,示例值[&quot;en&quot;, &quot;ja&quot;]。目标语种列表[中文 &quot;zh&quot;,英语 &quot;en&quot;,越南语 &quot;vi&quot;,日语 &quot;ja&quot;,韩语 &quot;ko&quot;,印度尼西亚语 &quot;id&quot;,泰语 &quot;th&quot;,葡萄牙语 &quot;pt&quot;,阿拉伯语 &quot;ar&quot;,西班牙语 &quot;es&quot;,法语 &quot;fr&quot;,马来语 &quot;ms&quot;,德语 &quot;de&quot;,意大利语 &quot;it&quot;,俄语 &quot;ru&quot;]。</p>
19271
19580
  :rtype: list of str
19272
19581
  """
19273
19582
  return self._TargetLang
@@ -19276,9 +19585,26 @@ class TranslationParam(AbstractModel):
19276
19585
  def TargetLang(self, TargetLang):
19277
19586
  self._TargetLang = TargetLang
19278
19587
 
19588
+ @property
19589
+ def Terminologies(self):
19590
+ r"""<p>翻译术语表配置。</p>
19591
+ :rtype: list of TerminologyItem
19592
+ """
19593
+ return self._Terminologies
19594
+
19595
+ @Terminologies.setter
19596
+ def Terminologies(self, Terminologies):
19597
+ self._Terminologies = Terminologies
19598
+
19279
19599
 
19280
19600
  def _deserialize(self, params):
19281
19601
  self._TargetLang = params.get("TargetLang")
19602
+ if params.get("Terminologies") is not None:
19603
+ self._Terminologies = []
19604
+ for item in params.get("Terminologies"):
19605
+ obj = TerminologyItem()
19606
+ obj._deserialize(item)
19607
+ self._Terminologies.append(obj)
19282
19608
  memeber_set = set(params.keys())
19283
19609
  for name, value in vars(self).items():
19284
19610
  property_name = name[1:]
@@ -20629,23 +20955,26 @@ class Voice(AbstractModel):
20629
20955
 
20630
20956
  def __init__(self):
20631
20957
  r"""
20632
- :param _VoiceId: 音色 ID,可从音色列表获取,或使用声音克隆生成的自定义音色 ID
20958
+ :param _VoiceId: <p>音色 ID,可从音色列表获取,或使用声音克隆生成的自定义音色 ID</p>
20633
20959
  :type VoiceId: str
20634
- :param _Speed: 语速调节,0.5 为半速慢放,2.0 为两倍速快放,1.0 为正常语速,区间:[0.5, 2.0],默认1.0
20960
+ :param _Speed: <p>语速调节,0.5 为半速慢放,2.0 为两倍速快放,1.0 为正常语速,区间:[0.5, 2.0],默认1.0</p>
20635
20961
  :type Speed: float
20636
- :param _Volume: 音量调节,0 为静音,10 为最大音量,建议保持默认值 1.0,区间:[0, 10],默认1.0
20962
+ :param _Volume: <p>音量调节,0 为静音,10 为最大音量,建议保持默认值 1.0,区间:[0, 10],默认1.0</p>
20637
20963
  :type Volume: float
20638
- :param _Pitch: 音高调节,负值声音更低沉,正值声音更尖锐,0 为原始音高,区间 [-12, 12], 默认0
20964
+ :param _Pitch: <p>音高调节,负值声音更低沉,正值声音更尖锐,0 为原始音高,区间 [-12, 12], 默认0</p>
20639
20965
  :type Pitch: int
20966
+ :param _Emotion: <p>情绪控制,目前仅flow_01_ex模型支持</p><p>枚举值:</p><ul><li>happy: 高兴</li><li>sad: 悲伤</li><li>angry: 愤怒</li><li>fearful: 害怕</li><li>disgusted: 厌恶</li><li>surprised: 惊讶</li><li>calm: 中性</li><li>fluent: 生动</li><li>whisper: 低语</li></ul>
20967
+ :type Emotion: str
20640
20968
  """
20641
20969
  self._VoiceId = None
20642
20970
  self._Speed = None
20643
20971
  self._Volume = None
20644
20972
  self._Pitch = None
20973
+ self._Emotion = None
20645
20974
 
20646
20975
  @property
20647
20976
  def VoiceId(self):
20648
- r""" 音色 ID,可从音色列表获取,或使用声音克隆生成的自定义音色 ID
20977
+ r"""<p>音色 ID,可从音色列表获取,或使用声音克隆生成的自定义音色 ID</p>
20649
20978
  :rtype: str
20650
20979
  """
20651
20980
  return self._VoiceId
@@ -20656,7 +20985,7 @@ class Voice(AbstractModel):
20656
20985
 
20657
20986
  @property
20658
20987
  def Speed(self):
20659
- r"""语速调节,0.5 为半速慢放,2.0 为两倍速快放,1.0 为正常语速,区间:[0.5, 2.0],默认1.0
20988
+ r"""<p>语速调节,0.5 为半速慢放,2.0 为两倍速快放,1.0 为正常语速,区间:[0.5, 2.0],默认1.0</p>
20660
20989
  :rtype: float
20661
20990
  """
20662
20991
  return self._Speed
@@ -20667,7 +20996,7 @@ class Voice(AbstractModel):
20667
20996
 
20668
20997
  @property
20669
20998
  def Volume(self):
20670
- r""" 音量调节,0 为静音,10 为最大音量,建议保持默认值 1.0,区间:[0, 10],默认1.0
20999
+ r"""<p>音量调节,0 为静音,10 为最大音量,建议保持默认值 1.0,区间:[0, 10],默认1.0</p>
20671
21000
  :rtype: float
20672
21001
  """
20673
21002
  return self._Volume
@@ -20678,7 +21007,7 @@ class Voice(AbstractModel):
20678
21007
 
20679
21008
  @property
20680
21009
  def Pitch(self):
20681
- r""" 音高调节,负值声音更低沉,正值声音更尖锐,0 为原始音高,区间 [-12, 12], 默认0
21010
+ r"""<p>音高调节,负值声音更低沉,正值声音更尖锐,0 为原始音高,区间 [-12, 12], 默认0</p>
20682
21011
  :rtype: int
20683
21012
  """
20684
21013
  return self._Pitch
@@ -20687,12 +21016,24 @@ class Voice(AbstractModel):
20687
21016
  def Pitch(self, Pitch):
20688
21017
  self._Pitch = Pitch
20689
21018
 
21019
+ @property
21020
+ def Emotion(self):
21021
+ r"""<p>情绪控制,目前仅flow_01_ex模型支持</p><p>枚举值:</p><ul><li>happy: 高兴</li><li>sad: 悲伤</li><li>angry: 愤怒</li><li>fearful: 害怕</li><li>disgusted: 厌恶</li><li>surprised: 惊讶</li><li>calm: 中性</li><li>fluent: 生动</li><li>whisper: 低语</li></ul>
21022
+ :rtype: str
21023
+ """
21024
+ return self._Emotion
21025
+
21026
+ @Emotion.setter
21027
+ def Emotion(self, Emotion):
21028
+ self._Emotion = Emotion
21029
+
20690
21030
 
20691
21031
  def _deserialize(self, params):
20692
21032
  self._VoiceId = params.get("VoiceId")
20693
21033
  self._Speed = params.get("Speed")
20694
21034
  self._Volume = params.get("Volume")
20695
21035
  self._Pitch = params.get("Pitch")
21036
+ self._Emotion = params.get("Emotion")
20696
21037
  memeber_set = set(params.keys())
20697
21038
  for name, value in vars(self).items():
20698
21039
  property_name = name[1:]
@@ -20710,19 +21051,19 @@ class VoiceCloneRequest(AbstractModel):
20710
21051
 
20711
21052
  def __init__(self):
20712
21053
  r"""
20713
- :param _SdkAppId: TRTC的SdkAppId
21054
+ :param _SdkAppId: <p>TRTC的SdkAppId</p>
20714
21055
  :type SdkAppId: int
20715
- :param _VoiceName: 声音克隆的名称, 只允许使用数字、字母、下划线,不能超过36
21056
+ :param _VoiceName: <p>声音克隆的名称, 只允许使用数字、字母、下划线,不能超过36位</p>
20716
21057
  :type VoiceName: str
20717
- :param _PromptAudio: 声音克隆的参考音频,必须为16k单声道的wav的base64字符串, 长度在6秒~180秒之间
21058
+ :param _PromptAudio: <p>声音克隆的参考音频,必须为16k单声道的wav的base64字符串, 长度在6秒~180秒之间</p>
20718
21059
  :type PromptAudio: str
20719
- :param _APIKey: TTS的API密钥
21060
+ :param _APIKey: <p>TTS的API密钥</p>
20720
21061
  :type APIKey: str
20721
- :param _PromptText: 声音克隆的参考文本,为参考音频对应的文字。
21062
+ :param _PromptText: <p>声音克隆的参考文本,为参考音频对应的文字。</p>
20722
21063
  :type PromptText: str
20723
- :param _Model: TTS的模型:flow_01_turbo,flow_01_ex
21064
+ :param _Model: <p>TTS的模型:flow_02_turbo,flow_01_ex</p><p>枚举值:</p><ul><li>flow_02_turbo: flow_02_turbo</li><li>flow_01_ex: flow_01_ex</li></ul>
20724
21065
  :type Model: str
20725
- :param _Language: 语言参数,默认为空, 参考: (ISO 639-1)
21066
+ :param _Language: <p>语言参数,默认为空, 参考: (ISO 639-1)</p>
20726
21067
  :type Language: str
20727
21068
  """
20728
21069
  self._SdkAppId = None
@@ -20735,7 +21076,7 @@ class VoiceCloneRequest(AbstractModel):
20735
21076
 
20736
21077
  @property
20737
21078
  def SdkAppId(self):
20738
- r"""TRTC的SdkAppId
21079
+ r"""<p>TRTC的SdkAppId</p>
20739
21080
  :rtype: int
20740
21081
  """
20741
21082
  return self._SdkAppId
@@ -20746,7 +21087,7 @@ class VoiceCloneRequest(AbstractModel):
20746
21087
 
20747
21088
  @property
20748
21089
  def VoiceName(self):
20749
- r"""声音克隆的名称, 只允许使用数字、字母、下划线,不能超过36
21090
+ r"""<p>声音克隆的名称, 只允许使用数字、字母、下划线,不能超过36位</p>
20750
21091
  :rtype: str
20751
21092
  """
20752
21093
  return self._VoiceName
@@ -20757,7 +21098,7 @@ class VoiceCloneRequest(AbstractModel):
20757
21098
 
20758
21099
  @property
20759
21100
  def PromptAudio(self):
20760
- r"""声音克隆的参考音频,必须为16k单声道的wav的base64字符串, 长度在6秒~180秒之间
21101
+ r"""<p>声音克隆的参考音频,必须为16k单声道的wav的base64字符串, 长度在6秒~180秒之间</p>
20761
21102
  :rtype: str
20762
21103
  """
20763
21104
  return self._PromptAudio
@@ -20770,7 +21111,7 @@ class VoiceCloneRequest(AbstractModel):
20770
21111
  def APIKey(self):
20771
21112
  warnings.warn("parameter `APIKey` is deprecated", DeprecationWarning)
20772
21113
 
20773
- r"""TTS的API密钥
21114
+ r"""<p>TTS的API密钥</p>
20774
21115
  :rtype: str
20775
21116
  """
20776
21117
  return self._APIKey
@@ -20783,7 +21124,7 @@ class VoiceCloneRequest(AbstractModel):
20783
21124
 
20784
21125
  @property
20785
21126
  def PromptText(self):
20786
- r"""声音克隆的参考文本,为参考音频对应的文字。
21127
+ r"""<p>声音克隆的参考文本,为参考音频对应的文字。</p>
20787
21128
  :rtype: str
20788
21129
  """
20789
21130
  return self._PromptText
@@ -20794,7 +21135,7 @@ class VoiceCloneRequest(AbstractModel):
20794
21135
 
20795
21136
  @property
20796
21137
  def Model(self):
20797
- r"""TTS的模型:flow_01_turbo,flow_01_ex
21138
+ r"""<p>TTS的模型:flow_02_turbo,flow_01_ex</p><p>枚举值:</p><ul><li>flow_02_turbo: flow_02_turbo</li><li>flow_01_ex: flow_01_ex</li></ul>
20798
21139
  :rtype: str
20799
21140
  """
20800
21141
  return self._Model
@@ -20805,7 +21146,7 @@ class VoiceCloneRequest(AbstractModel):
20805
21146
 
20806
21147
  @property
20807
21148
  def Language(self):
20808
- r"""语言参数,默认为空, 参考: (ISO 639-1)
21149
+ r"""<p>语言参数,默认为空, 参考: (ISO 639-1)</p>
20809
21150
  :rtype: str
20810
21151
  """
20811
21152
  return self._Language
@@ -20840,7 +21181,7 @@ class VoiceCloneResponse(AbstractModel):
20840
21181
 
20841
21182
  def __init__(self):
20842
21183
  r"""
20843
- :param _VoiceId: 克隆出的音色ID,可以用此id进行语音合成
21184
+ :param _VoiceId: <p>克隆出的音色ID,可以用此id进行语音合成</p>
20844
21185
  :type VoiceId: str
20845
21186
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20846
21187
  :type RequestId: str
@@ -20850,7 +21191,7 @@ class VoiceCloneResponse(AbstractModel):
20850
21191
 
20851
21192
  @property
20852
21193
  def VoiceId(self):
20853
- r"""克隆出的音色ID,可以用此id进行语音合成
21194
+ r"""<p>克隆出的音色ID,可以用此id进行语音合成</p>
20854
21195
  :rtype: str
20855
21196
  """
20856
21197
  return self._VoiceId
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.1.105
3
+ Version: 3.1.112
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.105
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.112
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.112
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.105