yandexcloud 0.342.0__py3-none-any.whl → 0.344.0__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.

Potentially problematic release.


This version of yandexcloud might be problematic. Click here for more details.

Files changed (109) hide show
  1. yandex/cloud/ai/batch_inference/v1/batch_inference_task_pb2.py +14 -7
  2. yandex/cloud/ai/batch_inference/v1/batch_inference_task_pb2.pyi +75 -2
  3. yandex/cloud/ai/tts/v3/tts_pb2.py +13 -1
  4. yandex/cloud/ai/tts/v3/tts_pb2.pyi +171 -0
  5. yandex/cloud/ai/tts/v3/tts_service_pb2.py +2 -2
  6. yandex/cloud/ai/tts/v3/tts_service_pb2_grpc.py +44 -0
  7. yandex/cloud/ai/tts/v3/tts_service_pb2_grpc.pyi +20 -0
  8. yandex/cloud/ai/tuning/v1/tuning_service_pb2.py +70 -68
  9. yandex/cloud/ai/tuning/v1/tuning_service_pb2.pyi +10 -2
  10. yandex/cloud/certificatemanager/v1/certificate_content_service_pb2.py +28 -9
  11. yandex/cloud/certificatemanager/v1/certificate_content_service_pb2.pyi +70 -0
  12. yandex/cloud/certificatemanager/v1/certificate_content_service_pb2_grpc.py +43 -0
  13. yandex/cloud/certificatemanager/v1/certificate_content_service_pb2_grpc.pyi +17 -0
  14. yandex/cloud/clouddesktop/__init__.py +0 -0
  15. yandex/cloud/clouddesktop/v1/__init__.py +0 -0
  16. yandex/cloud/clouddesktop/v1/desktop_group_pb2.py +71 -0
  17. yandex/cloud/clouddesktop/v1/desktop_group_pb2.pyi +232 -0
  18. yandex/cloud/clouddesktop/v1/desktop_group_pb2_grpc.py +24 -0
  19. yandex/cloud/clouddesktop/v1/desktop_group_pb2_grpc.pyi +17 -0
  20. yandex/cloud/clouddesktop/v1/desktop_group_service_pb2.py +146 -0
  21. yandex/cloud/clouddesktop/v1/desktop_group_service_pb2.pyi +443 -0
  22. yandex/cloud/clouddesktop/v1/desktop_group_service_pb2_grpc.py +502 -0
  23. yandex/cloud/clouddesktop/v1/desktop_group_service_pb2_grpc.pyi +242 -0
  24. yandex/cloud/clouddesktop/v1/desktop_image_pb2.py +44 -0
  25. yandex/cloud/clouddesktop/v1/desktop_image_pb2.pyi +111 -0
  26. yandex/cloud/clouddesktop/v1/desktop_image_pb2_grpc.py +24 -0
  27. yandex/cloud/clouddesktop/v1/desktop_image_pb2_grpc.pyi +17 -0
  28. yandex/cloud/clouddesktop/v1/desktop_image_service_pb2.py +115 -0
  29. yandex/cloud/clouddesktop/v1/desktop_image_service_pb2.pyi +275 -0
  30. yandex/cloud/clouddesktop/v1/desktop_image_service_pb2_grpc.py +323 -0
  31. yandex/cloud/clouddesktop/v1/desktop_image_service_pb2_grpc.pyi +152 -0
  32. yandex/cloud/clouddesktop/v1/desktop_pb2.py +65 -0
  33. yandex/cloud/clouddesktop/v1/desktop_pb2.pyi +208 -0
  34. yandex/cloud/clouddesktop/v1/desktop_pb2_grpc.py +24 -0
  35. yandex/cloud/clouddesktop/v1/desktop_pb2_grpc.pyi +17 -0
  36. yandex/cloud/clouddesktop/v1/desktop_service_pb2.py +171 -0
  37. yandex/cloud/clouddesktop/v1/desktop_service_pb2.pyi +541 -0
  38. yandex/cloud/clouddesktop/v1/desktop_service_pb2_grpc.py +589 -0
  39. yandex/cloud/clouddesktop/v1/desktop_service_pb2_grpc.pyi +281 -0
  40. yandex/cloud/clouddesktop/v1/disk_pb2.py +44 -0
  41. yandex/cloud/clouddesktop/v1/disk_pb2.pyi +61 -0
  42. yandex/cloud/clouddesktop/v1/disk_pb2_grpc.py +24 -0
  43. yandex/cloud/clouddesktop/v1/disk_pb2_grpc.pyi +17 -0
  44. yandex/cloud/cloudregistry/v1/registry_pb2.py +5 -5
  45. yandex/cloud/cloudregistry/v1/registry_pb2.pyi +4 -0
  46. yandex/cloud/marketplace/metering/v1/product_usage_service_pb2_grpc.py +6 -3
  47. yandex/cloud/marketplace/metering/v1/product_usage_service_pb2_grpc.pyi +6 -0
  48. yandex/cloud/marketplace/pim/v1/saas/product_instance_service_pb2.py +13 -10
  49. yandex/cloud/mdb/kafka/v1/user_pb2.py +3 -3
  50. yandex/cloud/mdb/kafka/v1/user_pb2.pyi +9 -0
  51. yandex/cloud/metastore/__init__.py +0 -0
  52. yandex/cloud/metastore/v1/__init__.py +0 -0
  53. yandex/cloud/metastore/v1/cluster_pb2.py +67 -0
  54. yandex/cloud/metastore/v1/cluster_pb2.pyi +325 -0
  55. yandex/cloud/metastore/v1/cluster_pb2_grpc.py +24 -0
  56. yandex/cloud/metastore/v1/cluster_pb2_grpc.pyi +17 -0
  57. yandex/cloud/metastore/v1/cluster_service_pb2.py +176 -0
  58. yandex/cloud/metastore/v1/cluster_service_pb2.pyi +628 -0
  59. yandex/cloud/metastore/v1/cluster_service_pb2_grpc.py +502 -0
  60. yandex/cloud/metastore/v1/cluster_service_pb2_grpc.pyi +247 -0
  61. yandex/cloud/metastore/v1/maintenance_pb2.py +53 -0
  62. yandex/cloud/metastore/v1/maintenance_pb2.pyi +123 -0
  63. yandex/cloud/metastore/v1/maintenance_pb2_grpc.py +24 -0
  64. yandex/cloud/metastore/v1/maintenance_pb2_grpc.pyi +17 -0
  65. yandex/cloud/monitoring/v3/chart_widget_pb2.py +52 -47
  66. yandex/cloud/monitoring/v3/chart_widget_pb2.pyi +52 -5
  67. yandex/cloud/monitoring/v3/dashboard_pb2.py +6 -5
  68. yandex/cloud/monitoring/v3/dashboard_pb2.pyi +8 -1
  69. yandex/cloud/monitoring/v3/dashboard_service_pb2.py +30 -29
  70. yandex/cloud/monitoring/v3/dashboard_service_pb2.pyi +15 -2
  71. yandex/cloud/monitoring/v3/link_item_pb2.py +40 -0
  72. yandex/cloud/monitoring/v3/link_item_pb2.pyi +53 -0
  73. yandex/cloud/monitoring/v3/link_item_pb2_grpc.py +24 -0
  74. yandex/cloud/monitoring/v3/link_item_pb2_grpc.pyi +17 -0
  75. yandex/cloud/monitoring/v3/link_pb2.py +39 -0
  76. yandex/cloud/monitoring/v3/link_pb2.pyi +70 -0
  77. yandex/cloud/monitoring/v3/link_pb2_grpc.py +24 -0
  78. yandex/cloud/monitoring/v3/link_pb2_grpc.pyi +17 -0
  79. yandex/cloud/monitoring/v3/multi_source_chart_widget_pb2.py +60 -55
  80. yandex/cloud/monitoring/v3/multi_source_chart_widget_pb2.pyi +52 -5
  81. yandex/cloud/monitoring/v3/thresholds_pb2.py +41 -0
  82. yandex/cloud/monitoring/v3/thresholds_pb2.pyi +73 -0
  83. yandex/cloud/monitoring/v3/thresholds_pb2_grpc.py +24 -0
  84. yandex/cloud/monitoring/v3/thresholds_pb2_grpc.pyi +17 -0
  85. yandex/cloud/monitoring/v3/widget_pb2.py +6 -5
  86. yandex/cloud/monitoring/v3/widget_pb2.pyi +8 -1
  87. yandex/cloud/searchapi/v2/gen_search_service_pb2.py +25 -25
  88. yandex/cloud/searchapi/v2/img_search_service_pb2.py +63 -0
  89. yandex/cloud/searchapi/v2/img_search_service_pb2.pyi +240 -0
  90. yandex/cloud/searchapi/v2/img_search_service_pb2_grpc.py +100 -0
  91. yandex/cloud/searchapi/v2/img_search_service_pb2_grpc.pyi +47 -0
  92. yandex/cloud/searchapi/v2/search_query_pb2.py +7 -7
  93. yandex/cloud/searchapi/v2/search_query_pb2.pyi +4 -0
  94. yandex/cloud/serverless/eventrouter/v1/bus_pb2.py +8 -10
  95. yandex/cloud/serverless/eventrouter/v1/connector_pb2.py +10 -8
  96. yandex/cloud/serverless/eventrouter/v1/connector_pb2.pyi +17 -3
  97. yandex/cloud/speechsense/v1/talk_service_pb2.py +39 -31
  98. yandex/cloud/speechsense/v1/talk_service_pb2.pyi +38 -0
  99. yandex/cloud/speechsense/v1/talk_service_pb2_grpc.py +46 -0
  100. yandex/cloud/speechsense/v1/talk_service_pb2_grpc.pyi +27 -0
  101. yandex/cloud/storage/v1/bucket_service_pb2.py +30 -30
  102. yandex/cloud/storage/v1/bucket_service_pb2.pyi +26 -4
  103. yandexcloud/__init__.py +1 -1
  104. {yandexcloud-0.342.0.dist-info → yandexcloud-0.344.0.dist-info}/METADATA +1 -1
  105. {yandexcloud-0.342.0.dist-info → yandexcloud-0.344.0.dist-info}/RECORD +109 -49
  106. {yandexcloud-0.342.0.dist-info → yandexcloud-0.344.0.dist-info}/AUTHORS +0 -0
  107. {yandexcloud-0.342.0.dist-info → yandexcloud-0.344.0.dist-info}/LICENSE +0 -0
  108. {yandexcloud-0.342.0.dist-info → yandexcloud-0.344.0.dist-info}/WHEEL +0 -0
  109. {yandexcloud-0.342.0.dist-info → yandexcloud-0.344.0.dist-info}/top_level.txt +0 -0
