tencentcloud-sdk-python-mps 3.1.162__py2.py3-none-any.whl → 3.1.166__py2.py3-none-any.whl

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.
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.162'
17
+ __version__ = '3.1.166'
@@ -17640,6 +17640,192 @@ class BlindWatermarkTemplate(AbstractModel):
17640
17640
 
17641
17641
 
17642
17642
 
17643
+ class ChangeVoiceRequest(AbstractModel):
17644
+ r"""ChangeVoice请求参数结构体
17645
+
17646
+ """
17647
+
17648
+ def __init__(self):
17649
+ r"""
17650
+ :param _AudioData: <p>待转换音频base64编码</p>
17651
+ :type AudioData: str
17652
+ :param _AudioUrl: <p>待转换音频Url,AudioData为空时有效</p>
17653
+ :type AudioUrl: str
17654
+ :param _VoiceId: <p>音色ID</p>
17655
+ :type VoiceId: str
17656
+ :param _Output: <p>输出相关参数</p>
17657
+ :type Output: :class:`tencentcloud.mps.v20190612.models.SyncDubbingOutputOption`
17658
+ :param _ExtParam: <p>扩展参数,json字符串</p>
17659
+ :type ExtParam: str
17660
+ """
17661
+ self._AudioData = None
17662
+ self._AudioUrl = None
17663
+ self._VoiceId = None
17664
+ self._Output = None
17665
+ self._ExtParam = None
17666
+
17667
+ @property
17668
+ def AudioData(self):
17669
+ r"""<p>待转换音频base64编码</p>
17670
+ :rtype: str
17671
+ """
17672
+ return self._AudioData
17673
+
17674
+ @AudioData.setter
17675
+ def AudioData(self, AudioData):
17676
+ self._AudioData = AudioData
17677
+
17678
+ @property
17679
+ def AudioUrl(self):
17680
+ r"""<p>待转换音频Url,AudioData为空时有效</p>
17681
+ :rtype: str
17682
+ """
17683
+ return self._AudioUrl
17684
+
17685
+ @AudioUrl.setter
17686
+ def AudioUrl(self, AudioUrl):
17687
+ self._AudioUrl = AudioUrl
17688
+
17689
+ @property
17690
+ def VoiceId(self):
17691
+ r"""<p>音色ID</p>
17692
+ :rtype: str
17693
+ """
17694
+ return self._VoiceId
17695
+
17696
+ @VoiceId.setter
17697
+ def VoiceId(self, VoiceId):
17698
+ self._VoiceId = VoiceId
17699
+
17700
+ @property
17701
+ def Output(self):
17702
+ r"""<p>输出相关参数</p>
17703
+ :rtype: :class:`tencentcloud.mps.v20190612.models.SyncDubbingOutputOption`
17704
+ """
17705
+ return self._Output
17706
+
17707
+ @Output.setter
17708
+ def Output(self, Output):
17709
+ self._Output = Output
17710
+
17711
+ @property
17712
+ def ExtParam(self):
17713
+ r"""<p>扩展参数,json字符串</p>
17714
+ :rtype: str
17715
+ """
17716
+ return self._ExtParam
17717
+
17718
+ @ExtParam.setter
17719
+ def ExtParam(self, ExtParam):
17720
+ self._ExtParam = ExtParam
17721
+
17722
+
17723
+ def _deserialize(self, params):
17724
+ self._AudioData = params.get("AudioData")
17725
+ self._AudioUrl = params.get("AudioUrl")
17726
+ self._VoiceId = params.get("VoiceId")
17727
+ if params.get("Output") is not None:
17728
+ self._Output = SyncDubbingOutputOption()
17729
+ self._Output._deserialize(params.get("Output"))
17730
+ self._ExtParam = params.get("ExtParam")
17731
+ memeber_set = set(params.keys())
17732
+ for name, value in vars(self).items():
17733
+ property_name = name[1:]
17734
+ if property_name in memeber_set:
17735
+ memeber_set.remove(property_name)
17736
+ if len(memeber_set) > 0:
17737
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
17738
+
17739
+
17740
+
17741
+ class ChangeVoiceResponse(AbstractModel):
17742
+ r"""ChangeVoice返回参数结构体
17743
+
17744
+ """
17745
+
17746
+ def __init__(self):
17747
+ r"""
17748
+ :param _ErrorCode: <p>错误码,成功时返回0</p>
17749
+ :type ErrorCode: int
17750
+ :param _Msg: <p>错误信息,成功时返回success</p>
17751
+ :type Msg: str
17752
+ :param _AudioData: <p>结果音频的base64编码,默认mp3格式</p>
17753
+ :type AudioData: str
17754
+ :param _AudioUrl: <p>结果音频url,有效期24小时</p>
17755
+ :type AudioUrl: str
17756
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
17757
+ :type RequestId: str
17758
+ """
17759
+ self._ErrorCode = None
17760
+ self._Msg = None
17761
+ self._AudioData = None
17762
+ self._AudioUrl = None
17763
+ self._RequestId = None
17764
+
17765
+ @property
17766
+ def ErrorCode(self):
17767
+ r"""<p>错误码,成功时返回0</p>
17768
+ :rtype: int
17769
+ """
17770
+ return self._ErrorCode
17771
+
17772
+ @ErrorCode.setter
17773
+ def ErrorCode(self, ErrorCode):
17774
+ self._ErrorCode = ErrorCode
17775
+
17776
+ @property
17777
+ def Msg(self):
17778
+ r"""<p>错误信息,成功时返回success</p>
17779
+ :rtype: str
17780
+ """
17781
+ return self._Msg
17782
+
17783
+ @Msg.setter
17784
+ def Msg(self, Msg):
17785
+ self._Msg = Msg
17786
+
17787
+ @property
17788
+ def AudioData(self):
17789
+ r"""<p>结果音频的base64编码,默认mp3格式</p>
17790
+ :rtype: str
17791
+ """
17792
+ return self._AudioData
17793
+
17794
+ @AudioData.setter
17795
+ def AudioData(self, AudioData):
17796
+ self._AudioData = AudioData
17797
+
17798
+ @property
17799
+ def AudioUrl(self):
17800
+ r"""<p>结果音频url,有效期24小时</p>
17801
+ :rtype: str
17802
+ """
17803
+ return self._AudioUrl
17804
+
17805
+ @AudioUrl.setter
17806
+ def AudioUrl(self, AudioUrl):
17807
+ self._AudioUrl = AudioUrl
17808
+
17809
+ @property
17810
+ def RequestId(self):
17811
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
17812
+ :rtype: str
17813
+ """
17814
+ return self._RequestId
17815
+
17816
+ @RequestId.setter
17817
+ def RequestId(self, RequestId):
17818
+ self._RequestId = RequestId
17819
+
17820
+
17821
+ def _deserialize(self, params):
17822
+ self._ErrorCode = params.get("ErrorCode")
17823
+ self._Msg = params.get("Msg")
17824
+ self._AudioData = params.get("AudioData")
17825
+ self._AudioUrl = params.get("AudioUrl")
17826
+ self._RequestId = params.get("RequestId")
17827
+
17828
+
17643
17829
  class ChannelAlertResp(AbstractModel):
17644
17830
  r"""线性组装频道告警返回信息。
