google-cloud-speech-v1p1beta1 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8659e60534c9161cb605bd07fcf095b9cb729751cf0a27417f5f8874b8c34b2
4
- data.tar.gz: 3370a580050f2cfffd13eb41c6557b15812f5d40582f3d63826ce7c3c982c954
3
+ metadata.gz: feb16b9bf7e93603c66e289512f98d1e66d0b4f7b8b79e2051390e8fb82b5c85
4
+ data.tar.gz: acd1bac99c3c417d811d736cde3245a791eb7557e2e6818d28c627b0ccee8f09
5
5
  SHA512:
6
- metadata.gz: dc6da8b498e8151d30bcd2fde6bc7286fdd0c76d568a0bc84970356becd569f8079b48521eeeb48ceb9aabe2a5d43aafc2355e1f7b8c93b039db3711400c947e
7
- data.tar.gz: 9bb86495214a66ad9ab1bc88a3ec5248b625813fbbe96451766f20d4f12b4b83068bf6213ed5b365bad1c54df0088bbd059dc32833d3ec30980fcdfad93a5df3
6
+ metadata.gz: b23c470c547c72780fab5b1b0f9de701bf1ade2641ec64a7b42a64b4e3eab1512d227eeb0f04e9e32682415b80270fd10d1147d8c49ce9bd8631d33482c27b29
7
+ data.tar.gz: 46c36f7613e8f5f0f7e46aa9b8b6bea1942f28985205b2a8ec0241ace2dd173c2fe335b2cf8aedcd82af1d5840f6d13c8eb80646202d40f1a081543ddf4058fd
@@ -6,7 +6,6 @@ require 'google/protobuf'
6
6
  require 'google/api/annotations_pb'
7
7
  require 'google/api/client_pb'
8
8
  require 'google/api/field_behavior_pb'
9
- require 'google/api/resource_pb'
10
9
  require 'google/cloud/speech/v1p1beta1/resource_pb'
11
10
  require 'google/longrunning/operations_pb'
12
11
  require 'google/protobuf/any_pb'
@@ -22,6 +21,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
22
21
  add_message "google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest" do
23
22
  optional :config, :message, 1, "google.cloud.speech.v1p1beta1.RecognitionConfig"
24
23
  optional :audio, :message, 2, "google.cloud.speech.v1p1beta1.RecognitionAudio"
24
+ optional :output_config, :message, 4, "google.cloud.speech.v1p1beta1.TranscriptOutputConfig"
25
+ end
26
+ add_message "google.cloud.speech.v1p1beta1.TranscriptOutputConfig" do
27
+ oneof :output_type do
28
+ optional :gcs_uri, :string, 1
29
+ end
25
30
  end
26
31
  add_message "google.cloud.speech.v1p1beta1.StreamingRecognizeRequest" do
27
32
  oneof :streaming_request do
@@ -129,12 +134,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
129
134
  end
130
135
  add_message "google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse" do
131
136
  repeated :results, :message, 2, "google.cloud.speech.v1p1beta1.SpeechRecognitionResult"
137
+ optional :output_config, :message, 6, "google.cloud.speech.v1p1beta1.TranscriptOutputConfig"
138
+ optional :output_error, :message, 7, "google.rpc.Status"
132
139
  end
133
140
  add_message "google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata" do
134
141
  optional :progress_percent, :int32, 1
135
142
  optional :start_time, :message, 2, "google.protobuf.Timestamp"
136
143
  optional :last_update_time, :message, 3, "google.protobuf.Timestamp"
137
144
  optional :uri, :string, 4
145
+ optional :output_config, :message, 5, "google.cloud.speech.v1p1beta1.TranscriptOutputConfig"
138
146
  end
139
147
  add_message "google.cloud.speech.v1p1beta1.StreamingRecognizeResponse" do
140
148
  optional :error, :message, 1, "google.rpc.Status"
@@ -179,6 +187,7 @@ module Google
179
187
  module V1p1beta1
180
188
  RecognizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.RecognizeRequest").msgclass
181
189
  LongRunningRecognizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest").msgclass
190
+ TranscriptOutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.TranscriptOutputConfig").msgclass
182
191
  StreamingRecognizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.StreamingRecognizeRequest").msgclass
183
192
  StreamingRecognitionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.StreamingRecognitionConfig").msgclass
184
193
  RecognitionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.RecognitionConfig").msgclass
@@ -262,7 +262,7 @@ module Google
262
262
  # @param options [::Gapic::CallOptions, ::Hash]
263
263
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
264
264
  #