@@ -23,10 +23,11 @@ _sym_db = _symbol_database.Default()
23
23
 
24
24
 
25
25
  from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
+ from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2
26
27
  from yandex.cloud.ai.batch_inference.v1 import inference_options_pb2 as yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_inference__options__pb2
27
28
 
28
29
 
29
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n=yandex/cloud/ai/batch_inference/v1/batch_inference_task.proto\x12\"yandex.cloud.ai.batch_inference.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a:yandex/cloud/ai/batch_inference/v1/inference_options.proto\"\xe9\x05\n\x12\x42\x61tchInferenceTask\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x11\n\tfolder_id\x18\x03 \x01(\t\x12\x11\n\tmodel_uri\x18\x04 \x01(\t\x12\x19\n\x11source_dataset_id\x18\x05 \x01(\t\x12X\n\x12\x63ompletion_request\x18\x06 \x01(\x0b\x32:.yandex.cloud.ai.batch_inference.v1.BatchCompletionRequestH\x00\x12M\n\x06status\x18\x07 \x01(\x0e\x32=.yandex.cloud.ai.batch_inference.v1.BatchInferenceTask.Status\x12\x19\n\x11result_dataset_id\x18\x08 \x01(\t\x12R\n\x06labels\x18\t \x03(\x0b\x32\x42.yandex.cloud.ai.batch_inference.v1.BatchInferenceTask.LabelsEntry\x12\x12\n\ncreated_by\x18\n \x01(\t\x12.\n\ncreated_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstarted_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inished_at\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"t\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\r\n\tCOMPLETED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x0c\n\x08\x43\x41NCELED\x10\x06\x42\t\n\x07requestBu\n&yandex.cloud.api.ai.batch_inference.v1ZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/batch_inference/v1;fomob\x06proto3')
30
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n=yandex/cloud/ai/batch_inference/v1/batch_inference_task.proto\x12\"yandex.cloud.ai.batch_inference.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a:yandex/cloud/ai/batch_inference/v1/inference_options.proto\"\xc4\t\n\x12\x42\x61tchInferenceTask\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x11\n\tfolder_id\x18\x03 \x01(\t\x12\x11\n\tmodel_uri\x18\x04 \x01(\t\x12\x19\n\x11source_dataset_id\x18\x05 \x01(\t\x12X\n\x12\x63ompletion_request\x18\x06 \x01(\x0b\x32:.yandex.cloud.ai.batch_inference.v1.BatchCompletionRequestH\x00\x12M\n\x06status\x18\x07 \x01(\x0e\x32=.yandex.cloud.ai.batch_inference.v1.BatchInferenceTask.Status\x12\x19\n\x11result_dataset_id\x18\x08 \x01(\t\x12R\n\x06labels\x18\t \x03(\x0b\x32\x42.yandex.cloud.ai.batch_inference.v1.BatchInferenceTask.LabelsEntry\x12\x12\n\ncreated_by\x18\n \x01(\t\x12.\n\ncreated_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstarted_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inished_at\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12Q\n\x06\x65rrors\x18\x0e \x01(\x0b\x32\x41.yandex.cloud.ai.batch_inference.v1.BatchInferenceTask.ErrorsInfo\x1a\x85\x03\n\nErrorsInfo\x12\"\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12`\n\x0bline_errors\x18\x02 \x03(\x0b\x32K.yandex.cloud.ai.batch_inference.v1.BatchInferenceTask.ErrorsInfo.LineError\x12\x62\n\x0c\x62\x61tch_errors\x18\x03 \x03(\x0b\x32L.yandex.cloud.ai.batch_inference.v1.BatchInferenceTask.ErrorsInfo.BatchError\x1a\x31\n\tLineError\x12\x13\n\x0bline_number\x18\x01 \x01(\x03\x12\x0f\n\x07message\x18\x02 \x01(\t\x1aZ\n\nBatchError\x12\x14\n\x0c\x62\x61tch_number\x18\x01 \x01(\x03\x12\x12\n\nfirst_line\x18\x02 \x01(\x03\x12\x11\n\tlast_line\x18\x03 \x01(\x03\x12\x0f\n\x07message\x18\x04 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"t\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\r\n\tCOMPLETED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x0c\n\x08\x43\x41NCELED\x10\x06\x42\t\n\x07requestBu\n&yandex.cloud.api.ai.batch_inference.v1ZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/batch_inference/v1;fomob\x06proto3')
30
31
 
31
32
  _globals = globals()
32
33
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -36,10 +37,16 @@ if not _descriptor._USE_C_DESCRIPTORS:
36
37
  _globals['DESCRIPTOR']._serialized_options = b'\n&yandex.cloud.api.ai.batch_inference.v1ZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/batch_inference/v1;fomo'
37
38
  _globals['_BATCHINFERENCETASK_LABELSENTRY']._loaded_options = None
38
39
  _globals['_BATCHINFERENCETASK_LABELSENTRY']._serialized_options = b'8\001'
39
- _globals['_BATCHINFERENCETASK']._serialized_start=195
40
- _globals['_BATCHINFERENCETASK']._serialized_end=940
41
- _globals['_BATCHINFERENCETASK_LABELSENTRY']._serialized_start=766
42
- _globals['_BATCHINFERENCETASK_LABELSENTRY']._serialized_end=811
43
- _globals['_BATCHINFERENCETASK_STATUS']._serialized_start=813
44
- _globals['_BATCHINFERENCETASK_STATUS']._serialized_end=929
40
+ _globals['_BATCHINFERENCETASK']._serialized_start=220
41
+ _globals['_BATCHINFERENCETASK']._serialized_end=1440
42
+ _globals['_BATCHINFERENCETASK_ERRORSINFO']._serialized_start=875
43
+ _globals['_BATCHINFERENCETASK_ERRORSINFO']._serialized_end=1264
44
+ _globals['_BATCHINFERENCETASK_ERRORSINFO_LINEERROR']._serialized_start=1123
45
+ _globals['_BATCHINFERENCETASK_ERRORSINFO_LINEERROR']._serialized_end=1172
46
+ _globals['_BATCHINFERENCETASK_ERRORSINFO_BATCHERROR']._serialized_start=1174
47
+ _globals['_BATCHINFERENCETASK_ERRORSINFO_BATCHERROR']._serialized_end=1264
48
+ _globals['_BATCHINFERENCETASK_LABELSENTRY']._serialized_start=1266
49
+ _globals['_BATCHINFERENCETASK_LABELSENTRY']._serialized_end=1311
50
+ _globals['_BATCHINFERENCETASK_STATUS']._serialized_start=1313
51
+ _globals['_BATCHINFERENCETASK_STATUS']._serialized_end=1429
45
52
  # @@protoc_insertion_point(module_scope)
@@ -10,6 +10,7 @@ import google.protobuf.internal.containers
10
10
  import google.protobuf.internal.enum_type_wrapper
11
11
  import google.protobuf.message
12
12
  import google.protobuf.timestamp_pb2
13
+ import google.rpc.status_pb2
13
14
  import sys
14
15
  import typing
15
16
  import yandex.cloud.ai.batch_inference.v1.inference_options_pb2
@@ -48,6 +49,74 @@ class BatchInferenceTask(google.protobuf.message.Message):
48
49
  FAILED: BatchInferenceTask.Status.ValueType # 5
49
50
  CANCELED: BatchInferenceTask.Status.ValueType # 6
50
51
 
52
+ @typing.final
53
+ class ErrorsInfo(google.protobuf.message.Message):
54
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
55
+
56
+ @typing.final
57
+ class LineError(google.protobuf.message.Message):
58
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
59
+
60
+ LINE_NUMBER_FIELD_NUMBER: builtins.int
61
+ MESSAGE_FIELD_NUMBER: builtins.int
62
+ line_number: builtins.int
63
+ message: builtins.str
64
+ def __init__(
65
+ self,
66
+ *,
67
+ line_number: builtins.int = ...,
68
+ message: builtins.str = ...,
69
+ ) -> None: ...
70
+ def ClearField(self, field_name: typing.Literal["line_number", b"line_number", "message", b"message"]) -> None: ...
71
+
72
+ @typing.final
73
+ class BatchError(google.protobuf.message.Message):
74
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
75
+
76
+ BATCH_NUMBER_FIELD_NUMBER: builtins.int
77
+ FIRST_LINE_FIELD_NUMBER: builtins.int
78
+ LAST_LINE_FIELD_NUMBER: builtins.int
79
+ MESSAGE_FIELD_NUMBER: builtins.int
80
+ batch_number: builtins.int
81
+ first_line: builtins.int
82
+ """Range of lines in batch"""
83
+ last_line: builtins.int
84
+ message: builtins.str
85
+ def __init__(
86
+ self,
87
+ *,
88
+ batch_number: builtins.int = ...,
89
+ first_line: builtins.int = ...,
90
+ last_line: builtins.int = ...,
91
+ message: builtins.str = ...,
92
+ ) -> None: ...
93
+ def ClearField(self, field_name: typing.Literal["batch_number", b"batch_number", "first_line", b"first_line", "last_line", b"last_line", "message", b"message"]) -> None: ...
94
+
95
+ STATUS_FIELD_NUMBER: builtins.int
96
+ LINE_ERRORS_FIELD_NUMBER: builtins.int
97
+ BATCH_ERRORS_FIELD_NUMBER: builtins.int
98
+ @property
99
+ def status(self) -> google.rpc.status_pb2.Status:
100
+ """If set and not OK - task failed"""
101
+
102
+ @property
103
+ def line_errors(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BatchInferenceTask.ErrorsInfo.LineError]:
104
+ """Errors by lines"""
105
+
106
+ @property
107
+ def batch_errors(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BatchInferenceTask.ErrorsInfo.BatchError]:
108
+ """Errors by batches"""
109
+
110
+ def __init__(
111
+ self,
112
+ *,
113
+ status: google.rpc.status_pb2.Status | None = ...,
114
+ line_errors: collections.abc.Iterable[global___BatchInferenceTask.ErrorsInfo.LineError] | None = ...,
115
+ batch_errors: collections.abc.Iterable[global___BatchInferenceTask.ErrorsInfo.BatchError] | None = ...,
116
+ ) -> None: ...
117
+ def HasField(self, field_name: typing.Literal["status", b"status"]) -> builtins.bool: ...
118
+ def ClearField(self, field_name: typing.Literal["batch_errors", b"batch_errors", "line_errors", b"line_errors", "status", b"status"]) -> None: ...
119
+
51
120
  @typing.final
52
121
  class LabelsEntry(google.protobuf.message.Message):
53
122
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -77,6 +146,7 @@ class BatchInferenceTask(google.protobuf.message.Message):
77
146
  CREATED_AT_FIELD_NUMBER: builtins.int
78
147
  STARTED_AT_FIELD_NUMBER: builtins.int
79
148
  FINISHED_AT_FIELD_NUMBER: builtins.int
149
+ ERRORS_FIELD_NUMBER: builtins.int
80
150
  task_id: builtins.str
81
151
  operation_id: builtins.str
82
152
  folder_id: builtins.str
@@ -95,6 +165,8 @@ class BatchInferenceTask(google.protobuf.message.Message):
95
165
  def started_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
96
166
  @property
97
167
  def finished_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
168
+ @property
169
+ def errors(self) -> global___BatchInferenceTask.ErrorsInfo: ...
98
170
  def __init__(
99
171
  self,
100
172
  *,
@@ -111,9 +183,10 @@ class BatchInferenceTask(google.protobuf.message.Message):
111
183
  created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
112
184
  started_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
113
185
  finished_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
186
+ errors: global___BatchInferenceTask.ErrorsInfo | None = ...,
114
187
  ) -> None: ...
