google-apis-speech_v1p1beta1 0.4.0 → 0.9.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84df0a7b8a5c08f8927f9c8154a5b0cfd302dbb10042275b090920a7179650b1
4
- data.tar.gz: dce6968718bcdd2c856ac5a3221009bbed84671d7bf00d3a1e672c2fdad2a87c
3
+ metadata.gz: 2eb8171423a0ee3f43dc6a538b487f9a725d591f5ac2e8ccd8a14729c614eeb5
4
+ data.tar.gz: b1cf0691b64ab4c24cba1ed1d04989185066356e1a7d07cc045379a95a74f4ee
5
5
  SHA512:
6
- metadata.gz: e9eac9020f4b29bcb55916403cb617f1a7b6c53867cf5651d658c9acef7b6b6fb3d5ae52154a558e08ef491b5d96e6bf1534947a1489a8f95a968fb9550f8cb1
7
- data.tar.gz: 2ea1bf4686f1a5c70f7efe28a492a0d51a8d9f3f6f7648e410ed577d7e1fb5bd8814ed2dcf0748ad8366458e127924224f0c07f5506195d8f7fe548f4272a26c
6
+ metadata.gz: 5984a70e2c820def3b0616facefec0c8918b89baefe646d16e94051d6acaf7e2e71d3a358788a74bd0ecf86a512c3cf31496134596ca3b33ddefc27b240c0d12
7
+ data.tar.gz: d5cf58e488a2bafc5c8ba6f03348e07ef76ab870fe57dbf67495cf30c5ab8d4bdaecaaac3009a3c4d28d92c8aa169d48a0a754d53e408e1384d94c66fa56d902
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-speech_v1p1beta1
2
2
 
3
+ ### v0.9.0 (2021-05-20)
4
+
5
+ * Regenerated from discovery document revision 20210429
6
+
7
+ ### v0.8.0 (2021-04-16)
8
+
9
+ * Regenerated from discovery document revision 20210407
10
+
11
+ ### v0.7.0 (2021-04-01)
12
+
13
+ * Regenerated from discovery document revision 20210325
14
+
15
+ ### v0.6.0 (2021-03-25)
16
+
17
+ * Regenerated from discovery document revision 20210318
18
+
19
+ ### v0.5.0 (2021-03-18)
20
+
21
+ * Regenerated from discovery document revision 20210311
22
+ * Regenerated using generator version 0.2.0
23
+
3
24
  ### v0.4.0 (2021-03-04)
4
25
 
5
26
  * Unspecified changes
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1p1beta1'
31
31
 
32
- # View and manage your data across Google Cloud Platform services
32
+ # See, edit, configure, and delete your Google Cloud Platform data
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
  end
35
35
  end
@@ -237,6 +237,11 @@ module Google
237
237
  # @return [String]
238
238
  attr_accessor :last_update_time
239
239
 
240
+ # Specifies an optional destination for the recognition results.
241
+ # Corresponds to the JSON property `outputConfig`
242
+ # @return [Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig]
243
+ attr_accessor :output_config
244
+
240
245
  # Approximate percentage of audio processed thus far. Guaranteed to be 100 when
241
246
  # the audio is fully processed and the results are available.
242
247
  # Corresponds to the JSON property `progressPercent`
@@ -261,6 +266,7 @@ module Google
261
266
  # Update properties of this object
262
267
  def update!(**args)
263
268
  @last_update_time = args[:last_update_time] if args.key?(:last_update_time)
269
+ @output_config = args[:output_config] if args.key?(:output_config)
264
270
  @progress_percent = args[:progress_percent] if args.key?(:progress_percent)
265
271
  @start_time = args[:start_time] if args.key?(:start_time)
266
272
  @uri = args[:uri] if args.key?(:uri)
@@ -285,6 +291,11 @@ module Google
285
291
  # @return [Google::Apis::SpeechV1p1beta1::RecognitionConfig]
286
292
  attr_accessor :config
287
293
 
294
+ # Specifies an optional destination for the recognition results.
295
+ # Corresponds to the JSON property `outputConfig`
296
+ # @return [Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig]
297
+ attr_accessor :output_config
298
+
288
299
  def initialize(**args)
289
300
  update!(**args)
290
301
  end
@@ -293,6 +304,7 @@ module Google
293
304
  def update!(**args)
294
305
  @audio = args[:audio] if args.key?(:audio)
295
306
  @config = args[:config] if args.key?(:config)
307
+ @output_config = args[:output_config] if args.key?(:output_config)
296
308
  end
297
309
  end
298
310
 
@@ -304,6 +316,21 @@ module Google
304
316
  class LongRunningRecognizeResponse
305
317
  include Google::Apis::Core::Hashable
306
318
 