17645
17831
 
@@ -45074,7 +45260,7 @@ class DescribeTextToSpeechAsyncTaskResponse(AbstractModel):
45074
45260
 
45075
45261
  def __init__(self):
45076
45262
  r"""
45077
- :param _ErrorCode: <p>错误码,成功时返回0</p>
45263
+ :param _ErrorCode: <p>错误码,成功时返回0,处理中返回100</p>
45078
45264
  :type ErrorCode: int
45079
45265
  :param _Msg: <p>错误信息,成功时返回success</p>
45080
45266
  :type Msg: str
@@ -45099,7 +45285,7 @@ class DescribeTextToSpeechAsyncTaskResponse(AbstractModel):
45099
45285
 
45100
45286
  @property
45101
45287
  def ErrorCode(self):
45102
- r"""<p>错误码,成功时返回0</p>
45288
+ r"""<p>错误码,成功时返回0,处理中返回100</p>
45103
45289
  :rtype: int
45104
45290
  """
45105
45291
  return self._ErrorCode
@@ -63280,44 +63466,35 @@ class MediaTranscodeItem(AbstractModel):
63280
63466
 
63281
63467
  def __init__(self):
63282
63468
  r"""
63283
- :param _OutputStorage: 转码后文件的目标存储。
63469
+ :param _OutputStorage: <p>转码后文件的目标存储。</p>
63284
63470
  :type OutputStorage: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
63285
- :param _Path: 转码后的视频文件路径。
63471
+ :param _Path: <p>转码后的视频文件路径。</p>
63286
63472
  :type Path: str
63287
- :param _Definition: 转码规格 ID,参见[转码参数模板](https://cloud.tencent.com/document/product/862/37042)。
63473
+ :param _Definition: <p>转码规格 ID,参见<a href="https://cloud.tencent.com/document/product/862/37042">转码参数模板</a>。</p>
63288
63474
  :type Definition: int
63289
- :param _Bitrate: 视频流码率平均值与音频流码率平均值之和, 单位:bps。
63475
+ :param _Bitrate: <p>视频流码率平均值与音频流码率平均值之和, 单位:bps。</p>
63290
63476
  :type Bitrate: int
63291
- :param _Height: 视频流高度的最大值,单位:px。
63477
+ :param _Height: <p>视频流高度的最大值,单位:px。</p>
63292
63478
  :type Height: int
63293
- :param _Width: 视频流宽度的最大值,单位:px。
63479
+ :param _Width: <p>视频流宽度的最大值,单位:px。</p>
63294
63480
  :type Width: int
63295
- :param _Size: 媒体文件总大小(视频为 HLS 时,大小是 m3u8 和 ts 文件大小的总和),单位:字节。
63481
+ :param _Size: <p>媒体文件总大小(视频为 HLS 时,大小是 m3u8 和 ts 文件大小的总和),单位:字节。</p>
63296
63482
  :type Size: int
63297
- :param _Duration: 视频时长,单位:秒。
63483
+ :param _Duration: <p>视频时长,单位:秒。</p>
63298
63484
  :type Duration: float
63299
- :param _Container: 容器类型,例如 m4a,mp4 等。
63485
+ :param _Container: <p>容器类型,例如 m4a,mp4 等。</p>
63300
63486
  :type Container: str
63301
- :param _Md5: 视频的 md5 值。
63487
+ :param _Md5: <p>视频的 md5 值。</p>
63302
63488
  :type Md5: str
63303
- :param _AudioStreamSet: 音频流信息。
63489
+ :param _AudioStreamSet: <p>音频流信息。</p>
63304
63490
  :type AudioStreamSet: list of MediaAudioStreamItem
63305
- :param _VideoStreamSet: 视频流信息。
63491
+ :param _VideoStreamSet: <p>视频流信息。</p>
63306
63492
  :type VideoStreamSet: list of MediaVideoStreamItem
63307
- :param _CallBackExtInfo: 视频转码使用增强项说明,增强项解释
63308
- <li>hdr:HDR配置</li>
63309
- <li>wd_fps:插帧帧率配置</li>
63310
- <li>video_super_resolution: 超分配置</li>
63311
- <li>repair:综合增强配置</li>
63312
- <li>denoise:视频降噪配置</li>
63313
- <li>color_enhance:色彩增强配置</li>
63314
- <li>scratch:去划痕配置</li>
63315
- <li>artifact:去伪影(毛刺)配置</li>
63316
- <li>sharp:细节增强配置</li>
63317
- <li>low_light:低光照增强配置</li>
63318
- <li>face_enhance:人脸增强配置</li>
63493
+ :param _CallBackExtInfo: <p>视频转码使用增强项说明,增强项解释</p><li>hdr:HDR配置</li><li>wd_fps:插帧帧率配置</li><li>video_super_resolution: 超分配置</li><li>repair:综合增强配置</li><li>denoise:视频降噪配置</li><li>color_enhance:色彩增强配置</li><li>scratch:去划痕配置</li><li>artifact:去伪影(毛刺)配置</li><li>sharp:细节增强配置</li><li>low_light:低光照增强配置</li><li>face_enhance:人脸增强配置</li>
63319
63494
  注意:此字段可能返回 null,表示取不到有效值。
63320
63495
  :type CallBackExtInfo: str
63496
+ :param _Usage: <p>MediaTranscodeItem</p>
63497
+ :type Usage: :class:`tencentcloud.mps.v20190612.models.MediaUsageItem`
63321
63498
  """
