tencentcloud-sdk-python-tsi 3.0.1416__tar.gz → 3.0.1459__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 (16) hide show
  1. {tencentcloud-sdk-python-tsi-3.0.1416 → tencentcloud-sdk-python-tsi-3.0.1459}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-tsi-3.0.1416 → tencentcloud-sdk-python-tsi-3.0.1459}/setup.py +1 -1
  3. {tencentcloud-sdk-python-tsi-3.0.1416 → tencentcloud-sdk-python-tsi-3.0.1459}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-tsi-3.0.1416 → tencentcloud-sdk-python-tsi-3.0.1459}/tencentcloud/tsi/v20210325/models.py +49 -49
  5. {tencentcloud-sdk-python-tsi-3.0.1416 → tencentcloud-sdk-python-tsi-3.0.1459}/tencentcloud/tsi/v20210325/tsi_client.py +3 -3
  6. {tencentcloud-sdk-python-tsi-3.0.1416 → tencentcloud-sdk-python-tsi-3.0.1459}/tencentcloud_sdk_python_tsi.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-tsi-3.0.1459/tencentcloud_sdk_python_tsi.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-tsi-3.0.1416/tencentcloud_sdk_python_tsi.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-tsi-3.0.1416 → tencentcloud-sdk-python-tsi-3.0.1459}/README.rst +0 -0
  10. {tencentcloud-sdk-python-tsi-3.0.1416 → tencentcloud-sdk-python-tsi-3.0.1459}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-tsi-3.0.1416 → tencentcloud-sdk-python-tsi-3.0.1459}/tencentcloud/tsi/__init__.py +0 -0
  12. {tencentcloud-sdk-python-tsi-3.0.1416 → tencentcloud-sdk-python-tsi-3.0.1459}/tencentcloud/tsi/v20210325/__init__.py +0 -0
  13. {tencentcloud-sdk-python-tsi-3.0.1416 → tencentcloud-sdk-python-tsi-3.0.1459}/tencentcloud/tsi/v20210325/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-tsi-3.0.1416 → tencentcloud-sdk-python-tsi-3.0.1459}/tencentcloud_sdk_python_tsi.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-tsi-3.0.1416 → tencentcloud-sdk-python-tsi-3.0.1459}/tencentcloud_sdk_python_tsi.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-tsi-3.0.1416 → tencentcloud-sdk-python-tsi-3.0.1459}/tencentcloud_sdk_python_tsi.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-tsi
3
- Version: 3.0.1416
3
+ Version: 3.0.1459
4
4
  Summary: Tencent Cloud Tsi SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-tsi',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.1416"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.0.1459,<4.0.0"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Tsi SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1416'
17
+ __version__ = '3.0.1459'
@@ -19,7 +19,7 @@ from tencentcloud.common.abstract_model import AbstractModel
19
19
 
20
20
 
21
21
  class DisplayInfo(AbstractModel):
22
- """同传结果数据
22
+ r"""同传结果数据
23
23
 
24
24
  """
25
25
 
@@ -53,7 +53,7 @@ class DisplayInfo(AbstractModel):
53
53
 
54
54
  @property
55
55
  def SeId(self):
56
- """句子 ID
56
+ r"""句子 ID
57
57
  :rtype: str
58
58
  """
59
59
  return self._SeId
@@ -64,7 +64,7 @@ class DisplayInfo(AbstractModel):
64
64
 
65
65
  @property
66
66
  def SeVer(self):
67
- """句子版本号
67
+ r"""句子版本号
68
68
  :rtype: int
69
69
  """
70
70
  return self._SeVer
@@ -75,7 +75,7 @@ class DisplayInfo(AbstractModel):
75
75
 
76
76
  @property
77
77
  def SourceText(self):
78
- """识别结果
78
+ r"""识别结果
79
79
  :rtype: str
80
80
  """
81
81
  return self._SourceText
@@ -86,7 +86,7 @@ class DisplayInfo(AbstractModel):
86
86
 
87
87
  @property
88
88
  def TargetText(self):
89
- """ 翻译结果
89
+ r""" 翻译结果
90
90
  :rtype: str