115
- def HasField(self, field_name: typing.Literal["completion_request", b"completion_request", "created_at", b"created_at", "finished_at", b"finished_at", "request", b"request", "started_at", b"started_at"]) -> builtins.bool: ...
116
- def ClearField(self, field_name: typing.Literal["completion_request", b"completion_request", "created_at", b"created_at", "created_by", b"created_by", "finished_at", b"finished_at", "folder_id", b"folder_id", "labels", b"labels", "model_uri", b"model_uri", "operation_id", b"operation_id", "request", b"request", "result_dataset_id", b"result_dataset_id", "source_dataset_id", b"source_dataset_id", "started_at", b"started_at", "status", b"status", "task_id", b"task_id"]) -> None: ...
188
+ def HasField(self, field_name: typing.Literal["completion_request", b"completion_request", "created_at", b"created_at", "errors", b"errors", "finished_at", b"finished_at", "request", b"request", "started_at", b"started_at"]) -> builtins.bool: ...
189
+ def ClearField(self, field_name: typing.Literal["completion_request", b"completion_request", "created_at", b"created_at", "created_by", b"created_by", "errors", b"errors", "finished_at", b"finished_at", "folder_id", b"folder_id", "labels", b"labels", "model_uri", b"model_uri", "operation_id", b"operation_id", "request", b"request", "result_dataset_id", b"result_dataset_id", "source_dataset_id", b"source_dataset_id", "started_at", b"started_at", "status", b"status", "task_id", b"task_id"]) -> None: ...
117
190
  def WhichOneof(self, oneof_group: typing.Literal["request", b"request"]) -> typing.Literal["completion_request"] | None: ...
118
191
 
119
192
  global___BatchInferenceTask = BatchInferenceTask
@@ -24,7 +24,7 @@ _sym_db = _symbol_database.Default()
24
24
 
25
25
 
26
26
 
