|
25 | 25 | manifest={ |
26 | 26 | "RecognizeRequest", |
27 | 27 | "LongRunningRecognizeRequest", |
| 28 | + "TranscriptOutputConfig", |
28 | 29 | "StreamingRecognizeRequest", |
29 | 30 | "StreamingRecognitionConfig", |
30 | 31 | "RecognitionConfig", |
@@ -72,10 +73,31 @@ class LongRunningRecognizeRequest(proto.Message): |
72 | 73 | request. |
73 | 74 | audio (google.cloud.speech_v1.types.RecognitionAudio): |
74 | 75 | Required. The audio data to be recognized. |
| 76 | + output_config (google.cloud.speech_v1.types.TranscriptOutputConfig): |
| 77 | + Optional. Specifies an optional destination |
| 78 | + for the recognition results. |
75 | 79 | """ |
76 | 80 |
|
77 | 81 | config = proto.Field(proto.MESSAGE, number=1, message="RecognitionConfig",) |
78 | 82 | audio = proto.Field(proto.MESSAGE, number=2, message="RecognitionAudio",) |
| 83 | + output_config = proto.Field( |
| 84 | + proto.MESSAGE, number=4, message="TranscriptOutputConfig", |
| 85 | + ) |
| 86 | + |
| 87 | + |
| 88 | +class TranscriptOutputConfig(proto.Message): |
| 89 | + r"""Specifies an optional destination for the recognition |
| 90 | + results. |
| 91 | +
|
| 92 | + Attributes: |
| 93 | + gcs_uri (str): |
| 94 | + Specifies a Cloud Storage URI for the recognition results. |
| 95 | + Must be specified in the format: |
| 96 | + ``gs://bucket_name/object_name``, and the bucket must |
| 97 | + already exist. |
| 98 | + """ |
| 99 | + |
| 100 | + gcs_uri = proto.Field(proto.STRING, number=1, oneof="output_type",) |
79 | 101 |
|
80 | 102 |
|
81 | 103 | class StreamingRecognizeRequest(proto.Message): |
|
0 commit comments