63322
63499
  self._OutputStorage = None
63323
63500
  self._Path = None
@@ -63332,10 +63509,11 @@ class MediaTranscodeItem(AbstractModel):
63332
63509
  self._AudioStreamSet = None
63333
63510
  self._VideoStreamSet = None
63334
63511
  self._CallBackExtInfo = None
63512
+ self._Usage = None
63335
63513
 
63336
63514
  @property
63337
63515
  def OutputStorage(self):
63338
- r"""转码后文件的目标存储。
63516
+ r"""<p>转码后文件的目标存储。</p>
63339
63517
  :rtype: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
63340
63518
  """
63341
63519
  return self._OutputStorage
@@ -63346,7 +63524,7 @@ class MediaTranscodeItem(AbstractModel):
63346
63524
 
63347
63525
  @property
63348
63526
  def Path(self):
63349
- r"""转码后的视频文件路径。
63527
+ r"""<p>转码后的视频文件路径。</p>
63350
63528
  :rtype: str
63351
63529
  """
63352
63530
  return self._Path
@@ -63357,7 +63535,7 @@ class MediaTranscodeItem(AbstractModel):
63357
63535
 
63358
63536
  @property
63359
63537
  def Definition(self):
63360
- r"""转码规格 ID,参见[转码参数模板](https://cloud.tencent.com/document/product/862/37042)。
63538
+ r"""<p>转码规格 ID,参见<a href="https://cloud.tencent.com/document/product/862/37042">转码参数模板</a>。</p>
63361
63539
  :rtype: int