27
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n yandex/cloud/ai/tts/v3/tts.proto\x12\x10speechkit.tts.v3\"j\n\x0c\x41udioContent\x12\x11\n\x07\x63ontent\x18\x01 \x01(\x0cH\x00\x12\x38\n\naudio_spec\x18\x02 \x01(\x0b\x32$.speechkit.tts.v3.AudioFormatOptionsB\r\n\x0b\x41udioSource\"\x91\x01\n\x12\x41udioFormatOptions\x12/\n\traw_audio\x18\x01 \x01(\x0b\x32\x1a.speechkit.tts.v3.RawAudioH\x00\x12;\n\x0f\x63ontainer_audio\x18\x02 \x01(\x0b\x32 .speechkit.tts.v3.ContainerAudioH\x00\x42\r\n\x0b\x41udioFormat\"\xaa\x01\n\x08RawAudio\x12@\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32(.speechkit.tts.v3.RawAudio.AudioEncoding\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x03\"A\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x10\n\x0cLINEAR16_PCM\x10\x01\"\xbf\x01\n\x0e\x43ontainerAudio\x12Q\n\x14\x63ontainer_audio_type\x18\x01 \x01(\x0e\x32\x33.speechkit.tts.v3.ContainerAudio.ContainerAudioType\"Z\n\x12\x43ontainerAudioType\x12$\n CONTAINER_AUDIO_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03WAV\x10\x01\x12\x0c\n\x08OGG_OPUS\x10\x02\x12\x07\n\x03MP3\x10\x03\"=\n\x0cTextVariable\x12\x15\n\rvariable_name\x18\x01 \x01(\t\x12\x16\n\x0evariable_value\x18\x02 \x01(\t\"]\n\rAudioVariable\x12\x15\n\rvariable_name\x18\x01 \x01(\t\x12\x19\n\x11variable_start_ms\x18\x02 \x01(\x03\x12\x1a\n\x12variable_length_ms\x18\x03 \x01(\x03\"\xa5\x01\n\x1aUtteranceSynthesisResponse\x12\x31\n\x0b\x61udio_chunk\x18\x01 \x01(\x0b\x32\x1c.speechkit.tts.v3.AudioChunk\x12/\n\ntext_chunk\x18\x02 \x01(\x0b\x32\x1b.speechkit.tts.v3.TextChunk\x12\x10\n\x08start_ms\x18\x03 \x01(\x03\x12\x11\n\tlength_ms\x18\x04 \x01(\x03\"\xa9\x01\n\rAudioTemplate\x12-\n\x05\x61udio\x18\x01 \x01(\x0b\x32\x1e.speechkit.tts.v3.AudioContent\x12\x35\n\rtext_template\x18\x02 \x01(\x0b\x32\x1e.speechkit.tts.v3.TextTemplate\x12\x32\n\tvariables\x18\x03 \x03(\x0b\x32\x1f.speechkit.tts.v3.AudioVariable\"\x1a\n\nAudioChunk\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"\x19\n\tTextChunk\x12\x0c\n\x04text\x18\x01 \x01(\t\"X\n\x0cTextTemplate\x12\x15\n\rtext_template\x18\x01 \x01(\t\x12\x31\n\tvariables\x18\x02 \x03(\x0b\x32\x1e.speechkit.tts.v3.TextVariable\"\xda\x01\n\x0c\x44urationHint\x12\x41\n\x06policy\x18\x01 \x01(\x0e\x32\x31.speechkit.tts.v3.DurationHint.DurationHintPolicy\x12\x13\n\x0b\x64uration_ms\x18\x02 \x01(\x03\"r\n\x12\x44urationHintPolicy\x12$\n DURATION_HINT_POLICY_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x45XACT_DURATION\x10\x01\x12\x10\n\x0cMIN_DURATION\x10\x02\x12\x10\n\x0cMAX_DURATION\x10\x03\"\xd9\x01\n\x05Hints\x12\x0f\n\x05voice\x18\x01 \x01(\tH\x00\x12\x39\n\x0e\x61udio_template\x18\x02 \x01(\x0b\x32\x1f.speechkit.tts.v3.AudioTemplateH\x00\x12\x0f\n\x05speed\x18\x03 \x01(\x01H\x00\x12\x10\n\x06volume\x18\x04 \x01(\x01H\x00\x12\x0e\n\x04role\x18\x05 \x01(\tH\x00\x12\x15\n\x0bpitch_shift\x18\x06 \x01(\x01H\x00\x12\x32\n\x08\x64uration\x18\x07 \x01(\x0b\x32\x1e.speechkit.tts.v3.DurationHintH\x00\x42\x06\n\x04Hint\"\xcc\x03\n\x19UtteranceSynthesisRequest\x12\r\n\x05model\x18\x01 \x01(\t\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x12\x37\n\rtext_template\x18\x03 \x01(\x0b\x32\x1e.speechkit.tts.v3.TextTemplateH\x00\x12&\n\x05hints\x18\x04 \x03(\x0b\x32\x17.speechkit.tts.v3.Hints\x12?\n\x11output_audio_spec\x18\x05 \x01(\x0b\x32$.speechkit.tts.v3.AudioFormatOptions\x12j\n\x1bloudness_normalization_type\x18\x06 \x01(\x0e\x32\x45.speechkit.tts.v3.UtteranceSynthesisRequest.LoudnessNormalizationType\x12\x13\n\x0bunsafe_mode\x18\x07 \x01(\x08\"`\n\x19LoudnessNormalizationType\x12+\n\'LOUDNESS_NORMALIZATION_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08MAX_PEAK\x10\x01\x12\x08\n\x04LUFS\x10\x02\x42\x0b\n\tUtteranceB\\\n\x1ayandex.cloud.api.ai.tts.v3Z>github.com/yandex-cloud/go-genproto/yandex/cloud/ai/tts/v3;ttsb\x06proto3')
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n yandex/cloud/ai/tts/v3/tts.proto\x12\x10speechkit.tts.v3\"j\n\x0c\x41udioContent\x12\x11\n\x07\x63ontent\x18\x01 \x01(\x0cH\x00\x12\x38\n\naudio_spec\x18\x02 \x01(\x0b\x32$.speechkit.tts.v3.AudioFormatOptionsB\r\n\x0b\x41udioSource\"\x91\x01\n\x12\x41udioFormatOptions\x12/\n\traw_audio\x18\x01 \x01(\x0b\x32\x1a.speechkit.tts.v3.RawAudioH\x00\x12;\n\x0f\x63ontainer_audio\x18\x02 \x01(\x0b\x32 .speechkit.tts.v3.ContainerAudioH\x00\x42\r\n\x0b\x41udioFormat\"\xaa\x01\n\x08RawAudio\x12@\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32(.speechkit.tts.v3.RawAudio.AudioEncoding\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x03\"A\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x10\n\x0cLINEAR16_PCM\x10\x01\"\xbf\x01\n\x0e\x43ontainerAudio\x12Q\n\x14\x63ontainer_audio_type\x18\x01 \x01(\x0e\x32\x33.speechkit.tts.v3.ContainerAudio.ContainerAudioType\"Z\n\x12\x43ontainerAudioType\x12$\n CONTAINER_AUDIO_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03WAV\x10\x01\x12\x0c\n\x08OGG_OPUS\x10\x02\x12\x07\n\x03MP3\x10\x03\"=\n\x0cTextVariable\x12\x15\n\rvariable_name\x18\x01 \x01(\t\x12\x16\n\x0evariable_value\x18\x02 \x01(\t\"]\n\rAudioVariable\x12\x15\n\rvariable_name\x18\x01 \x01(\t\x12\x19\n\x11variable_start_ms\x18\x02 \x01(\x03\x12\x1a\n\x12variable_length_ms\x18\x03 \x01(\x03\"\xa5\x01\n\x1aUtteranceSynthesisResponse\x12\x31\n\x0b\x61udio_chunk\x18\x01 \x01(\x0b\x32\x1c.speechkit.tts.v3.AudioChunk\x12/\n\ntext_chunk\x18\x02 \x01(\x0b\x32\x1b.speechkit.tts.v3.TextChunk\x12\x10\n\x08start_ms\x18\x03 \x01(\x03\x12\x11\n\tlength_ms\x18\x04 \x01(\x03\"\xa9\x01\n\rAudioTemplate\x12-\n\x05\x61udio\x18\x01 \x01(\x0b\x32\x1e.speechkit.tts.v3.AudioContent\x12\x35\n\rtext_template\x18\x02 \x01(\x0b\x32\x1e.speechkit.tts.v3.TextTemplate\x12\x32\n\tvariables\x18\x03 \x03(\x0b\x32\x1f.speechkit.tts.v3.AudioVariable\"\x1a\n\nAudioChunk\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"\x19\n\tTextChunk\x12\x0c\n\x04text\x18\x01 \x01(\t\"X\n\x0cTextTemplate\x12\x15\n\rtext_template\x18\x01 \x01(\t\x12\x31\n\tvariables\x18\x02 \x03(\x0b\x32\x1e.speechkit.tts.v3.TextVariable\"\xda\x01\n\x0c\x44urationHint\x12\x41\n\x06policy\x18\x01 \x01(\x0e\x32\x31.speechkit.tts.v3.DurationHint.DurationHintPolicy\x12\x13\n\x0b\x64uration_ms\x18\x02 \x01(\x03\"r\n\x12\x44urationHintPolicy\x12$\n DURATION_HINT_POLICY_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x45XACT_DURATION\x10\x01\x12\x10\n\x0cMIN_DURATION\x10\x02\x12\x10\n\x0cMAX_DURATION\x10\x03\"\xd9\x01\n\x05Hints\x12\x0f\n\x05voice\x18\x01 \x01(\tH\x00\x12\x39\n\x0e\x61udio_template\x18\x02 \x01(\x0b\x32\x1f.speechkit.tts.v3.AudioTemplateH\x00\x12\x0f\n\x05speed\x18\x03 \x01(\x01H\x00\x12\x10\n\x06volume\x18\x04 \x01(\x01H\x00\x12\x0e\n\x04role\x18\x05 \x01(\tH\x00\x12\x15\n\x0bpitch_shift\x18\x06 \x01(\x01H\x00\x12\x32\n\x08\x64uration\x18\x07 \x01(\x0b\x32\x1e.speechkit.tts.v3.DurationHintH\x00\x42\x06\n\x04Hint\"\xcc\x03\n\x19UtteranceSynthesisRequest\x12\r\n\x05model\x18\x01 \x01(\t\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x12\x37\n\rtext_template\x18\x03 \x01(\x0b\x32\x1e.speechkit.tts.v3.TextTemplateH\x00\x12&\n\x05hints\x18\x04 \x03(\x0b\x32\x17.speechkit.tts.v3.Hints\x12?\n\x11output_audio_spec\x18\x05 \x01(\x0b\x32$.speechkit.tts.v3.AudioFormatOptions\x12j\n\x1bloudness_normalization_type\x18\x06 \x01(\x0e\x32\x45.speechkit.tts.v3.UtteranceSynthesisRequest.LoudnessNormalizationType\x12\x13\n\x0bunsafe_mode\x18\x07 \x01(\x08\"`\n\x19LoudnessNormalizationType\x12+\n\'LOUDNESS_NORMALIZATION_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08MAX_PEAK\x10\x01\x12\x08\n\x04LUFS\x10\x02\x42\x0b\n\tUtterance\"\x85\x02\n\x10SynthesisOptions\x12\r\n\x05model\x18\x01 \x01(\t\x12\r\n\x05voice\x18\x02 \x01(\t\x12\x0c\n\x04role\x18\x03 \x01(\t\x12\r\n\x05speed\x18\x04 \x01(\x01\x12\x0e\n\x06volume\x18\x05 \x01(\x01\x12\x13\n\x0bpitch_shift\x18\x06 \x01(\x01\x12?\n\x11output_audio_spec\x18\x07 \x01(\x0b\x32$.speechkit.tts.v3.AudioFormatOptions\x12P\n\x1bloudness_normalization_type\x18\x08 \x01(\x0e\x32+.speechkit.tts.v3.LoudnessNormalizationType\"\x1e\n\x0eSynthesisInput\x12\x0c\n\x04text\x18\x01 \x01(\t\"\x15\n\x13\x46orceSynthesisEvent\"\xd7\x01\n\x16StreamSynthesisRequest\x12\x35\n\x07options\x18\x01 \x01(\x0b\x32\".speechkit.tts.v3.SynthesisOptionsH\x00\x12;\n\x0fsynthesis_input\x18\x02 \x01(\x0b\x32 .speechkit.tts.v3.SynthesisInputH\x00\x12@\n\x0f\x66orce_synthesis\x18\x03 \x01(\x0b\x32%.speechkit.tts.v3.ForceSynthesisEventH\x00\x42\x07\n\x05\x45vent\"\xa2\x01\n\x17StreamSynthesisResponse\x12\x31\n\x0b\x61udio_chunk\x18\x01 \x01(\x0b\x32\x1c.speechkit.tts.v3.AudioChunk\x12/\n\ntext_chunk\x18\x02 \x01(\x0b\x32\x1b.speechkit.tts.v3.TextChunk\x12\x10\n\x08start_ms\x18\x03 \x01(\x03\x12\x11\n\tlength_ms\x18\x04 \x01(\x03*`\n\x19LoudnessNormalizationType\x12+\n\'LOUDNESS_NORMALIZATION_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08MAX_PEAK\x10\x01\x12\x08\n\x04LUFS\x10\x02\x42\\\n\x1ayandex.cloud.api.ai.tts.v3Z>github.com/yandex-cloud/go-genproto/yandex/cloud/ai/tts/v3;ttsb\x06proto3')
28
28
 
29
29
  _globals = globals()
30
30
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -32,6 +32,8 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.ai.tts.v3.tts_
32
32
  if not _descriptor._USE_C_DESCRIPTORS:
33
33
  _globals['DESCRIPTOR']._loaded_options = None
34
34
  _globals['DESCRIPTOR']._serialized_options = b'\n\032yandex.cloud.api.ai.tts.v3Z>github.com/yandex-cloud/go-genproto/yandex/cloud/ai/tts/v3;tts'
35
+ _globals['_LOUDNESSNORMALIZATIONTYPE']._serialized_start=2113
36
+ _globals['_LOUDNESSNORMALIZATIONTYPE']._serialized_end=2209
35
37
  _globals['_AUDIOCONTENT']._serialized_start=54
36
38
  _globals['_AUDIOCONTENT']._serialized_end=160
37
39
  _globals['_AUDIOFORMATOPTIONS']._serialized_start=163
@@ -68,4 +70,14 @@ if not _descriptor._USE_C_DESCRIPTORS:
68
70
  _globals['_UTTERANCESYNTHESISREQUEST']._serialized_end=2222
69
71
  _globals['_UTTERANCESYNTHESISREQUEST_LOUDNESSNORMALIZATIONTYPE']._serialized_start=2113
70
72
  _globals['_UTTERANCESYNTHESISREQUEST_LOUDNESSNORMALIZATIONTYPE']._serialized_end=2209
73
+ _globals['_SYNTHESISOPTIONS']._serialized_start=2225
74
+ _globals['_SYNTHESISOPTIONS']._serialized_end=2486
75
+ _globals['_SYNTHESISINPUT']._serialized_start=2488
76
+ _globals['_SYNTHESISINPUT']._serialized_end=2518
77
+ _globals['_FORCESYNTHESISEVENT']._serialized_start=2520
78
+ _globals['_FORCESYNTHESISEVENT']._serialized_end=2541
79
+ _globals['_STREAMSYNTHESISREQUEST']._serialized_start=2544
80
+ _globals['_STREAMSYNTHESISREQUEST']._serialized_end=2759
81
+ _globals['_STREAMSYNTHESISRESPONSE']._serialized_start=2762
82
+ _globals['_STREAMSYNTHESISRESPONSE']._serialized_end=2924
71
83
  # @@protoc_insertion_point(module_scope)
@@ -19,6 +19,30 @@ else:
19
19
 
20
20
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
21
21
 
22
+ class _LoudnessNormalizationType:
23
+ ValueType = typing.NewType("ValueType", builtins.int)
24
+ V: typing_extensions.TypeAlias = ValueType
25
+
26
+ class _LoudnessNormalizationTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_LoudnessNormalizationType.ValueType], builtins.type):
27
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
28
+ LOUDNESS_NORMALIZATION_TYPE_UNSPECIFIED: _LoudnessNormalizationType.ValueType # 0
29
+ """Unspecified loudness normalization. The default behavior will be used."""
30
+ MAX_PEAK: _LoudnessNormalizationType.ValueType # 1
31
+ """The type of normalization, wherein the gain is changed to bring the highest PCM sample value or analog signal peak to a given level."""
32
+ LUFS: _LoudnessNormalizationType.ValueType # 2
33
+ """The type of normalization based on EBU R 128 recommendation."""
34
+
35
+ class LoudnessNormalizationType(_LoudnessNormalizationType, metaclass=_LoudnessNormalizationTypeEnumTypeWrapper):
36
+ """Specifies the loudness normalization algorithm to use when synthesizing audio."""
37
+
38
+ LOUDNESS_NORMALIZATION_TYPE_UNSPECIFIED: LoudnessNormalizationType.ValueType # 0
39
+ """Unspecified loudness normalization. The default behavior will be used."""
40
+ MAX_PEAK: LoudnessNormalizationType.ValueType # 1
41
+ """The type of normalization, wherein the gain is changed to bring the highest PCM sample value or analog signal peak to a given level."""
42
+ LUFS: LoudnessNormalizationType.ValueType # 2
43
+ """The type of normalization based on EBU R 128 recommendation."""
44
+ global___LoudnessNormalizationType = LoudnessNormalizationType
45
+
22
46
  @typing.final