91
91
  """
92
92
  return self._TargetText
@@ -97,7 +97,7 @@ class DisplayInfo(AbstractModel):
97
97
 
98
98
  @property
99
99
  def StartTime(self):
100
- """句子开始时间
100
+ r"""句子开始时间
101
101
  :rtype: int
102
102
  """
103
103
  return self._StartTime
@@ -108,7 +108,7 @@ class DisplayInfo(AbstractModel):
108
108
 
109
109
  @property
110
110
  def EndTime(self):
111
- """句子结束时间
111
+ r"""句子结束时间
112
112
  :rtype: int
113
113
  """
114
114
  return self._EndTime
@@ -119,7 +119,7 @@ class DisplayInfo(AbstractModel):
119
119
 
120
120
  @property
121
121
  def IsEnd(self):
122
- """ 当前句子是否已结束
122
+ r""" 当前句子是否已结束
123
123
  :rtype: bool
124
124
  """
125
125
  return self._IsEnd
@@ -130,7 +130,7 @@ class DisplayInfo(AbstractModel):
130
130
 
131
131
  @property
132
132
  def Audio(self):
133
- """base64编码的wav/mp3音频数据
133
+ r"""base64编码的wav/mp3音频数据
134
134
  :rtype: str
135
135
  """
136
136
  return self._Audio
@@ -160,7 +160,7 @@ class DisplayInfo(AbstractModel):
160
160
 
161
161
 
162
162
  class TTS(AbstractModel):
163
- """同传TTS请求参数
163
+ r"""同传TTS请求参数
164
164
 
165
165
  """
166
166
 
@@ -199,7 +199,7 @@ class TTS(AbstractModel):
199
199
 
200
200
  @property
201
201
  def Codec(self):
202
- """返回音频格式,可取值:wav,mp3,pcm
202
+ r"""返回音频格式,可取值:wav,mp3,pcm
203
203
  :rtype: str
204
204
  """
205
205
  return self._Codec
@@ -210,7 +210,7 @@ class TTS(AbstractModel):
210
210
 
211
211
  @property
212
212
  def VoiceType(self):
213
- """音色 ID,只包括标准音色(注,日文只有一个固定音色)。
213
+ r"""音色 ID,只包括标准音色(注,日文只有一个固定音色)。
214
214
  完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。
215
215
  :rtype: int
216
216
  """
@@ -222,7 +222,7 @@ class TTS(AbstractModel):
222
222
 
223
223
  @property
224
224
  def Volume(self):
225
- """音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。
225
+ r"""音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。
226
226
  :rtype: float
227
227
  """
228
228
  return self._Volume
@@ -233,7 +233,7 @@ class TTS(AbstractModel):
233
233
 
234
234
  @property
235
235
  def Speed(self):
236
- """语速,范围:[-2,6],分别对应不同语速:
236
+ r"""语速,范围:[-2,6],分别对应不同语速:
237
237
 
238
238
  - -2代表0.6倍
239
239
  - -1代表0.8倍
@@ -254,7 +254,7 @@ class TTS(AbstractModel):
254
254
 
255
255
  @property
256
256
  def SampleRate(self):
257
- """音频采样率:
257
+ r"""音频采样率:
258
258
 
259
259
  - 16000:16k(默认)
260
260
  - 8000:8k
@@ -284,7 +284,7 @@ class TTS(AbstractModel):
284
284
 
285
285
 
286
286
  class TongChuanDisplayRequest(AbstractModel):
287
- """TongChuanDisplay请求参数结构体
287
+ r"""TongChuanDisplay请求参数结构体
288
288
 
289
289
  """
290
290
 
@@ -303,7 +303,7 @@ class TongChuanDisplayRequest(AbstractModel):
303
303
 
304
304
  @property
305
305
  def SessionUuid(self):
306
- """一段完整的语音对应一个SessionUuid
306
+ r"""一段完整的语音对应一个SessionUuid
307
307
  :rtype: str
308
308
  """
309
309
  return self._SessionUuid
@@ -314,7 +314,7 @@ class TongChuanDisplayRequest(AbstractModel):
314
314
 
315
315
  @property
316
316
  def IsNew(self):
317
- """句子排序方式,1-由新到旧
317
+ r"""句子排序方式,1-由新到旧
318
318
  :rtype: int
319
319
  """