63362
63540
  """
63363
63541
  return self._Definition
@@ -63368,7 +63546,7 @@ class MediaTranscodeItem(AbstractModel):
63368
63546
 
63369
63547
  @property
63370
63548
  def Bitrate(self):
63371
- r"""视频流码率平均值与音频流码率平均值之和, 单位:bps。
63549
+ r"""<p>视频流码率平均值与音频流码率平均值之和, 单位:bps。</p>
63372
63550
  :rtype: int
63373
63551
  """
63374
63552
  return self._Bitrate
@@ -63379,7 +63557,7 @@ class MediaTranscodeItem(AbstractModel):
63379
63557
 
63380
63558
  @property
63381
63559
  def Height(self):
63382
- r"""视频流高度的最大值,单位:px。
63560
+ r"""<p>视频流高度的最大值,单位:px。</p>
63383
63561
  :rtype: int
63384
63562
  """
63385
63563
  return self._Height
@@ -63390,7 +63568,7 @@ class MediaTranscodeItem(AbstractModel):
63390
63568
 
63391
63569
  @property
63392
63570
  def Width(self):
63393
- r"""视频流宽度的最大值,单位:px。
63571
+ r"""<p>视频流宽度的最大值,单位:px。</p>
63394
63572
  :rtype: int
63395
63573
  """
63396
63574
  return self._Width
@@ -63401,7 +63579,7 @@ class MediaTranscodeItem(AbstractModel):
63401
63579
 
63402
63580
  @property
63403
63581
  def Size(self):
63404
- r"""媒体文件总大小(视频为 HLS 时,大小是 m3u8 和 ts 文件大小的总和),单位:字节。
63582
+ r"""<p>媒体文件总大小(视频为 HLS 时,大小是 m3u8 和 ts 文件大小的总和),单位:字节。</p>
63405
63583
  :rtype: int
63406
63584
  """
63407
63585
  return self._Size
@@ -63412,7 +63590,7 @@ class MediaTranscodeItem(AbstractModel):
63412
63590
 
63413
63591
  @property
63414
63592
  def Duration(self):
63415
- r"""视频时长,单位:秒。
63593
+ r"""<p>视频时长,单位:秒。</p>
63416
63594
  :rtype: float
63417
63595
  """
63418
63596
  return self._Duration
@@ -63423,7 +63601,7 @@ class MediaTranscodeItem(AbstractModel):
63423
63601
 
63424
63602
  @property
63425
63603
  def Container(self):
63426
- r"""容器类型,例如 m4a,mp4 等。
63604
+ r"""<p>容器类型,例如 m4a,mp4 等。</p>
63427
63605
  :rtype: str