23
47
  class AudioContent(google.protobuf.message.Message):
24
48
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -472,3 +496,150 @@ class UtteranceSynthesisRequest(google.protobuf.message.Message):
472
496
  def WhichOneof(self, oneof_group: typing.Literal["Utterance", b"Utterance"]) -> typing.Literal["text", "text_template"] | None: ...
473
497
 
474
498
  global___UtteranceSynthesisRequest = UtteranceSynthesisRequest
499
+
500
+ @typing.final
501
+ class SynthesisOptions(google.protobuf.message.Message):
502
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
503
+
504
+ MODEL_FIELD_NUMBER: builtins.int
505
+ VOICE_FIELD_NUMBER: builtins.int
506
+ ROLE_FIELD_NUMBER: builtins.int
507
+ SPEED_FIELD_NUMBER: builtins.int
508
+ VOLUME_FIELD_NUMBER: builtins.int
509
+ PITCH_SHIFT_FIELD_NUMBER: builtins.int
510
+ OUTPUT_AUDIO_SPEC_FIELD_NUMBER: builtins.int
511
+ LOUDNESS_NORMALIZATION_TYPE_FIELD_NUMBER: builtins.int
512
+ model: builtins.str
513
+ """The name of the TTS model to use for synthesis. Currently should be empty. Do not use it."""
514
+ voice: builtins.str
515
+ """The voice to use for speech synthesis."""
516
+ role: builtins.str
517
+ """The role or speaking style. Can be used to specify pronunciation character for the speaker."""
518
+ speed: builtins.float
519
+ """Speed multiplier (default: 1.0)."""
520
+ volume: builtins.float
521
+ """Volume adjustment:
522
+ * For `MAX_PEAK`: range is (0, 1], default 0.7.
523
+ * For `LUFS`: range is [-145, 0), default -19.
524
+ """
525
+ pitch_shift: builtins.float
526
+ """Pitch adjustment, in Hz, range [-1000, 1000], default 0."""
527
+ loudness_normalization_type: global___LoudnessNormalizationType.ValueType
528
+ """Loudness normalization type for output (default: `LUFS`)."""
529
+ @property
530
+ def output_audio_spec(self) -> global___AudioFormatOptions:
531
+ """Specifies output audio format. Default: 22050Hz, linear 16-bit signed little-endian PCM, with WAV header."""
532
+
533
+ def __init__(
534
+ self,
535
+ *,
536
+ model: builtins.str = ...,
537
+ voice: builtins.str = ...,
538
+ role: builtins.str = ...,
539
+ speed: builtins.float = ...,
540
+ volume: builtins.float = ...,
541
+ pitch_shift: builtins.float = ...,
542
+ output_audio_spec: global___AudioFormatOptions | None = ...,
543
+ loudness_normalization_type: global___LoudnessNormalizationType.ValueType = ...,
544
+ ) -> None: ...
545
+ def HasField(self, field_name: typing.Literal["output_audio_spec", b"output_audio_spec"]) -> builtins.bool: ...
546
+ def ClearField(self, field_name: typing.Literal["loudness_normalization_type", b"loudness_normalization_type", "model", b"model", "output_audio_spec", b"output_audio_spec", "pitch_shift", b"pitch_shift", "role", b"role", "speed", b"speed", "voice", b"voice", "volume", b"volume"]) -> None: ...
547
+
548
+ global___SynthesisOptions = SynthesisOptions
549
+
550
+ @typing.final
551
+ class SynthesisInput(google.protobuf.message.Message):
552
+ """The input for synthesis."""
553
+
554
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
555
+
556
+ TEXT_FIELD_NUMBER: builtins.int
557
+ text: builtins.str
558
+ """The text string to be synthesized."""
559
+ def __init__(
560
+ self,
561
+ *,
562
+ text: builtins.str = ...,
563
+ ) -> None: ...
564
+ def ClearField(self, field_name: typing.Literal["text", b"text"]) -> None: ...
565
+
566
+ global___SynthesisInput = SynthesisInput
567
+
568
+ @typing.final
569
+ class ForceSynthesisEvent(google.protobuf.message.Message):
570
+ """Event to forcibly trigger synthesis."""
571
+
572
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
573
+
574
+ def __init__(
575
+ self,
576
+ ) -> None: ...
577
+
578
+ global___ForceSynthesisEvent = ForceSynthesisEvent
579
+
580
+ @typing.final
581
+ class StreamSynthesisRequest(google.protobuf.message.Message):
582
+ """Sent by client to control or provide data during streaming synthesis."""
583
+
584
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
585
+
586
+ OPTIONS_FIELD_NUMBER: builtins.int
587
+ SYNTHESIS_INPUT_FIELD_NUMBER: builtins.int
588
+ FORCE_SYNTHESIS_FIELD_NUMBER: builtins.int
589
+ @property
590
+ def options(self) -> global___SynthesisOptions:
591
+ """Synthesis options. Must be provided in the first request of the stream and cannot be updated afterwards."""
592
+
593
+ @property
594
+ def synthesis_input(self) -> global___SynthesisInput:
595
+ """Input to be synthesized."""
596
+
597
+ @property
598
+ def force_synthesis(self) -> global___ForceSynthesisEvent:
599
+ """Triggers immediate synthesis of buffered input."""
600
+
601
+ def __init__(
602
+ self,
603
+ *,
604
+ options: global___SynthesisOptions | None = ...,
605
+ synthesis_input: global___SynthesisInput | None = ...,
606
+ force_synthesis: global___ForceSynthesisEvent | None = ...,
607
+ ) -> None: ...
608
+ def HasField(self, field_name: typing.Literal["Event", b"Event", "force_synthesis", b"force_synthesis", "options", b"options", "synthesis_input", b"synthesis_input"]) -> builtins.bool: ...
609
+ def ClearField(self, field_name: typing.Literal["Event", b"Event", "force_synthesis", b"force_synthesis", "options", b"options", "synthesis_input", b"synthesis_input"]) -> None: ...
610
+ def WhichOneof(self, oneof_group: typing.Literal["Event", b"Event"]) -> typing.Literal["options", "synthesis_input", "force_synthesis"] | None: ...
611
+
612
+ global___StreamSynthesisRequest = StreamSynthesisRequest
613
+
614
+ @typing.final
615
+ class StreamSynthesisResponse(google.protobuf.message.Message):
616
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
617
+
618
+ AUDIO_CHUNK_FIELD_NUMBER: builtins.int
619
+ TEXT_CHUNK_FIELD_NUMBER: builtins.int
620
+ START_MS_FIELD_NUMBER: builtins.int
621
+ LENGTH_MS_FIELD_NUMBER: builtins.int
622
+ start_ms: builtins.int
623
+ """Start time of the audio chunk in milliseconds."""
624
+ length_ms: builtins.int
625
+ """Length of the audio chunk in milliseconds."""
626
+ @property
627
+ def audio_chunk(self) -> global___AudioChunk:
628
+ """Part of synthesized audio."""
629
+
630
+ @property
631
+ def text_chunk(self) -> global___TextChunk:
632
+ """Part of synthesized text."""
633
+
634
+ def __init__(
635
+ self,
636
+ *,
637
+ audio_chunk: global___AudioChunk | None = ...,
638
+ text_chunk: global___TextChunk | None = ...,
639
+ start_ms: builtins.int = ...,
640
+ length_ms: builtins.int = ...,
641
+ ) -> None: ...
642
+ def HasField(self, field_name: typing.Literal["audio_chunk", b"audio_chunk", "text_chunk", b"text_chunk"]) -> builtins.bool: ...
643
+ def ClearField(self, field_name: typing.Literal["audio_chunk", b"audio_chunk", "length_ms", b"length_ms", "start_ms", b"start_ms", "text_chunk", b"text_chunk"]) -> None: ...
644
+
645
+ global___StreamSynthesisResponse = StreamSynthesisResponse
@@ -26,7 +26,7 @@ from yandex.cloud.ai.tts.v3 import tts_pb2 as yandex_dot_cloud_dot_ai_dot_tts_do
26
26
  from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