265
- # @overload long_running_recognize(config: nil, audio: nil)
265
+ # @overload long_running_recognize(config: nil, audio: nil, output_config: nil)
266
266
  # Pass arguments to `long_running_recognize` via keyword arguments. Note that at
267
267
  # least one keyword argument is required. To specify no parameters, or to keep all
268
268
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -272,6 +272,8 @@ module Google
272
272
  # process the request.
273
273
  # @param audio [::Google::Cloud::Speech::V1p1beta1::RecognitionAudio, ::Hash]
274
274
  # Required. The audio data to be recognized.
275
+ # @param output_config [::Google::Cloud::Speech::V1p1beta1::TranscriptOutputConfig, ::Hash]
276
+ # Optional. Specifies an optional destination for the recognition results.
275
277
  #
276
278
  # @yield [response, operation] Access the result along with the RPC operation
277
279
  # @yieldparam response [::Gapic::Operation]
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Speech
23
23
  module V1p1beta1
24
- VERSION = "0.6.0"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -43,11 +43,25 @@ module Google
43
43
  # @!attribute [rw] audio
44
44
  # @return [::Google::Cloud::Speech::V1p1beta1::RecognitionAudio]
45
45
  # Required. The audio data to be recognized.
46
+ # @!attribute [rw] output_config
47
+ # @return [::Google::Cloud::Speech::V1p1beta1::TranscriptOutputConfig]
48
+ # Optional. Specifies an optional destination for the recognition results.
46
49
  class LongRunningRecognizeRequest
47
50
  include ::Google::Protobuf::MessageExts
48
51
  extend ::Google::Protobuf::MessageExts::ClassMethods
49
52
  end
50
53
 
54
+ # Specifies an optional destination for the recognition results.
55
+ # @!attribute [rw] gcs_uri
56
+ # @return [::String]
57
+ # Specifies a Cloud Storage URI for the recognition results. Must be
58
+ # specified in the format: `gs://bucket_name/object_name`, and the bucket
59
+ # must already exist.
60
+ class TranscriptOutputConfig
61
+ include ::Google::Protobuf::MessageExts
62
+ extend ::Google::Protobuf::MessageExts::ClassMethods
63
+ end
64
+
51
65
  # The top-level message sent by the client for the `StreamingRecognize` method.
52
66
  # Multiple `StreamingRecognizeRequest` messages are sent. The first message
53
67
  # must contain a `streaming_config` message and must not contain
@@ -119,8 +133,7 @@ module Google
119
133
  # @return [::Google::Cloud::Speech::V1p1beta1::RecognitionConfig::AudioEncoding]
120
134
  # Encoding of audio data sent in all `RecognitionAudio` messages.
121
135
  # This field is optional for `FLAC` and `WAV` audio files and required
122
- # for all other audio formats. For details, see
123
- # {::Google::Cloud::Speech::V1p1beta1::RecognitionConfig::AudioEncoding AudioEncoding}.
136
+ # for all other audio formats. For details, see {::Google::Cloud::Speech::V1p1beta1::RecognitionConfig::AudioEncoding AudioEncoding}.
124
137
  # @!attribute [rw] sample_rate_hertz
125
138
  # @return [::Integer]
126
139
  # Sample rate in Hertz of the audio data sent in all
@@ -129,8 +142,7 @@ module Google
129
142
  # source to 16000 Hz. If that's not possible, use the native sample rate of
130
143
  # the audio source (instead of re-sampling).
131
144
  # This field is optional for FLAC and WAV audio files, but is
132
- # required for all other audio formats. For details, see
133
- # {::Google::Cloud::Speech::V1p1beta1::RecognitionConfig::AudioEncoding AudioEncoding}.
145
+ # required for all other audio formats. For details, see {::Google::Cloud::Speech::V1p1beta1::RecognitionConfig::AudioEncoding AudioEncoding}.
134
146
  # @!attribute [rw] audio_channel_count
135
147
  # @return [::Integer]
136
148
  # The number of channels in the input audio data.
@@ -299,7 +311,7 @@ module Google
299
311
  # a lossless encoding (`FLAC` or `LINEAR16`). The accuracy of the speech
300
312
  # recognition can be reduced if lossy codecs are used to capture or transmit
301
313
  # audio, particularly if background noise is present. Lossy codecs include
302
- # `MULAW`, `AMR`, `AMR_WB`, `OGG_OPUS`, `SPEEX_WITH_HEADER_BYTE`, and `MP3`.
314
+ # `MULAW`, `AMR`, `AMR_WB`, `OGG_OPUS`, `SPEEX_WITH_HEADER_BYTE`, `MP3`.
303
315
  #
