google-apis-speech_v1 0.8.0 → 0.12.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: 3715527125933470ce56bca9ed55f90b7aac453c3b1409664f583ff62629ef6f
4
- data.tar.gz: b1adcfe4e17b035e7fe03d12ebde6168186fc06c3ff33ca654b0389ddf642fbe
3
+ metadata.gz: 511c5a564a36633cd285f259bf93c34c8624fa1ec6dadea775a676a8f947ddd8
4
+ data.tar.gz: b39fb57bc4713c92af3242881fbbfbf6f6c598f65e33e21f95a3f825c3878c4d
5
5
  SHA512:
6
- metadata.gz: 06c8055016ae401a168390b0c864c3bbc930c49efff294883af0593bec38309289a7051456de3fa0485cda9df5942591d7a456e17594bacb6be069e32bc6fd50
7
- data.tar.gz: e478e5aa5ce6adbe96df0e66350a45131a58c097063a1d24abdd49aa45dee6243f7398b1bc7ec1a7f57018b2fb4ca29a855203f55defdb48c021248aa86377f3
6
+ metadata.gz: a49a3cb51df0514c96304cf0c6feba9753205bf2e9221c071e327345c6d0b9fe69812ec4a772133b9adacbc5475f665dc10793a91c79b4aecfbdf5b16d355967
7
+ data.tar.gz: 5efc5103da55d8efa7f1296afa6134c0dc4f27fc4fdc4a74702b96846066ef8c87b045e74a54d5524ca2a1c0676209bcb1def8b9269ee9c673b22630da266500
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-speech_v1
2
2
 
3
+ ### v0.12.0 (2021-10-29)
4
+
5
+ * Regenerated from discovery document revision 20211021
6
+
7
+ ### v0.11.0 (2021-10-22)
8
+
9
+ * Regenerated from discovery document revision 20211008
10
+ * Unspecified changes
11
+
12
+ ### v0.10.0 (2021-10-08)
13
+
14
+ * Regenerated from discovery document revision 20210929
15
+
16
+ ### v0.9.0 (2021-09-03)
17
+
18
+ * Regenerated from discovery document revision 20210825
19
+
3
20
  ### v0.8.0 (2021-06-29)
4
21
 
5
22
  * Regenerated using generator version 0.4.0
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Speech service in particular.)
67
67
 
@@ -106,6 +106,11 @@ module Google
106
106
  # @return [Google::Apis::SpeechV1::RecognitionConfig]
107
107
  attr_accessor :config
108
108
 
109
+ # Specifies an optional destination for the recognition results.
110
+ # Corresponds to the JSON property `outputConfig`
111
+ # @return [Google::Apis::SpeechV1::TranscriptOutputConfig]
112
+ attr_accessor :output_config
113
+
109
114
  def initialize(**args)
110
115
  update!(**args)
111
116
  end
@@ -114,6 +119,7 @@ module Google
114
119
  def update!(**args)
115
120
  @audio = args[:audio] if args.key?(:audio)
116
121
  @config = args[:config] if args.key?(:config)
122
+ @output_config = args[:output_config] if args.key?(:output_config)
117
123
  end
118
124
  end
119
125
 
@@ -125,19 +131,42 @@ module Google
125
131
  class LongRunningRecognizeResponse
126
132
  include Google::Apis::Core::Hashable
127
133
 
134
+ # Specifies an optional destination for the recognition results.
135
+ # Corresponds to the JSON property `outputConfig`
136
+ # @return [Google::Apis::SpeechV1::TranscriptOutputConfig]
137
+ attr_accessor :output_config
138
+
139
+ # The `Status` type defines a logical error model that is suitable for different
140
+ # programming environments, including REST APIs and RPC APIs. It is used by [
141
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
142
+ # data: error code, error message, and error details. You can find out more
143
+ # about this error model and how to work with it in the [API Design Guide](https:
144
+ # //cloud.google.com/apis/design/errors).
145
+ # Corresponds to the JSON property `outputError`
146
+ # @return [Google::Apis::SpeechV1::Status]
147
+ attr_accessor :output_error
148
+
128
149
  # Sequential list of transcription results corresponding to sequential portions
129
150
  # of audio.
130
151
  # Corresponds to the JSON property `results`
131
152
  # @return [Array<Google::Apis::SpeechV1::SpeechRecognitionResult>]
132
153
  attr_accessor :results
133
154
 
155
+ # When available, billed audio seconds for the corresponding request.
156
+ # Corresponds to the JSON property `totalBilledTime`
157
+ # @return [String]
158
+ attr_accessor :total_billed_time
159
+
134
160
  def initialize(**args)