27
27
 
28
28
 
29
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(yandex/cloud/ai/tts/v3/tts_service.proto\x12\x10speechkit.tts.v3\x1a yandex/cloud/ai/tts/v3/tts.proto\x1a\x1cgoogle/api/annotations.proto2\xa8\x01\n\x0bSynthesizer\x12\x98\x01\n\x12UtteranceSynthesis\x12+.speechkit.tts.v3.UtteranceSynthesisRequest\x1a,.speechkit.tts.v3.UtteranceSynthesisResponse\"%\x82\xd3\xe4\x93\x02\x1f\"\x1a/tts/v3/utteranceSynthesis:\x01*0\x01\x42\\\n\x1ayandex.cloud.api.ai.tts.v3Z>github.com/yandex-cloud/go-genproto/yandex/cloud/ai/tts/v3;ttsb\x06proto3')
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(yandex/cloud/ai/tts/v3/tts_service.proto\x12\x10speechkit.tts.v3\x1a yandex/cloud/ai/tts/v3/tts.proto\x1a\x1cgoogle/api/annotations.proto2\x96\x02\n\x0bSynthesizer\x12\x98\x01\n\x12UtteranceSynthesis\x12+.speechkit.tts.v3.UtteranceSynthesisRequest\x1a,.speechkit.tts.v3.UtteranceSynthesisResponse\"%\x82\xd3\xe4\x93\x02\x1f\"\x1a/tts/v3/utteranceSynthesis:\x01*0\x01\x12l\n\x0fStreamSynthesis\x12(.speechkit.tts.v3.StreamSynthesisRequest\x1a).speechkit.tts.v3.StreamSynthesisResponse\"\x00(\x01\x30\x01\x42\\\n\x1ayandex.cloud.api.ai.tts.v3Z>github.com/yandex-cloud/go-genproto/yandex/cloud/ai/tts/v3;ttsb\x06proto3')
30
30
 
31
31
  _globals = globals()
32
32
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -37,5 +37,5 @@ if not _descriptor._USE_C_DESCRIPTORS:
37
37
  _globals['_SYNTHESIZER'].methods_by_name['UtteranceSynthesis']._loaded_options = None
38
38
  _globals['_SYNTHESIZER'].methods_by_name['UtteranceSynthesis']._serialized_options = b'\202\323\344\223\002\037\"\032/tts/v3/utteranceSynthesis:\001*'
39
39
  _globals['_SYNTHESIZER']._serialized_start=127
40
- _globals['_SYNTHESIZER']._serialized_end=295
40
+ _globals['_SYNTHESIZER']._serialized_end=405
41
41
  # @@protoc_insertion_point(module_scope)
@@ -40,6 +40,11 @@ class SynthesizerStub(object):
40
40
  request_serializer=yandex_dot_cloud_dot_ai_dot_tts_dot_v3_dot_tts__pb2.UtteranceSynthesisRequest.SerializeToString,
41
41
  response_deserializer=yandex_dot_cloud_dot_ai_dot_tts_dot_v3_dot_tts__pb2.UtteranceSynthesisResponse.FromString,
42
42
  _registered_method=True)
43
+ self.StreamSynthesis = channel.stream_stream(
44
+ '/speechkit.tts.v3.Synthesizer/StreamSynthesis',
45
+ request_serializer=yandex_dot_cloud_dot_ai_dot_tts_dot_v3_dot_tts__pb2.StreamSynthesisRequest.SerializeToString,
46
+ response_deserializer=yandex_dot_cloud_dot_ai_dot_tts_dot_v3_dot_tts__pb2.StreamSynthesisResponse.FromString,
47
+ _registered_method=True)
43
48
 
44
49
 
45
50
  class SynthesizerServicer(object):
@@ -53,6 +58,13 @@ class SynthesizerServicer(object):
53
58
  context.set_details('Method not implemented!')
54
59
  raise NotImplementedError('Method not implemented!')
55
60
 
61
+ def StreamSynthesis(self, request_iterator, context):
62
+ """Bidirectional streaming RPC for real-time synthesis.
63
+ """
64
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
65
+ context.set_details('Method not implemented!')
66
+ raise NotImplementedError('Method not implemented!')
67
+
56
68
 
57
69
  def add_SynthesizerServicer_to_server(servicer, server):
58
70
  rpc_method_handlers = {
@@ -61,6 +73,11 @@ def add_SynthesizerServicer_to_server(servicer, server):
61
73
  request_deserializer=yandex_dot_cloud_dot_ai_dot_tts_dot_v3_dot_tts__pb2.UtteranceSynthesisRequest.FromString,
62
74
  response_serializer=yandex_dot_cloud_dot_ai_dot_tts_dot_v3_dot_tts__pb2.UtteranceSynthesisResponse.SerializeToString,
63
75
  ),
76
+ 'StreamSynthesis': grpc.stream_stream_rpc_method_handler(
77
+ servicer.StreamSynthesis,
78
+ request_deserializer=yandex_dot_cloud_dot_ai_dot_tts_dot_v3_dot_tts__pb2.StreamSynthesisRequest.FromString,
79
+ response_serializer=yandex_dot_cloud_dot_ai_dot_tts_dot_v3_dot_tts__pb2.StreamSynthesisResponse.SerializeToString,
80
+ ),
64
81
  }
