tencentcloud-sdk-python-tsi 3.0.1190__py2.py3-none-any.whl → 3.0.1191__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.0.1190'
17
+ __version__ = '3.0.1191'
@@ -50,7 +50,20 @@ class TsiClient(AbstractClient):
50
50
 
51
51
 
52
52
  def TongChuanRecognize(self, request):
53
- """本接口提供上传音频,将音频进行语音识别并翻译成文本的服务,目前开放中英互译的同传服务。 待识别和翻译的音频文件格式是 pcm,pcm采样率要求16kHz、位深16bit、单声道、每个分片时长200ms~500ms,音频内语音清晰。
53
+ """本接口提供上传音频,将音频进行语音识别并翻译成文本的服务。
54
+ 该接口需要配合[同传查询结果](https://cloud.tencent.com/document/product/1399/107636)接口使用,建议一个线程进行音频数据上传同时另外一个线程拉取同传结果。
55
+ 如果需要同步接口,既上传音频的同时拉取同传结果,可以使用[同传上传音频并查询结果](https://cloud.tencent.com/document/product/1399/107634)接口。
56
+
57
+ -----------
58
+ ### 接口要求
59
+ 集成该API时,需按照以下要求:
60
+
61
+ | 内容| 格式 |
62
+ | -------- | ------- |
63
+ | 音频格式 | pcm |
64
+ | 音频属性 | <ul><li>采样率:16000Hz</li><li>采样精度:16bits</li><li>声道:单声道(mono)</li></ul> |
65
+ | 响应格式 | 统一采用 JSON 格式 |
66
+ | 数据发送 | 建议每200ms 发送200ms 时长的数据包,即1:1实时率,对应大小为6400字节。<br/><ol><li>音频发送速率过快超过1:1实时率或者音频数据包之间发送间隔超过6秒,可能导致引擎出错,后台将返回错误;</li><li>每次发送数据的大小不得小于 200ms时长 的数据包,且不得大于 500ms时长 的数据包;小于 200ms时长 的数据包会被丢弃,大于 500ms时长 的数据包会影响引擎的数据处理;</li><li>若最后一个音频数据包不足 200ms,需要使用空数据进行补齐;</li></ol> |
54
67
 
55
68
  :param request: Request instance for TongChuanRecognize.
56
69
  :type request: :class:`tencentcloud.tsi.v20210325.models.TongChuanRecognizeRequest`
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tsi
3
- Version: 3.0.1190
3
+ Version: 3.0.1191
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
@@ -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 (==3.0.1190)
18
+ Requires-Dist: tencentcloud-sdk-python-common (==3.0.1191)
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,10 @@
1
+ tencentcloud/__init__.py,sha256=XoeGUrBGwr0EF45ON0r_4aM12Ktnts0HNRCG7-ebJJY,631
2
+ tencentcloud/tsi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/tsi/v20210325/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/tsi/v20210325/errorcodes.py,sha256=-BhzTUCe-NiFvg_FqoynfLXuxFWGHrEpaPChtXtjDWc,1355
5
+ tencentcloud/tsi/v20210325/models.py,sha256=1X5vGWEJFlyQbBfl8uaAWXIW2drl40zGe_O5I0tm0_E,14964
6
+ tencentcloud/tsi/v20210325/tsi_client.py,sha256=d8hlyY65IiU2IV2dPQzTlZI9bXJ2U7AYyPmqiY280Uc,5314
7
+ tencentcloud_sdk_python_tsi-3.0.1191.dist-info/METADATA,sha256=s8RiTSkLbZocqbEYZAZ-VdEHwwnbRz0h7V5mVEzKQKE,1492
8
+ tencentcloud_sdk_python_tsi-3.0.1191.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
+ tencentcloud_sdk_python_tsi-3.0.1191.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
+ tencentcloud_sdk_python_tsi-3.0.1191.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- tencentcloud/__init__.py,sha256=RS9FmnHnPlsr6S7EUT33ZrGduwI2A459z2BB1vjebHw,631
2
- tencentcloud/tsi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/tsi/v20210325/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/tsi/v20210325/errorcodes.py,sha256=-BhzTUCe-NiFvg_FqoynfLXuxFWGHrEpaPChtXtjDWc,1355
5
- tencentcloud/tsi/v20210325/models.py,sha256=1X5vGWEJFlyQbBfl8uaAWXIW2drl40zGe_O5I0tm0_E,14964
6
- tencentcloud/tsi/v20210325/tsi_client.py,sha256=TCMNhQFuVSPGc5DFga9K5ZHleVO7YPYzWP6THIIOz7k,4121
7
- tencentcloud_sdk_python_tsi-3.0.1190.dist-info/METADATA,sha256=PSKH_JHQgrMynYuJ-WXK_J6bD9darxG3Vrhcn6AyV-A,1492
8
- tencentcloud_sdk_python_tsi-3.0.1190.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
- tencentcloud_sdk_python_tsi-3.0.1190.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
- tencentcloud_sdk_python_tsi-3.0.1190.dist-info/RECORD,,