320
320
  return self._IsNew
@@ -325,7 +325,7 @@ class TongChuanDisplayRequest(AbstractModel):
325
325
 
326
326
  @property
327
327
  def SeMax(self):
328
- """最多返回几句,目前只支持 5 条数据
328
+ r"""最多返回几句,目前只支持 5 条数据
329
329
  :rtype: int
330
330
  """
331
331
  return self._SeMax
@@ -350,7 +350,7 @@ class TongChuanDisplayRequest(AbstractModel):
350
350
 
351
351
 
352
352
  class TongChuanDisplayResponse(AbstractModel):
353
- """TongChuanDisplay返回参数结构体
353
+ r"""TongChuanDisplay返回参数结构体
354
354
 
355
355
  """
356
356
 
@@ -366,7 +366,7 @@ class TongChuanDisplayResponse(AbstractModel):
366
366
 
367
367
  @property
368
368
  def List(self):
369
- """同传结果数组
369
+ r"""同传结果数组
370
370
  :rtype: list of DisplayInfo
371
371
  """
372
372
  return self._List
@@ -377,7 +377,7 @@ class TongChuanDisplayResponse(AbstractModel):
377
377
 
378
378
  @property
379
379
  def RequestId(self):
380
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
380
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
381
381
  :rtype: str
382
382
  """
383
383
  return self._RequestId
@@ -398,7 +398,7 @@ class TongChuanDisplayResponse(AbstractModel):
398
398
 
399
399
 
400
400
  class TongChuanRecognizeRequest(AbstractModel):
401
- """TongChuanRecognize请求参数结构体
401
+ r"""TongChuanRecognize请求参数结构体
402
402
 
403
403
  """
404
404
 
@@ -448,7 +448,7 @@ yue:粤语
448
448
 
449
449
  @property
450
450
  def SessionUuid(self):
451
- """一段完整的语音对应一个SessionUuid
451
+ r"""一段完整的语音对应一个SessionUuid
452
452
  :rtype: str
453
453
  """
454
454
  return self._SessionUuid
@@ -459,7 +459,7 @@ yue:粤语
459
459
 
460
460
  @property
461
461
  def Source(self):
462
- """源语言,支持:
462
+ r"""源语言,支持:
463
463
  zh:中文
464
464
  en:英语
465
465
  ja:日语
@@ -475,7 +475,7 @@ yue:粤语
475
475
 
476
476
  @property
477
477
  def Target(self):
478
- """目标语言,各源语言的目标语言支持列表如下
478
+ r"""目标语言,各源语言的目标语言支持列表如下
479
479
  <li>zh(中文):en(英语)、ja(日语)、ko(韩语)、yue(粤语)</li>
480
480
  <li>en(英语):zh(中文)</li>
481
481
  <li>ja(日语):zh(中文)</li>
@@ -491,7 +491,7 @@ yue:粤语
491
491
 
492
492
  @property
493
493
  def AudioFormat(self):
494
- """语音编码类型,1-pcm
494
+ r"""语音编码类型,1-pcm
495
495
  :rtype: int
496
496
  """
497
497
  return self._AudioFormat
@@ -502,7 +502,7 @@ yue:粤语
502
502
 
503
503
  @property
504
504
  def Seq(self):
505
- """语音分片的序号,从0开始
505
+ r"""语音分片的序号,从0开始
506
506
  :rtype: int
507
507
  """
508
508
  return self._Seq
@@ -513,7 +513,7 @@ yue:粤语
513
513
 
514
514
  @property
515
515
  def Utc(self):
516
- """语音开始的时间戳
516
+ r"""语音开始的时间戳
517
517
  :rtype: int
518
518
  """
519
519
  return self._Utc
@@ -524,7 +524,7 @@ yue:粤语
524
524
 
525
525
  @property
526
526
  def IsEnd(self):
527
- """是否最后一片语音分片,0-否,1-是
527
+ r"""是否最后一片语音分片,0-否,1-是
528
528
  :rtype: int
529
529
  """