319
+ # Specifies an optional destination for the recognition results.
320
+ # Corresponds to the JSON property `outputConfig`
321
+ # @return [Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig]
322
+ attr_accessor :output_config
323
+
324
+ # The `Status` type defines a logical error model that is suitable for different
325
+ # programming environments, including REST APIs and RPC APIs. It is used by [
326
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
327
+ # data: error code, error message, and error details. You can find out more
328
+ # about this error model and how to work with it in the [API Design Guide](https:
329
+ # //cloud.google.com/apis/design/errors).
330
+ # Corresponds to the JSON property `outputError`
331
+ # @return [Google::Apis::SpeechV1p1beta1::Status]
332
+ attr_accessor :output_error
333
+
307
334
  # Sequential list of transcription results corresponding to sequential portions
308
335
  # of audio.
309
336
  # Corresponds to the JSON property `results`
@@ -316,6 +343,8 @@ module Google
316
343
 
317
344
  # Update properties of this object
318
345
  def update!(**args)
346
+ @output_config = args[:output_config] if args.key?(:output_config)
347
+ @output_error = args[:output_error] if args.key?(:output_error)
319
348
  @results = args[:results] if args.key?(:results)
320
349
  end
321
350
  end
@@ -582,6 +611,26 @@ module Google
582
611
  attr_accessor :enable_speaker_diarization
583
612
  alias_method :enable_speaker_diarization?, :enable_speaker_diarization
584
613
 
614
+ # The spoken emoji behavior for the call If not set, uses default behavior based
615
+ # on model of choice If 'true', adds spoken emoji formatting for the request.
616
+ # This will replace spoken emojis with the corresponding Unicode symbols in the
617
+ # final transcript. If 'false', spoken emojis are not replaced.
618
+ # Corresponds to the JSON property `enableSpokenEmojis`
619
+ # @return [Boolean]
620
+ attr_accessor :enable_spoken_emojis
621
+ alias_method :enable_spoken_emojis?, :enable_spoken_emojis
622
+
623
+ # The spoken punctuation behavior for the call If not set, uses default behavior
624
+ # based on model of choice e.g. command_and_search will enable spoken
625
+ # punctuation by default If 'true', replaces spoken punctuation with the
626
+ # corresponding symbols in the request. For example, "how are you question mark"
627
+ # becomes "how are you?". See https://cloud.google.com/speech-to-text/docs/
628
+ # spoken-punctuation for support. If 'false', spoken punctuation is not replaced.
629
+ # Corresponds to the JSON property `enableSpokenPunctuation`
630
+ # @return [Boolean]
631
+ attr_accessor :enable_spoken_punctuation
632
+ alias_method :enable_spoken_punctuation?, :enable_spoken_punctuation
633
+
585
634
  # If `true`, the top result includes a list of words and the confidence for
586
635
  # those words. If `false`, no word-level confidence information is returned. The
587
636
  # default is `false`.
@@ -633,11 +682,11 @@ module Google
633
682
  # Model* *Description* command_and_search Best for short queries such as voice
634
683
  # commands or voice search. phone_call Best for audio that originated from a
635
684
  # phone call (typically recorded at an 8khz sampling rate). video Best for audio
636
- # that originated from from video or includes multiple speakers. Ideally the
637
- # audio is recorded at a 16khz or greater sampling rate. This is a premium model
638
- # that costs more than the standard rate. default Best for audio that is not one
639
- # of the specific audio models. For example, long-form audio. Ideally the audio
640
- # is high-fidelity, recorded at a 16khz or greater sampling rate.
685
+ # that originated from video or includes multiple speakers. Ideally the audio is
686
+ # recorded at a 16khz or greater sampling rate. This is a premium model that
687
+ # costs more than the standard rate. default Best for audio that is not one of
688
+ # the specific audio models. For example, long-form audio. Ideally the audio is
689
+ # high-fidelity, recorded at a 16khz or greater sampling rate.
641
690
  # Corresponds to the JSON property `model`
642
691
  # @return [String]
643
692
  attr_accessor :model
@@ -662,7 +711,7 @@ module Google
662
711
 
663
712
  # Array of SpeechContext. A means to provide context to assist the speech
664
713
  # recognition. For more information, see [speech adaptation](https://cloud.
665
- # google.com/speech-to-text/docs/context-strength).
714
+ # google.com/speech-to-text/docs/adaptation).
666
715
  # Corresponds to the JSON property `speechContexts`
667
716
  # @return [Array<Google::Apis::SpeechV1p1beta1::SpeechContext>]
668
717
  attr_accessor :speech_contexts
@@ -691,6 +740,8 @@ module Google
691
740
  @enable_automatic_punctuation = args[:enable_automatic_punctuation] if args.key?(:enable_automatic_punctuation)
692
741
  @enable_separate_recognition_per_channel = args[:enable_separate_recognition_per_channel] if args.key?(:enable_separate_recognition_per_channel)
693
742
  @enable_speaker_diarization = args[:enable_speaker_diarization] if args.key?(:enable_speaker_diarization)