135
161
  update!(**args)
136
162
  end
137
163
 
138
164
  # Update properties of this object
139
165
  def update!(**args)
166
+ @output_config = args[:output_config] if args.key?(:output_config)
167
+ @output_error = args[:output_error] if args.key?(:output_error)
140
168
  @results = args[:results] if args.key?(:results)
169
+ @total_billed_time = args[:total_billed_time] if args.key?(:total_billed_time)
141
170
  end
142
171
  end
143
172
 
@@ -244,6 +273,20 @@ module Google
244
273
  class RecognitionConfig
245
274
  include Google::Apis::Core::Hashable
246
275
 
276
+ # A list of up to 3 additional [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.
277
+ # txt) language tags, listing possible alternative languages of the supplied
278
+ # audio. See [Language Support](https://cloud.google.com/speech-to-text/docs/
279
+ # languages) for a list of the currently supported language codes. If
280
+ # alternative languages are listed, recognition result will contain recognition
281
+ # in the most likely language detected including the main language_code. The
282
+ # recognition result will include the language tag of the language detected in
283
+ # the audio. Note: This feature is only supported for Voice Command and Voice
284
+ # Search use cases and performance may vary for other use cases (e.g., phone
285
+ # call transcription).
286
+ # Corresponds to the JSON property `alternativeLanguageCodes`
287
+ # @return [Array<String>]
288
+ attr_accessor :alternative_language_codes
289
+
247
290
  # The number of channels in the input audio data. ONLY set this for MULTI-
248
291
  # CHANNEL recognition. Valid values for LINEAR16 and FLAC are `1`-`8`. Valid
249
292
  # values for OGG_OPUS are '1'-'254'. Valid value for MULAW, AMR, AMR_WB and
@@ -280,6 +323,34 @@ module Google
280
323
  attr_accessor :enable_separate_recognition_per_channel
281
324
  alias_method :enable_separate_recognition_per_channel?, :enable_separate_recognition_per_channel
282
325
 
326
+ # The spoken emoji behavior for the call If not set, uses default behavior based
327
+ # on model of choice If 'true', adds spoken emoji formatting for the request.
328
+ # This will replace spoken emojis with the corresponding Unicode symbols in the
329
+ # final transcript. If 'false', spoken emojis are not replaced.
330
+ # Corresponds to the JSON property `enableSpokenEmojis`
331
+ # @return [Boolean]
332
+ attr_accessor :enable_spoken_emojis
333
+ alias_method :enable_spoken_emojis?, :enable_spoken_emojis
334
+
335
+ # The spoken punctuation behavior for the call If not set, uses default behavior
336
+ # based on model of choice e.g. command_and_search will enable spoken
337
+ # punctuation by default If 'true', replaces spoken punctuation with the
338
+ # corresponding symbols in the request. For example, "how are you question mark"
339
+ # becomes "how are you?". See https://cloud.google.com/speech-to-text/docs/
340
+ # spoken-punctuation for support. If 'false', spoken punctuation is not replaced.
341
+ # Corresponds to the JSON property `enableSpokenPunctuation`
342
+ # @return [Boolean]
343
+ attr_accessor :enable_spoken_punctuation
344
+ alias_method :enable_spoken_punctuation?, :enable_spoken_punctuation
345
+
346
+ # If `true`, the top result includes a list of words and the confidence for
347
+ # those words. If `false`, no word-level confidence information is returned. The
348
+ # default is `false`.
349
+ # Corresponds to the JSON property `enableWordConfidence`
350
+ # @return [Boolean]
351
+ attr_accessor :enable_word_confidence
352
+ alias_method :enable_word_confidence?, :enable_word_confidence
353
+
283
354
  # If `true`, the top result includes a list of words and the start and end time
284
355
  # offsets (timestamps) for those words. If `false`, no word-level time offset
285
356
  # information is returned. The default is `false`.
@@ -373,10 +444,14 @@ module Google
373
444
 
374
445
  # Update properties of this object
375
446
  def update!(**args)
447
+ @alternative_language_codes = args[:alternative_language_codes] if args.key?(:alternative_language_codes)
376
448
  @audio_channel_count = args[:audio_channel_count] if args.key?(:audio_channel_count)
377
449
  @diarization_config = args[:diarization_config] if args.key?(:diarization_config)
378
450
  @enable_automatic_punctuation = args[:enable_automatic_punctuation] if args.key?(:enable_automatic_punctuation)
379
451
  @enable_separate_recognition_per_channel = args[:enable_separate_recognition_per_channel] if args.key?(:enable_separate_recognition_per_channel)