530
530
  return self._IsEnd
@@ -535,7 +535,7 @@ yue:粤语
535
535
 
536
536
  @property
537
537
  def TranslateTime(self):
538
- """翻译时机,0-不翻译 2-句子实时翻译
538
+ r"""翻译时机,0-不翻译 2-句子实时翻译
539
539
  :rtype: int
540
540
  """
541
541
  return self._TranslateTime
@@ -546,7 +546,7 @@ yue:粤语
546
546
 
547
547
  @property
548
548
  def Data(self):
549
- """语音分片内容进行 Base64 编码后的字符串。音频内容需包含有效并可识别的文本信息。
549
+ r"""语音分片内容进行 Base64 编码后的字符串。音频内容需包含有效并可识别的文本信息。
550
550
  :rtype: str
551
551
  """
552
552
  return self._Data
@@ -557,7 +557,7 @@ yue:粤语
557
557
 
558
558
  @property
559
559
  def TTS(self):
560
- """TTS播报控制参数
560
+ r"""TTS播报控制参数
561
561
  :rtype: :class:`tencentcloud.tsi.v20210325.models.TTS`
562
562
  """
563
563
  return self._TTS
@@ -591,7 +591,7 @@ yue:粤语
591
591
 
592
592
 
593
593
  class TongChuanRecognizeResponse(AbstractModel):
594
- """TongChuanRecognize返回参数结构体
594
+ r"""TongChuanRecognize返回参数结构体
595
595
 
596
596
  """
597
597
 
@@ -604,7 +604,7 @@ class TongChuanRecognizeResponse(AbstractModel):
604
604
 
605
605
  @property
606
606
  def RequestId(self):
607
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
607
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
608
608
  :rtype: str
609
609
  """
610
610
  return self._RequestId
@@ -619,7 +619,7 @@ class TongChuanRecognizeResponse(AbstractModel):
619
619
 
620
620
 
621
621
  class TongChuanSyncRequest(AbstractModel):
622
- """TongChuanSync请求参数结构体
622
+ r"""TongChuanSync请求参数结构体
623
623
 
624
624
  """
625
625
 
@@ -669,7 +669,7 @@ yue:粤语
669
669
 
670
670
  @property
671
671
  def SessionUuid(self):
672
- """一段完整的语音对应一个SessionUuid
672
+ r"""一段完整的语音对应一个SessionUuid
673
673
  :rtype: str
674
674
  """
675
675
  return self._SessionUuid
@@ -680,7 +680,7 @@ yue:粤语
680
680
 
681
681
  @property
682
682
  def Source(self):
683
- """源语言,支持:
683
+ r"""源语言,支持:
684
684
  zh:中文
685
685
  en:英语
686
686
  ja:日语
@@ -696,7 +696,7 @@ yue:粤语
696
696
 
697
697
  @property
698
698
  def Target(self):
699
- """目标语言,各源语言的目标语言支持列表如下
699
+ r"""目标语言,各源语言的目标语言支持列表如下
700
700
  <li>zh(中文):en(英语)、ja(日语)、ko(韩语)、yue(粤语)</li>
701
701
  <li>en(英语):zh(中文)</li>
702
702
  <li>ja(日语):zh(中文)</li>
@@ -712,7 +712,7 @@ yue:粤语
712
712
 
713
713
  @property
714
714
  def AudioFormat(self):
715
- """语音编码类型,1-pcm
715
+ r"""语音编码类型,1-pcm
716
716
  :rtype: int
717
717
  """
718
718
  return self._AudioFormat
@@ -723,7 +723,7 @@ yue:粤语
723
723
 
724
724
  @property
725
725
  def Seq(self):
726
- """语音分片的序号,从0开始
726
+ r"""语音分片的序号,从0开始
727
727
  :rtype: int
728
728
  """
729
729
  return self._Seq
@@ -734,7 +734,7 @@ yue:粤语
734
734
 
735
735
  @property
736
736
  def Utc(self):
737
- """语音开始的时间戳
737
+ r"""语音开始的时间戳
738
738
  :rtype: int
739
739
  """
