| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6d04c1f commit b3cb4de
15 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -293,7 +293,7 @@ libraries: | |||
| 293 | 293 | tag_format: '{id}-v{version}' | |
| 294 | 294 | - id: google-cloud-alloydb | |
| 295 | 295 | version: 0.6.0 | |
| 296 | - last_generated_commit: 9a477cd3c26a704130e2a2fb44a40281d9312e4c | ||
| 296 | + last_generated_commit: d4a34bf03d617723146fe3ae15192c4d93981a27 | ||
| 297 | 297 | apis: | |
| 298 | 298 | - path: google/cloud/alloydb/v1beta | |
| 299 | 299 | service_config: alloydb_v1beta.yaml | |
@@ -3265,7 +3265,7 @@ libraries: | |||
| 3265 | 3265 | tag_format: '{id}-v{version}' | |
| 3266 | 3266 | - id: google-cloud-speech | |
| 3267 | 3267 | version: 2.35.0 | |
| 3268 | - last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd | ||
| 3268 | + last_generated_commit: d4a34bf03d617723146fe3ae15192c4d93981a27 | ||
| 3269 | 3269 | apis: | |
| 3270 | 3270 | - path: google/cloud/speech/v1 | |
| 3271 | 3271 | service_config: speech_v1.yaml | |
@@ -3322,7 +3322,7 @@ libraries: | |||
| 3322 | 3322 | tag_format: '{id}-v{version}' | |
| 3323 | 3323 | - id: google-cloud-storagebatchoperations | |
| 3324 | 3324 | version: 0.2.0 | |
| 3325 | - last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd | ||
| 3325 | + last_generated_commit: d4a34bf03d617723146fe3ae15192c4d93981a27 | ||
| 3326 | 3326 | apis: | |
| 3327 | 3327 | - path: google/cloud/storagebatchoperations/v1 | |
| 3328 | 3328 | service_config: storagebatchoperations_v1.yaml | |
@@ -4262,7 +4262,7 @@ libraries: | |||
| 4262 | 4262 | tag_format: '{id}-v{version}' | |
| 4263 | 4263 | - id: googleapis-common-protos | |
| 4264 | 4264 | version: 1.72.0 | |
| 4265 | - last_generated_commit: 9a477cd3c26a704130e2a2fb44a40281d9312e4c | ||
| 4265 | + last_generated_commit: d4a34bf03d617723146fe3ae15192c4d93981a27 | ||
| 4266 | 4266 | apis: | |
| 4267 | 4267 | - path: google/api | |
| 4268 | 4268 | service_config: serviceconfig.yaml | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1255,7 +1255,7 @@ async def sample_upgrade_cluster(): | |||
| 1255 | 1255 | # Initialize request argument(s) | |
| 1256 | 1256 | request = alloydb_v1alpha.UpgradeClusterRequest( | |
| 1257 | 1257 | name="name_value", | |
| 1258 | - version="POSTGRES_17", | ||
| 1258 | + version="POSTGRES_18", | ||
| 1259 | 1259 | ) | |
| 1260 | 1260 | ||
| 1261 | 1261 | # Make the request | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1878,7 +1878,7 @@ def sample_upgrade_cluster(): | |||
| 1878 | 1878 | # Initialize request argument(s) | |
| 1879 | 1879 | request = alloydb_v1alpha.UpgradeClusterRequest( | |
| 1880 | 1880 | name="name_value", | |
| 1881 | - version="POSTGRES_17", | ||
| 1881 | + version="POSTGRES_18", | ||
| 1882 | 1882 | ) | |
| 1883 | 1883 | ||
| 1884 | 1884 | # Make the request | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -121,13 +121,16 @@ class DatabaseVersion(proto.Enum): | |||
| 121 | 121 | The database version is Postgres 16. | |
| 122 | 122 | POSTGRES_17 (5): | |
| 123 | 123 | The database version is Postgres 17. | |
| 124 | + POSTGRES_18 (6): | ||
| 125 | + The database version is Postgres 18. | ||
| 124 | 126 | """ | |
| 125 | 127 | DATABASE_VERSION_UNSPECIFIED = 0 | |
| 126 | 128 | POSTGRES_13 = 1 | |
| 127 | 129 | POSTGRES_14 = 2 | |
| 128 | 130 | POSTGRES_15 = 3 | |
| 129 | 131 | POSTGRES_16 = 4 | |
| 130 | 132 | POSTGRES_17 = 5 | |
| 133 | + POSTGRES_18 = 6 | ||
| 131 | 134 | ||
| 132 | 135 | ||
| 133 | 136 | class SubscriptionType(proto.Enum): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,7 +41,7 @@ async def sample_upgrade_cluster(): | |||
| 41 | 41 | # Initialize request argument(s) | |
| 42 | 42 | request = alloydb_v1alpha.UpgradeClusterRequest( | |
| 43 | 43 | name="name_value", | |
| 44 | - version="POSTGRES_17", | ||
| 44 | + version="POSTGRES_18", | ||
| 45 | 45 | ) | |
| 46 | 46 | ||
| 47 | 47 | # Make the request | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,7 +41,7 @@ def sample_upgrade_cluster(): | |||
| 41 | 41 | # Initialize request argument(s) | |
| 42 | 42 | request = alloydb_v1alpha.UpgradeClusterRequest( | |
| 43 | 43 | name="name_value", | |
| 44 | - version="POSTGRES_17", | ||
| 44 | + version="POSTGRES_18", | ||
| 45 | 45 | ) | |
| 46 | 46 | ||
| 47 | 47 | # Make the request | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,6 +44,7 @@ | |||
| 44 | 44 | CreatePhraseSetRequest, | |
| 45 | 45 | CreateRecognizerRequest, | |
| 46 | 46 | CustomClass, | |
| 47 | + CustomPromptConfig, | ||
| 47 | 48 | DeleteCustomClassRequest, | |
| 48 | 49 | DeletePhraseSetRequest, | |
| 49 | 50 | DeleteRecognizerRequest, | |
@@ -215,6 +216,7 @@ def _get_version(dependency_name): | |||
| 215 | 216 | "CreatePhraseSetRequest", | |
| 216 | 217 | "CreateRecognizerRequest", | |
| 217 | 218 | "CustomClass", | |
| 219 | + "CustomPromptConfig", | ||
| 218 | 220 | "DeleteCustomClassRequest", | |
| 219 | 221 | "DeletePhraseSetRequest", | |
| 220 | 222 | "DeleteRecognizerRequest", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,6 +28,7 @@ | |||
| 28 | 28 | CreatePhraseSetRequest, | |
| 29 | 29 | CreateRecognizerRequest, | |
| 30 | 30 | CustomClass, | |
| 31 | + CustomPromptConfig, | ||
| 31 | 32 | DeleteCustomClassRequest, | |
| 32 | 33 | DeletePhraseSetRequest, | |
| 33 | 34 | DeleteRecognizerRequest, | |
@@ -103,6 +104,7 @@ | |||
| 103 | 104 | "CreatePhraseSetRequest", | |
| 104 | 105 | "CreateRecognizerRequest", | |
| 105 | 106 | "CustomClass", | |
| 107 | + "CustomPromptConfig", | ||
| 106 | 108 | "DeleteCustomClassRequest", | |
| 107 | 109 | "DeletePhraseSetRequest", | |
| 108 | 110 | "DeleteRecognizerRequest", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,6 +38,7 @@ | |||
| 38 | 38 | "AutoDetectDecodingConfig", | |
| 39 | 39 | "ExplicitDecodingConfig", | |
| 40 | 40 | "SpeakerDiarizationConfig", | |
| 41 | + "CustomPromptConfig", | ||
| 41 | 42 | "RecognitionFeatures", | |
| 42 | 43 | "TranscriptNormalization", | |
| 43 | 44 | "TranslationConfig", | |
@@ -898,17 +899,13 @@ class SpeakerDiarizationConfig(proto.Message): | |||
| 898 | 899 | ||
| 899 | 900 | Attributes: | |
| 900 | 901 | min_speaker_count (int): | |
| 901 | - Required. Minimum number of speakers in the conversation. | ||
| 902 | - This range gives you more flexibility by allowing the system | ||
| 903 | - to automatically determine the correct number of speakers. | ||
| 904 | - | ||
| 905 | - To fix the number of speakers detected in the audio, set | ||
| 906 | - ``min_speaker_count`` = ``max_speaker_count``. | ||
| 902 | + Optional. The system automatically determines | ||
| 903 | + the number of speakers. This value is not | ||
| 904 | + currently used. | ||
| 907 | 905 | max_speaker_count (int): | |
| 908 | - Required. Maximum number of speakers in the conversation. | ||
| 909 | - Valid values are: 1-6. Must be >= ``min_speaker_count``. | ||
| 910 | - This range gives you more flexibility by allowing the system | ||
| 911 | - to automatically determine the correct number of speakers. | ||
| 906 | + Optional. The system automatically determines | ||
| 907 | + the number of speakers. This value is not | ||
| 908 | + currently used. | ||
| 912 | 909 | """ | |
| 913 | 910 | ||
| 914 | 911 | min_speaker_count: int = proto.Field( | |
@@ -921,6 +918,21 @@ class SpeakerDiarizationConfig(proto.Message): | |||
| 921 | 918 | ) | |
| 922 | 919 | ||
| 923 | 920 | ||
| 921 | + class CustomPromptConfig(proto.Message): | ||
| 922 | + r"""Configuration to enable custom prompt in chirp3. | ||
| 923 | + | ||
| 924 | + Attributes: | ||
| 925 | + custom_prompt (str): | ||
| 926 | + Optional. The custom instructions to override | ||
| 927 | + the existing instructions for chirp3. | ||
| 928 | + """ | ||
| 929 | + | ||
| 930 | + custom_prompt: str = proto.Field( | ||
| 931 | + proto.STRING, | ||
| 932 | + number=1, | ||
| 933 | + ) | ||
| 934 | + | ||
| 935 | + | ||
| 924 | 936 | class RecognitionFeatures(proto.Message): | |
| 925 | 937 | r"""Available recognition features. | |
| 926 | 938 | ||
@@ -962,24 +974,18 @@ class RecognitionFeatures(proto.Message): | |||
| 962 | 974 | multi_channel_mode (google.cloud.speech_v2.types.RecognitionFeatures.MultiChannelMode): | |
| 963 | 975 | Mode for recognizing multi-channel audio. | |
| 964 | 976 | diarization_config (google.cloud.speech_v2.types.SpeakerDiarizationConfig): | |
| 965 | - Configuration to enable speaker diarization | ||
| 966 | - and set additional parameters to make | ||
| 967 | - diarization better suited for your application. | ||
| 968 | - When this is enabled, we send all the words from | ||
| 969 | - the beginning of the audio for the top | ||
| 970 | - alternative in every consecutive STREAMING | ||
| 971 | - responses. This is done in order to improve our | ||
| 972 | - speaker tags as our models learn to identify the | ||
| 973 | - speakers in the conversation over time. For | ||
| 974 | - non-streaming requests, the diarization results | ||
| 975 | - will be provided only in the top alternative of | ||
| 976 | - the FINAL SpeechRecognitionResult. | ||
| 977 | + Configuration to enable speaker diarization. | ||
| 978 | + To enable diarization, set this field to an | ||
| 979 | + empty SpeakerDiarizationConfig message. | ||
| 977 | 980 | max_alternatives (int): | |
| 978 | 981 | Maximum number of recognition hypotheses to be returned. The | |
| 979 | 982 | server may return fewer than ``max_alternatives``. Valid | |
| 980 | 983 | values are ``0``-``30``. A value of ``0`` or ``1`` will | |
| 981 | 984 | return a maximum of one. If omitted, will return a maximum | |
| 982 | 985 | of one. | |
| 986 | + custom_prompt_config (google.cloud.speech_v2.types.CustomPromptConfig): | ||
| 987 | + Optional. Configuration to enable custom | ||
| 988 | + prompt for chirp3. | ||
| 983 | 989 | """ | |
| 984 | 990 | ||
| 985 | 991 | class MultiChannelMode(proto.Enum): | |
@@ -1038,6 +1044,11 @@ class MultiChannelMode(proto.Enum): | |||
| 1038 | 1044 | proto.INT32, | |
| 1039 | 1045 | number=16, | |
| 1040 | 1046 | ) | |
| 1047 | + custom_prompt_config: "CustomPromptConfig" = proto.Field( | ||
| 1048 | + proto.MESSAGE, | ||
| 1049 | + number=18, | ||
| 1050 | + message="CustomPromptConfig", | ||
| 1051 | + ) | ||
| 1041 | 1052 | ||
| 1042 | 1053 | ||
| 1043 | 1054 | class TranscriptNormalization(proto.Message): | |
@@ -1410,13 +1421,20 @@ class RecognizeRequest(proto.Message): | |||
| 1410 | 1421 | class RecognitionResponseMetadata(proto.Message): | |
| 1411 | 1422 | r"""Metadata about the recognition request and response. | |
| 1412 | 1423 | ||
| 1424 | + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields | ||
| 1425 | + | ||
| 1413 | 1426 | Attributes: | |
| 1414 | 1427 | request_id (str): | |
| 1415 | 1428 | Global request identifier auto-generated by | |
| 1416 | 1429 | the API. | |
| 1417 | 1430 | total_billed_duration (google.protobuf.duration_pb2.Duration): | |
| 1418 | 1431 | When available, billed audio seconds for the | |
| 1419 | 1432 | corresponding request. | |
| 1433 | + prompt (str): | ||
| 1434 | + Optional. Output only. Provides the prompt | ||
| 1435 | + used for the recognition request. | ||
| 1436 | + | ||
| 1437 | + This field is a member of `oneof`_ ``_prompt``. | ||
| 1420 | 1438 | """ | |
| 1421 | 1439 | ||
| 1422 | 1440 | request_id: str = proto.Field( | |
@@ -1428,6 +1446,11 @@ class RecognitionResponseMetadata(proto.Message): | |||
| 1428 | 1446 | number=6, | |
| 1429 | 1447 | message=duration_pb2.Duration, | |
| 1430 | 1448 | ) | |
| 1449 | + prompt: str = proto.Field( | ||
| 1450 | + proto.STRING, | ||
| 1451 | + number=10, | ||
| 1452 | + optional=True, | ||
| 1453 | + ) | ||
| 1431 | 1454 | ||
| 1432 | 1455 | ||
| 1433 | 1456 | class SpeechRecognitionAlternative(proto.Message): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15366,6 +15366,7 @@ def test_create_recognizer_rest_call_success(request_type): | |||
| 15366 | 15366 | "max_speaker_count": 1816, | |
| 15367 | 15367 | }, | |
| 15368 | 15368 | "max_alternatives": 1719, | |
| 15369 | + "custom_prompt_config": {"custom_prompt": "custom_prompt_value"}, | ||
| 15369 | 15370 | }, | |
| 15370 | 15371 | "adaptation": { | |
| 15371 | 15372 | "phrase_sets": [ | |
@@ -15928,6 +15929,7 @@ def test_update_recognizer_rest_call_success(request_type): | |||
| 15928 | 15929 | "max_speaker_count": 1816, | |
| 15929 | 15930 | }, | |
| 15930 | 15931 | "max_alternatives": 1719, | |
| 15932 | + "custom_prompt_config": {"custom_prompt": "custom_prompt_value"}, | ||
| 15931 | 15933 | }, | |
| 15932 | 15934 | "adaptation": { | |
| 15933 | 15935 | "phrase_sets": [ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments