google-apis-speech_v1p1beta1 0.3.0 → 0.8.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: 113bcf19d83bb62f06a5024851744b6c3e392bcb6ab4dcca6ad16e92e0393c72
4
- data.tar.gz: 7d9c987afd2acd6e2f4b0627562fc0c2ea909acfff61e813e6c7e1986a02434f
3
+ metadata.gz: ce022934ae7dfbe5256b8aab6441bcf0a49293ceaaccd75b85c90003b1dcfcad
4
+ data.tar.gz: 4e561084fc404af9de7ea61c22dee6374e481f874e745f471c443eaec93ea71d
5
5
  SHA512:
6
- metadata.gz: 4fe857e9138667eb02fd6129750625d124386a807bc75bb4794015da45be2c5ae7974847d08e8360ddd91bc7ba8b7c870ee149b0af318de84afd3d9cf2d0a5ca
7
- data.tar.gz: 8c4afa1df0d2bce501ae98fd837c2c67d1c5e787bf3f94a7bf7dc8317095c9a5ed19d54c3ad565db0e07de02d2ce01840d7b2dccf06d7a8a1e68bee2b30c2e4c
6
+ metadata.gz: 9198cb2ecd35020e8f9700fe58c2359276b789a5f6ced7335f5330ef60f6f9076f72c645948f8a1542211e79520c78172ffe4e10f12de97b43dfc144f79c7102
7
+ data.tar.gz: 292ecd70796f940c3ae9237a85e380e075388386cbdd35dd641be1ccb570a76c8f109550feed9a0e5924a4fcd663742faed8df3e8ddb43ad5f9ed102d07382e8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-speech_v1p1beta1
2
2
 
3
+ ### v0.8.0 (2021-04-16)
4
+
5
+ * Regenerated from discovery document revision 20210407
6
+
7
+ ### v0.7.0 (2021-04-01)
8
+
9
+ * Regenerated from discovery document revision 20210325
10
+
11
+ ### v0.6.0 (2021-03-25)
12
+
13
+ * Regenerated from discovery document revision 20210318
14
+
15
+ ### v0.5.0 (2021-03-18)
16
+
17
+ * Regenerated from discovery document revision 20210311
18
+ * Regenerated using generator version 0.2.0
19
+
20
+ ### v0.4.0 (2021-03-04)
21
+
22
+ * Unspecified changes
23
+
3
24
  ### v0.3.0 (2021-02-26)
4
25
 
5
26
  * Regenerated from discovery document revision 20210218
@@ -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.3.0"
19
+ GEM_VERSION = "0.8.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 = "20210407"
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.3.0
4
+ version: 0.8.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-01 00:00:00.000000000 Z
11
+ date: 2021-05-18 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.3.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1p1beta1/v0.8.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: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.11
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