452
+ @enable_spoken_emojis = args[:enable_spoken_emojis] if args.key?(:enable_spoken_emojis)
453
+ @enable_spoken_punctuation = args[:enable_spoken_punctuation] if args.key?(:enable_spoken_punctuation)
454
+ @enable_word_confidence = args[:enable_word_confidence] if args.key?(:enable_word_confidence)
380
455
  @enable_word_time_offsets = args[:enable_word_time_offsets] if args.key?(:enable_word_time_offsets)
381
456
  @encoding = args[:encoding] if args.key?(:encoding)
382
457
  @language_code = args[:language_code] if args.key?(:language_code)
@@ -499,6 +574,11 @@ module Google
499
574
  # @return [Array<Google::Apis::SpeechV1::SpeechRecognitionResult>]
500
575
  attr_accessor :results
501
576
 
577
+ # When available, billed audio seconds for the corresponding request.
578
+ # Corresponds to the JSON property `totalBilledTime`
579
+ # @return [String]
580
+ attr_accessor :total_billed_time
581
+
502
582
  def initialize(**args)
503
583
  update!(**args)
504
584
  end
@@ -506,6 +586,7 @@ module Google
506
586
  # Update properties of this object
507
587
  def update!(**args)
508
588
  @results = args[:results] if args.key?(:results)
589
+ @total_billed_time = args[:total_billed_time] if args.key?(:total_billed_time)
509
590
  end
510
591
  end
511
592
 
@@ -639,6 +720,13 @@ module Google
639
720
  # @return [Fixnum]
640
721
  attr_accessor :channel_tag
641
722
 
723
+ # Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
724
+ # language tag of the language in this result. This language code was detected
725
+ # to have the most likelihood of being spoken in the audio.
726
+ # Corresponds to the JSON property `languageCode`
727
+ # @return [String]
728
+ attr_accessor :language_code
729
+
642
730
  def initialize(**args)
643
731
  update!(**args)
644
732
  end
@@ -647,6 +735,7 @@ module Google
647
735
  def update!(**args)
648
736
  @alternatives = args[:alternatives] if args.key?(:alternatives)
649
737
  @channel_tag = args[:channel_tag] if args.key?(:channel_tag)
738
+ @language_code = args[:language_code] if args.key?(:language_code)
650
739
  end
651
740
  end
652
741
 
@@ -689,10 +778,41 @@ module Google
689
778
  end
690
779
  end
691
780
 
781
+ # Specifies an optional destination for the recognition results.
782
+ class TranscriptOutputConfig
783
+ include Google::Apis::Core::Hashable
784
+
785
+ # Specifies a Cloud Storage URI for the recognition results. Must be specified
786
+ # in the format: `gs://bucket_name/object_name`, and the bucket must already
787
+ # exist.
788
+ # Corresponds to the JSON property `gcsUri`
789
+ # @return [String]
790
+ attr_accessor :gcs_uri
791
+
792
+ def initialize(**args)
793
+ update!(**args)
794
+ end
795
+
796
+ # Update properties of this object
797
+ def update!(**args)
798
+ @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
799
+ end
800
+ end
801
+
692
802
  # Word-specific information for recognized words.
693
803
  class WordInfo
694
804
  include Google::Apis::Core::Hashable
695
805
 
806
+ # The confidence estimate between 0.0 and 1.0. A higher number indicates an
807
+ # estimated greater likelihood that the recognized words are correct. This field
808
+ # is set only for the top alternative of a non-streaming result or, of a
809
+ # streaming result where `is_final=true`. This field is not guaranteed to be
810
+ # accurate and users should not rely on it to be always provided. The default of
811
+ # 0.0 is a sentinel value indicating `confidence` was not set.
812
+ # Corresponds to the JSON property `confidence`
813
+ # @return [Float]
814
+ attr_accessor :confidence
815
+
696
816
  # Time offset relative to the beginning of the audio, and corresponding to the
697
817
  # end of the spoken word. This field is only set if `enable_word_time_offsets=
698
818
  # true` and only in the top hypothesis. This is an experimental feature and the
@@ -729,6 +849,7 @@ module Google
729
849
 
730
850
  # Update properties of this object
731
851
  def update!(**args)
852
+ @confidence = args[:confidence] if args.key?(:confidence)
732
853
  @end_time = args[:end_time] if args.key?(:end_time)
733
854
  @speaker_tag = args[:speaker_tag] if args.key?(:speaker_tag)
734
855
  @start_time = args[:start_time] if args.key?(:start_time)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SpeechV1
18
18
  # Version of the google-apis-speech_v1 gem