304
316
  # The `FLAC` and `WAV` audio file formats include a header that describes the
305
317
  # included audio content. You can request recognition for `WAV` files that
@@ -310,8 +322,7 @@ module Google
310
322
  # an `AudioEncoding` when you send send `FLAC` or `WAV` audio, the
311
323
  # encoding configuration must match the encoding described in the audio
312
324
  # header; otherwise the request returns an
313
- # [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error
314
- # code.
325
+ # [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error code.
315
326
  module AudioEncoding
316
327
  # Not specified.
317
328
  ENCODING_UNSPECIFIED = 0
@@ -555,8 +566,8 @@ module Google
555
566
 
556
567
  # Contains audio data in the encoding specified in the `RecognitionConfig`.
557
568
  # Either `content` or `uri` must be supplied. Supplying both or neither
558
- # returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
559
- # See [content limits](https://cloud.google.com/speech-to-text/quotas#content).
569
+ # returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See
570
+ # [content limits](https://cloud.google.com/speech-to-text/quotas#content).
560
571
  # @!attribute [rw] content
561
572
  # @return [::String]
562
573
  # The audio data bytes encoded as specified in
@@ -569,9 +580,8 @@ module Google
569
580
  # Currently, only Google Cloud Storage URIs are
570
581
  # supported, which must be specified in the following format:
571
582
  # `gs://bucket_name/object_name` (other URI formats return
572
- # [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
573
- # For more information, see [Request
574
- # URIs](https://cloud.google.com/storage/docs/reference-uris).
583
+ # [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
584
+ # [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
575
585
  class RecognitionAudio
576
586
  include ::Google::Protobuf::MessageExts
577
587
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -598,6 +608,12 @@ module Google
598
608
  # @return [::Array<::Google::Cloud::Speech::V1p1beta1::SpeechRecognitionResult>]
599
609
  # Sequential list of transcription results corresponding to
600
610
  # sequential portions of audio.
611
+ # @!attribute [rw] output_config
612
+ # @return [::Google::Cloud::Speech::V1p1beta1::TranscriptOutputConfig]
613
+ # Original output config if present in the request.
614
+ # @!attribute [rw] output_error
615
+ # @return [::Google::Rpc::Status]
616
+ # If the transcript output fails this field contains the relevant error.
601
617
  class LongRunningRecognizeResponse
602
618
  include ::Google::Protobuf::MessageExts
603
619
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -618,8 +634,11 @@ module Google
618
634
  # Time of the most recent processing update.
619
635
  # @!attribute [r] uri
620
636
  # @return [::String]
621
- # Output only. The URI of the audio file being transcribed. Empty if the
622
- # audio was sent as byte content.
637
+ # Output only. The URI of the audio file being transcribed. Empty if the audio was sent
638
+ # as byte content.
639
+ # @!attribute [r] output_config
640
+ # @return [::Google::Cloud::Speech::V1p1beta1::TranscriptOutputConfig]
641
+ # Output only. A copy of the TranscriptOutputConfig if it was set in the request.
623
642
  class LongRunningRecognizeMetadata
624
643
  include ::Google::Protobuf::MessageExts
625
644
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -740,9 +759,9 @@ module Google
740
759
  # For audio_channel_count = N, its output values can range from '1' to 'N'.
741
760
  # @!attribute [r] language_code
742
761
  # @return [::String]
743
- # Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
744
- # language tag of the language in this result. This language code was
745
- # detected to have the most likelihood of being spoken in the audio.
762
+ # Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
763
+ # of the language in this result. This language code was detected to have
764
+ # the most likelihood of being spoken in the audio.
746
765
  class StreamingRecognitionResult
747
766
  include ::Google::Protobuf::MessageExts
748
767
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -762,9 +781,9 @@ module Google
762
781
  # For audio_channel_count = N, its output values can range from '1' to 'N'.
763
782
  # @!attribute [r] language_code
764
783
  # @return [::String]
765
- # Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
766
- # language tag of the language in this result. This language code was
767
- # detected to have the most likelihood of being spoken in the audio.
784
+ # Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
785
+ # of the language in this result. This language code was detected to have
786
+ # the most likelihood of being spoken in the audio.
768
787
  class SpeechRecognitionResult
769
788
  include ::Google::Protobuf::MessageExts
770
789
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-speech-v1p1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-09 00:00:00.000000000 Z
11
+ date: 2021-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common