63428
63606
  """
63429
63607
  return self._Container
@@ -63434,7 +63612,7 @@ class MediaTranscodeItem(AbstractModel):
63434
63612
 
63435
63613
  @property
63436
63614
  def Md5(self):
63437
- r"""视频的 md5 值。
63615
+ r"""<p>视频的 md5 值。</p>
63438
63616
  :rtype: str
63439
63617
  """
63440
63618
  return self._Md5
@@ -63445,7 +63623,7 @@ class MediaTranscodeItem(AbstractModel):
63445
63623
 
63446
63624
  @property
63447
63625
  def AudioStreamSet(self):
63448
- r"""音频流信息。
63626
+ r"""<p>音频流信息。</p>
63449
63627
  :rtype: list of MediaAudioStreamItem
63450
63628
  """
63451
63629
  return self._AudioStreamSet
@@ -63456,7 +63634,7 @@ class MediaTranscodeItem(AbstractModel):
63456
63634
 
63457
63635
  @property
63458
63636
  def VideoStreamSet(self):
63459
- r"""视频流信息。
63637
+ r"""<p>视频流信息。</p>
63460
63638
  :rtype: list of MediaVideoStreamItem
63461
63639
  """
63462
63640
  return self._VideoStreamSet
@@ -63467,18 +63645,7 @@ class MediaTranscodeItem(AbstractModel):
63467
63645
 
63468
63646
  @property
63469
63647
  def CallBackExtInfo(self):
63470
- r"""视频转码使用增强项说明,增强项解释
63471
- <li>hdr:HDR配置</li>
63472
- <li>wd_fps:插帧帧率配置</li>
63473
- <li>video_super_resolution: 超分配置</li>
63474
- <li>repair:综合增强配置</li>
63475
- <li>denoise:视频降噪配置</li>
63476
- <li>color_enhance:色彩增强配置</li>
63477
- <li>scratch:去划痕配置</li>
63478
- <li>artifact:去伪影(毛刺)配置</li>
63479
- <li>sharp:细节增强配置</li>
63480
- <li>low_light:低光照增强配置</li>
63481
- <li>face_enhance:人脸增强配置</li>
63648
+ r"""<p>视频转码使用增强项说明,增强项解释</p><li>hdr:HDR配置</li><li>wd_fps:插帧帧率配置</li><li>video_super_resolution: 超分配置</li><li>repair:综合增强配置</li><li>denoise:视频降噪配置</li><li>color_enhance:色彩增强配置</li><li>scratch:去划痕配置</li><li>artifact:去伪影(毛刺)配置</li><li>sharp:细节增强配置</li><li>low_light:低光照增强配置</li><li>face_enhance:人脸增强配置</li>
63482
63649
  注意:此字段可能返回 null,表示取不到有效值。
63483
63650
  :rtype: str