740
740
  return self._Utc
@@ -745,7 +745,7 @@ yue:粤语
745
745
 
746
746
  @property
747
747
  def IsEnd(self):
748
- """是否最后一片语音分片,0-否,1-是
748
+ r"""是否最后一片语音分片,0-否,1-是
749
749
  :rtype: int
750
750
  """
751
751
  return self._IsEnd
@@ -756,7 +756,7 @@ yue:粤语
756
756
 
757
757
  @property
758
758
  def TranslateTime(self):
759
- """翻译时机,0-不翻译 2-句子实时翻译
759
+ r"""翻译时机,0-不翻译 2-句子实时翻译
760
760
  :rtype: int
761
761
  """
762
762
  return self._TranslateTime
@@ -767,7 +767,7 @@ yue:粤语
767
767
 
768
768
  @property
769
769
  def Data(self):
770
- """语音分片内容进行 Base64 编码后的字符串。音频内容需包含有效并可识别的文本信息。
770
+ r"""语音分片内容进行 Base64 编码后的字符串。音频内容需包含有效并可识别的文本信息。
771
771
  :rtype: str
772
772
  """
773
773
  return self._Data
@@ -778,7 +778,7 @@ yue:粤语
778
778
 
779
779
  @property
780
780
  def TTS(self):
781
- """TTS播报控制参数
781
+ r"""TTS播报控制参数
782
782
  :rtype: :class:`tencentcloud.tsi.v20210325.models.TTS`
783
783
  """
784
784
  return self._TTS
@@ -812,7 +812,7 @@ yue:粤语
812
812
 
813
813
 
814
814
  class TongChuanSyncResponse(AbstractModel):
815
- """TongChuanSync返回参数结构体
815
+ r"""TongChuanSync返回参数结构体
816
816
 
817
817
  """
818
818
 
@@ -828,7 +828,7 @@ class TongChuanSyncResponse(AbstractModel):
828
828
 
829
829
  @property
830
830
  def List(self):
831
- """同传结果数组
831
+ r"""同传结果数组
832
832
  :rtype: list of DisplayInfo
833
833
  """
834
834
  return self._List
@@ -839,7 +839,7 @@ class TongChuanSyncResponse(AbstractModel):
839
839
 
840
840
  @property
841
841
  def RequestId(self):
842
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
842
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
843
843
  :rtype: str
844
844
  """
845
845
  return self._RequestId
@@ -27,7 +27,7 @@ class TsiClient(AbstractClient):
27
27
 
28
28
 
29
29
  def TongChuanDisplay(self, request):
30
- """获取同传结果。
30
+ r"""获取同传结果。
31
31
 
32
32
  :param request: Request instance for TongChuanDisplay.
33
33
  :type request: :class:`tencentcloud.tsi.v20210325.models.TongChuanDisplayRequest`
@@ -50,7 +50,7 @@ class TsiClient(AbstractClient):
50
50
 
51
51
 
52
52
  def TongChuanRecognize(self, request):
53
- """本接口提供上传音频,将音频进行语音识别并翻译成文本的服务。
53
+ r"""本接口提供上传音频,将音频进行语音识别并翻译成文本的服务。
54
54
  该接口需要配合[同传查询结果](https://cloud.tencent.com/document/product/1399/107636)接口使用,建议一个线程进行音频数据上传同时另外一个线程拉取同传结果。
55
55
  如果需要同步接口,既上传音频的同时拉取同传结果,可以使用[同传上传音频并查询结果](https://cloud.tencent.com/document/product/1399/107634)接口。
56
56
 
@@ -86,7 +86,7 @@ class TsiClient(AbstractClient):
86
86
 
87
87
 
88
88
  def TongChuanSync(self, request):
89
- """本接口提供上传音频,将音频进行语音识别并翻译成文本的服务。
89
+ r"""本接口提供上传音频,将音频进行语音识别并翻译成文本的服务。
90
90
 
91
91
  -----------
92
92
  ### 接口要求
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-tsi
3
- Version: 3.0.1416
3
+ Version: 3.0.1459
4
4
  Summary: Tencent Cloud Tsi SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.0.1459
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1416