65
82
  generic_handler = grpc.method_handlers_generic_handler(
66
83
  'speechkit.tts.v3.Synthesizer', rpc_method_handlers)
@@ -99,3 +116,30 @@ class Synthesizer(object):
99
116
  timeout,
100
117
  metadata,
101
118
  _registered_method=True)
119
+
120
+ @staticmethod
121
+ def StreamSynthesis(request_iterator,
122
+ target,
123
+ options=(),
124
+ channel_credentials=None,
125
+ call_credentials=None,
126
+ insecure=False,
127
+ compression=None,
128
+ wait_for_ready=None,
129
+ timeout=None,
130
+ metadata=None):
131
+ return grpc.experimental.stream_stream(
132
+ request_iterator,
133
+ target,
134
+ '/speechkit.tts.v3.Synthesizer/StreamSynthesis',
135
+ yandex_dot_cloud_dot_ai_dot_tts_dot_v3_dot_tts__pb2.StreamSynthesisRequest.SerializeToString,
136
+ yandex_dot_cloud_dot_ai_dot_tts_dot_v3_dot_tts__pb2.StreamSynthesisResponse.FromString,
137
+ options,
138
+ channel_credentials,
139
+ insecure,
140
+ call_credentials,
141
+ compression,
142
+ wait_for_ready,
143
+ timeout,
144
+ metadata,
145
+ _registered_method=True)
@@ -27,6 +27,12 @@ class SynthesizerStub:
27
27
  ]
28
28
  """Synthesizing text into speech."""
29
29
 
30
+ StreamSynthesis: grpc.StreamStreamMultiCallable[
31
+ yandex.cloud.ai.tts.v3.tts_pb2.StreamSynthesisRequest,
32
+ yandex.cloud.ai.tts.v3.tts_pb2.StreamSynthesisResponse,
33
+ ]
34
+ """Bidirectional streaming RPC for real-time synthesis."""
35
+
30
36
  class SynthesizerAsyncStub:
31
37
  """A set of methods for voice synthesis."""
32
38
 
@@ -36,6 +42,12 @@ class SynthesizerAsyncStub:
36
42
  ]
37
43
  """Synthesizing text into speech."""
38
44
 
45
+ StreamSynthesis: grpc.aio.StreamStreamMultiCallable[
46
+ yandex.cloud.ai.tts.v3.tts_pb2.StreamSynthesisRequest,
47
+ yandex.cloud.ai.tts.v3.tts_pb2.StreamSynthesisResponse,
48
+ ]
49
+ """Bidirectional streaming RPC for real-time synthesis."""
50
+
39
51
  class SynthesizerServicer(metaclass=abc.ABCMeta):
40
52
  """A set of methods for voice synthesis."""
41
53
 
@@ -47,4 +59,12 @@ class SynthesizerServicer(metaclass=abc.ABCMeta):
47
59
  ) -> typing.Union[collections.abc.Iterator[yandex.cloud.ai.tts.v3.tts_pb2.UtteranceSynthesisResponse], collections.abc.AsyncIterator[yandex.cloud.ai.tts.v3.tts_pb2.UtteranceSynthesisResponse]]:
48
60
  """Synthesizing text into speech."""
49
61
 
62
+ @abc.abstractmethod
63
+ def StreamSynthesis(
64
+ self,
65
+ request_iterator: _MaybeAsyncIterator[yandex.cloud.ai.tts.v3.tts_pb2.StreamSynthesisRequest],
66
+ context: _ServicerContext,
67
+ ) -> typing.Union[collections.abc.Iterator[yandex.cloud.ai.tts.v3.tts_pb2.StreamSynthesisResponse], collections.abc.AsyncIterator[yandex.cloud.ai.tts.v3.tts_pb2.StreamSynthesisResponse]]:
68
+ """Bidirectional streaming RPC for real-time synthesis."""
69
+
50
70
  def add_SynthesizerServicer_to_server(servicer: SynthesizerServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...