63484
63651
  """
@@ -63488,6 +63655,17 @@ class MediaTranscodeItem(AbstractModel):
63488
63655
  def CallBackExtInfo(self, CallBackExtInfo):
63489
63656
  self._CallBackExtInfo = CallBackExtInfo
63490
63657
 
63658
+ @property
63659
+ def Usage(self):
63660
+ r"""<p>MediaTranscodeItem</p>
63661
+ :rtype: :class:`tencentcloud.mps.v20190612.models.MediaUsageItem`
63662
+ """
63663
+ return self._Usage
63664
+
63665
+ @Usage.setter
63666
+ def Usage(self, Usage):
63667
+ self._Usage = Usage
63668
+
63491
63669
 
63492
63670
  def _deserialize(self, params):
63493
63671
  if params.get("OutputStorage") is not None:
@@ -63515,6 +63693,90 @@ class MediaTranscodeItem(AbstractModel):
63515
63693
  obj._deserialize(item)
63516
63694
  self._VideoStreamSet.append(obj)
63517
63695
  self._CallBackExtInfo = params.get("CallBackExtInfo")
63696
+ if params.get("Usage") is not None:
63697
+ self._Usage = MediaUsageItem()
63698
+ self._Usage._deserialize(params.get("Usage"))
63699
+ memeber_set = set(params.keys())
63700
+ for name, value in vars(self).items():
63701
+ property_name = name[1:]
63702
+ if property_name in memeber_set:
63703
+ memeber_set.remove(property_name)
63704
+ if len(memeber_set) > 0:
63705
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
63706
+
63707
+
63708
+
63709
+ class MediaUsageItem(AbstractModel):
63710
+ r"""AIGC用量数据展示
63711
+
63712
+ """
63713
+
63714
+ def __init__(self):
63715
+ r"""
63716
+ :param _InputImageCount: <p>输入图片数</p><p>单位:个数</p>
63717
+ :type InputImageCount: int
63718
+ :param _InputSeconds: <p>输入秒数</p><p>单位:秒</p>
63719
+ :type InputSeconds: int
63720
+ :param _OutputSeconds: <p>输出秒数</p><p>单位:秒</p>
63721
+ :type OutputSeconds: int
63722
+ :param _TotalSeconds: <p>总秒数</p><p>单位:秒</p>
63723
+ :type TotalSeconds: int
63724
+ """
63725
+ self._InputImageCount = None
63726
+ self._InputSeconds = None
63727
+ self._OutputSeconds = None
63728
+ self._TotalSeconds = None
63729
+
63730
+ @property
63731
+ def InputImageCount(self):
63732
+ r"""<p>输入图片数</p><p>单位:个数</p>
63733
+ :rtype: int
63734
+ """
63735
+ return self._InputImageCount
63736
+
63737
+ @InputImageCount.setter
63738
+ def InputImageCount(self, InputImageCount):
63739
+ self._InputImageCount = InputImageCount
63740
+
63741
+ @property
63742
+ def InputSeconds(self):
63743
+ r"""<p>输入秒数</p><p>单位:秒</p>
63744
+ :rtype: int
63745
+ """
63746
+ return self._InputSeconds
63747
+
63748
+ @InputSeconds.setter
63749
+ def InputSeconds(self, InputSeconds):
63750
+ self._InputSeconds = InputSeconds
63751
+
63752
+ @property
63753
+ def OutputSeconds(self):
63754
+ r"""<p>输出秒数</p><p>单位:秒</p>
63755
+ :rtype: int
63756
+ """
63757
+ return self._OutputSeconds
63758
+
63759
+ @OutputSeconds.setter
63760
+ def OutputSeconds(self, OutputSeconds):
63761
+ self._OutputSeconds = OutputSeconds
63762
+
63763
+ @property
63764
+ def TotalSeconds(self):
63765
+ r"""<p>总秒数</p><p>单位:秒</p>
63766
+ :rtype: int
63767
+ """
63768
+ return self._TotalSeconds
63769
+
63770
+ @TotalSeconds.setter
63771
+ def TotalSeconds(self, TotalSeconds):
63772
+ self._TotalSeconds = TotalSeconds
63773
+
63774
+
63775
+ def _deserialize(self, params):
63776
+ self._InputImageCount = params.get("InputImageCount")
63777
+ self._InputSeconds = params.get("InputSeconds")
63778
+ self._OutputSeconds = params.get("OutputSeconds")
63779
+ self._TotalSeconds = params.get("TotalSeconds")
63518
63780
  memeber_set = set(params.keys())
63519
63781
  for name, value in vars(self).items():
63520
63782
  property_name = name[1:]
@@ -165,6 +165,29 @@ class MpsClient(AbstractClient):
165
165
  raise TencentCloudSDKException(type(e).__name__, str(e))
166
166
 
167
167
 
168
+ def ChangeVoice(self, request):
169
+ r"""同步音色转换,根据输入音频和指定音色将输入音频转换为指定音色
170
+
171
+ :param request: Request instance for ChangeVoice.
172
+ :type request: :class:`tencentcloud.mps.v20190612.models.ChangeVoiceRequest`
173
+ :rtype: :class:`tencentcloud.mps.v20190612.models.ChangeVoiceResponse`
174
+
175
+ """
176
+ try:
177
+ params = request._serialize()
178
+ headers = request.headers
179
+ body = self.call("ChangeVoice", params, headers=headers)
180
+ response = json.loads(body)
181
+ model = models.ChangeVoiceResponse()
182
+ model._deserialize(response["Response"])
183
+ return model
184
+ except Exception as e:
185
+ if isinstance(e, TencentCloudSDKException):
186
+ raise
187
+ else:
188
+ raise TencentCloudSDKException(type(e).__name__, str(e))
189
+
190
+
168
191
  def CloneViral(self, request):
169
192
  r"""爆款复刻。输入爆款参考视频+商品图,生成风格/节奏对齐的视频
170
193
 
@@ -134,6 +134,24 @@ class MpsClient(AbstractClient):
134
134
 
135
135
  return await self.call_and_deserialize(**kwargs)
136
136
 
137
+ async def ChangeVoice(
138
+ self,
139
+ request: models.ChangeVoiceRequest,
140
+ opts: Dict = None,
141
+ ) -> models.ChangeVoiceResponse:
142
+ """
143
+ 同步音色转换,根据输入音频和指定音色将输入音频转换为指定音色
144
+ """
145
+
146
+ kwargs = {}
147
+ kwargs["action"] = "ChangeVoice"
148
+ kwargs["params"] = request._serialize()
149
+ kwargs["resp_cls"] = models.ChangeVoiceResponse
150
+ kwargs["headers"] = request.headers
151
+ kwargs["opts"] = opts or {}
152
+
153
+ return await self.call_and_deserialize(**kwargs)
154
+
137
155
  async def CloneViral(
138
156
  self,
139
157
  request: models.CloneViralRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-mps
3
- Version: 3.1.162
3
+ Version: 3.1.166
4
4
  Summary: Tencent Cloud Mps 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.162
18
+ Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.166
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,11 @@
1
+ tencentcloud/__init__.py,sha256=yhpZww772TBu5Yq4CtKLQ0oSRJtTQXXtyIoWDqLX-L4,630
2
+ tencentcloud/mps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/mps/v20190612/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/mps/v20190612/errorcodes.py,sha256=Zvf2cuaFz2ff08cGZOMYlfCLqupAtO6L19BT_EUaTLI,21704
5
+ tencentcloud/mps/v20190612/models.py,sha256=SBeUxn6O9ruGQGzvyrXplx4uSdoB_ZzL1HiYguGf84s,3501022
6
+ tencentcloud/mps/v20190612/mps_client.py,sha256=4aPCae-Sfu-gxxO-cyvLGRuj_d5-FU7iZAvhCRQ46VE,220718
7
+ tencentcloud/mps/v20190612/mps_client_async.py,sha256=IUz-H8Yki_XOysUM10cpmkp8bs2Tki4uWoDg8tXVHv0,151569
8
+ tencentcloud_sdk_python_mps-3.1.166.dist-info/METADATA,sha256=OjF9CdiDYNaDjz0W_nxOiIAPJWLJ0fk-NlRSFz_cOfg,1497
9
+ tencentcloud_sdk_python_mps-3.1.166.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
+ tencentcloud_sdk_python_mps-3.1.166.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
+ tencentcloud_sdk_python_mps-3.1.166.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- tencentcloud/__init__.py,sha256=20xUQIfgKYD89TG9v9zxe7TCqwW9_qjtK63BxRvuucw,630
2
- tencentcloud/mps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/mps/v20190612/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/mps/v20190612/errorcodes.py,sha256=Zvf2cuaFz2ff08cGZOMYlfCLqupAtO6L19BT_EUaTLI,21704
5
- tencentcloud/mps/v20190612/models.py,sha256=sWFer6Cev-MhttU6LWWlhUgsVAgtju7Jek161YtSvXo,3492472
6
- tencentcloud/mps/v20190612/mps_client.py,sha256=ODpfOgF0EKBjSfk1676luC1a82vGRxm6-UNtDpcXM2g,219812
7
- tencentcloud/mps/v20190612/mps_client_async.py,sha256=aiK7qymLvz4xzk29uyJzXfQNBYg8pd9qOIwIjFzHEXM,150956
8
- tencentcloud_sdk_python_mps-3.1.162.dist-info/METADATA,sha256=GqYQgcauweMsR-DbH4lQzdtHqhhGFu-zqqWXuMV-32A,1497
9
- tencentcloud_sdk_python_mps-3.1.162.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
- tencentcloud_sdk_python_mps-3.1.162.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
- tencentcloud_sdk_python_mps-3.1.162.dist-info/RECORD,,