743
+ @enable_spoken_emojis = args[:enable_spoken_emojis] if args.key?(:enable_spoken_emojis)
744
+ @enable_spoken_punctuation = args[:enable_spoken_punctuation] if args.key?(:enable_spoken_punctuation)
694
745
  @enable_word_confidence = args[:enable_word_confidence] if args.key?(:enable_word_confidence)
695
746
  @enable_word_time_offsets = args[:enable_word_time_offsets] if args.key?(:enable_word_time_offsets)
696
747
  @encoding = args[:encoding] if args.key?(:encoding)
@@ -1068,6 +1119,27 @@ module Google
1068
1119
  end
1069
1120
  end
1070
1121
 
1122
+ # Specifies an optional destination for the recognition results.
1123
+ class TranscriptOutputConfig
1124
+ include Google::Apis::Core::Hashable
1125
+
1126
+ # Specifies a Cloud Storage URI for the recognition results. Must be specified
1127
+ # in the format: `gs://bucket_name/object_name`, and the bucket must already
1128
+ # exist.
1129
+ # Corresponds to the JSON property `gcsUri`
1130
+ # @return [String]
1131
+ attr_accessor :gcs_uri
1132
+
1133
+ def initialize(**args)
1134
+ update!(**args)
1135
+ end
1136
+
1137
+ # Update properties of this object
1138
+ def update!(**args)
1139
+ @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
1140
+ end
1141
+ end
1142
+
1071
1143
  # Word-specific information for recognized words.
1072
1144
  class WordInfo
1073
1145
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SpeechV1p1beta1
18
18
  # Version of the google-apis-speech_v1p1beta1 gem
19
- GEM_VERSION = "0.4.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210218"
25
+ REVISION = "20210429"
26
26
  end
27
27
  end
28
28
  end
@@ -172,6 +172,12 @@ module Google
172
172
  include Google::Apis::Core::JsonObjectSupport
173
173
  end
174
174
 
175
+ class TranscriptOutputConfig
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
175
181
  class WordInfo
176
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
183
 
@@ -250,6 +256,8 @@ module Google
250
256
  # @private
251
257
  class Representation < Google::Apis::Core::JsonRepresentation
252
258
  property :last_update_time, as: 'lastUpdateTime'
259
+ property :output_config, as: 'outputConfig', class: Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig, decorator: Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig::Representation
260
+
253
261
  property :progress_percent, as: 'progressPercent'
254
262
  property :start_time, as: 'startTime'
255
263
  property :uri, as: 'uri'
@@ -263,12 +271,18 @@ module Google
263
271
 
264
272
  property :config, as: 'config', class: Google::Apis::SpeechV1p1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1p1beta1::RecognitionConfig::Representation
265
273
 
274
+ property :output_config, as: 'outputConfig', class: Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig, decorator: Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig::Representation
275
+
266
276
  end
267
277
  end
268
278
 
269
279
  class LongRunningRecognizeResponse
270
280
  # @private
271
281
  class Representation < Google::Apis::Core::JsonRepresentation
282
+ property :output_config, as: 'outputConfig', class: Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig, decorator: Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig::Representation
283
+
284
+ property :output_error, as: 'outputError', class: Google::Apis::SpeechV1p1beta1::Status, decorator: Google::Apis::SpeechV1p1beta1::Status::Representation
285
+
272
286
  collection :results, as: 'results', class: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult::Representation
273
287
 
274
288
  end
@@ -325,6 +339,8 @@ module Google
325
339
  property :enable_automatic_punctuation, as: 'enableAutomaticPunctuation'
326
340
  property :enable_separate_recognition_per_channel, as: 'enableSeparateRecognitionPerChannel'
327
341
  property :enable_speaker_diarization, as: 'enableSpeakerDiarization'
342
+ property :enable_spoken_emojis, as: 'enableSpokenEmojis'
343
+ property :enable_spoken_punctuation, as: 'enableSpokenPunctuation'
328
344
  property :enable_word_confidence, as: 'enableWordConfidence'
329
345
  property :enable_word_time_offsets, as: 'enableWordTimeOffsets'
330
346
  property :encoding, as: 'encoding'
@@ -432,6 +448,13 @@ module Google
432
448
  end
433
449
  end
434
450
 
451
+ class TranscriptOutputConfig
452
+ # @private
453
+ class Representation < Google::Apis::Core::JsonRepresentation
454
+ property :gcs_uri, as: 'gcsUri'
455
+ end
456
+ end
457
+
435
458
  class WordInfo
436
459
  # @private
437
460
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-speech_v1p1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.9.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-08 00:00:00.000000000 Z
11
+ date: 2021-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-speech_v1p1beta1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1p1beta1/v0.4.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1p1beta1/v0.9.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-speech_v1p1beta1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Speech-to-Text API V1p1beta1