19
- GEM_VERSION = "0.8.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210407"
25
+ REVISION = "20211021"
26
26
  end
27
27
  end
28
28
  end
@@ -112,6 +112,12 @@ module Google
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
+ class TranscriptOutputConfig
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
115
121
  class WordInfo
116
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
123
 
@@ -144,14 +150,21 @@ module Google
144
150
 
145
151
  property :config, as: 'config', class: Google::Apis::SpeechV1::RecognitionConfig, decorator: Google::Apis::SpeechV1::RecognitionConfig::Representation
146
152
 
153
+ property :output_config, as: 'outputConfig', class: Google::Apis::SpeechV1::TranscriptOutputConfig, decorator: Google::Apis::SpeechV1::TranscriptOutputConfig::Representation
154
+
147
155
  end
148
156
  end
149
157
 
150
158
  class LongRunningRecognizeResponse
151
159
  # @private
152
160
  class Representation < Google::Apis::Core::JsonRepresentation
161
+ property :output_config, as: 'outputConfig', class: Google::Apis::SpeechV1::TranscriptOutputConfig, decorator: Google::Apis::SpeechV1::TranscriptOutputConfig::Representation
162
+
163
+ property :output_error, as: 'outputError', class: Google::Apis::SpeechV1::Status, decorator: Google::Apis::SpeechV1::Status::Representation
164
+
153
165
  collection :results, as: 'results', class: Google::Apis::SpeechV1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1::SpeechRecognitionResult::Representation
154
166
 
167
+ property :total_billed_time, as: 'totalBilledTime'
155
168
  end
156
169
  end
157
170
 
@@ -178,11 +191,15 @@ module Google
178
191
  class RecognitionConfig
179
192
  # @private
180
193
  class Representation < Google::Apis::Core::JsonRepresentation
194
+ collection :alternative_language_codes, as: 'alternativeLanguageCodes'
181
195
  property :audio_channel_count, as: 'audioChannelCount'
182
196
  property :diarization_config, as: 'diarizationConfig', class: Google::Apis::SpeechV1::SpeakerDiarizationConfig, decorator: Google::Apis::SpeechV1::SpeakerDiarizationConfig::Representation
183
197
 
184
198
  property :enable_automatic_punctuation, as: 'enableAutomaticPunctuation'
185
199
  property :enable_separate_recognition_per_channel, as: 'enableSeparateRecognitionPerChannel'
200
+ property :enable_spoken_emojis, as: 'enableSpokenEmojis'
201
+ property :enable_spoken_punctuation, as: 'enableSpokenPunctuation'
202
+ property :enable_word_confidence, as: 'enableWordConfidence'
186
203
  property :enable_word_time_offsets, as: 'enableWordTimeOffsets'
187
204
  property :encoding, as: 'encoding'
188
205
  property :language_code, as: 'languageCode'
@@ -227,6 +244,7 @@ module Google
227
244
  class Representation < Google::Apis::Core::JsonRepresentation
228
245
  collection :results, as: 'results', class: Google::Apis::SpeechV1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1::SpeechRecognitionResult::Representation
229
246
 
247
+ property :total_billed_time, as: 'totalBilledTime'
230
248
  end
231
249
  end
232
250
 
@@ -263,6 +281,7 @@ module Google
263
281
  collection :alternatives, as: 'alternatives', class: Google::Apis::SpeechV1::SpeechRecognitionAlternative, decorator: Google::Apis::SpeechV1::SpeechRecognitionAlternative::Representation
264
282
 
265
283
  property :channel_tag, as: 'channelTag'
284
+ property :language_code, as: 'languageCode'
266
285
  end
267
286
  end
268
287
 
@@ -275,9 +294,17 @@ module Google
275
294
  end
276
295
  end
277
296
 
297
+ class TranscriptOutputConfig
298
+ # @private
299
+ class Representation < Google::Apis::Core::JsonRepresentation
300
+ property :gcs_uri, as: 'gcsUri'
301
+ end
302
+ end
303
+
278
304
  class WordInfo
279
305
  # @private
280
306
  class Representation < Google::Apis::Core::JsonRepresentation
307
+ property :confidence, as: 'confidence'
281
308
  property :end_time, as: 'endTime'
282
309
  property :speaker_tag, as: 'speakerTag'
283
310
  property :start_time, as: 'startTime'
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1'
31
31
 
32
- # See, edit, configure, and delete your Google Cloud Platform data
32
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
  end
35
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-speech_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.12.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-07-05 00:00:00.000000000 Z
11
+ date: 2021-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-speech_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1/v0.8.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-speech_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-speech_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1/v0.12.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-speech_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: