google-apis-speech_v1 0.26.0 → 0.27.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: 66ee7add2504d648952d184f6a76b952f02e701476277f48ecfbcaa1c5cfbc8f
4
- data.tar.gz: a730cf9e51575ec142f0094faea4d277423b7a9df8163687fdf49d0e46ce8d2f
3
+ metadata.gz: 1ce90415816a873ab1f83107a11d86671c8be292499ab367e4e18260f7dec8ff
4
+ data.tar.gz: 7e88b9447b73b3b5269620c04c867a7d51a4c91522ac1c01617f8301d1f8c48a
5
5
  SHA512:
6
- metadata.gz: 7e15793e5cd2bdd73f7d0d539aaf7dd0a19f30997a4190c3f7c74c5db5670c8bbae1449d59d314d68678c837dffa652d63a879d0c35eb1928ee119d0870ef78b
7
- data.tar.gz: 30627f1d588e4bf8a06f8c7dad7d209918ca2fd593c38c8219e7236f512c3bbceb14bb80a726bfd833ecc0a8af22733bd580e6c09aa3aeae9727a0c94279a802
6
+ metadata.gz: 93009545ea2e12a6f2ba410427118547b73e891679ae5f72f9b052ebbb275f790938888f90cd9173f08f5053ca2d0de2567ad255f1a4501d01afb412dff04d25
7
+ data.tar.gz: 45196c282f84c1a7adbed404b4d3400735d6ecfef02d7316dc5c5d1774fc06065901f64518f6ddca6c5ea86c39b84eb7d97f0d66139913f4a061b0135b18f64d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-speech_v1
2
2
 
3
+ ### v0.27.0 (2022-10-27)
4
+
5
+ * Regenerated from discovery document revision 20221020
6
+ * Regenerated using generator version 0.11.0
7
+
3
8
  ### v0.26.0 (2022-09-23)
4
9
 
5
10
  * Regenerated using generator version 0.10.0
@@ -338,6 +338,11 @@ module Google
338
338
  # @return [Array<Google::Apis::SpeechV1::SpeechRecognitionResult>]
339
339
  attr_accessor :results
340
340
 
341
+ # Information on speech adaptation use in results
342
+ # Corresponds to the JSON property `speechAdaptationInfo`
343
+ # @return [Google::Apis::SpeechV1::SpeechAdaptationInfo]
344
+ attr_accessor :speech_adaptation_info
345
+
341
346
  # When available, billed audio seconds for the corresponding request.
342
347
  # Corresponds to the JSON property `totalBilledTime`
343
348
  # @return [String]
@@ -353,6 +358,7 @@ module Google
353
358
  @output_error = args[:output_error] if args.key?(:output_error)
354
359
  @request_id = args[:request_id] if args.key?(:request_id)
355
360
  @results = args[:results] if args.key?(:results)
361
+ @speech_adaptation_info = args[:speech_adaptation_info] if args.key?(:speech_adaptation_info)
356
362
  @total_billed_time = args[:total_billed_time] if args.key?(:total_billed_time)
357
363
  end
358
364
  end
@@ -572,12 +578,11 @@ module Google
572
578
  attr_accessor :alternative_language_codes
573
579
 
574
580
  # The number of channels in the input audio data. ONLY set this for MULTI-
575
- # CHANNEL recognition. Valid values for LINEAR16 and FLAC are `1`-`8`. Valid
576
- # values for OGG_OPUS are '1'-'254'. Valid value for MULAW, AMR, AMR_WB and
577
- # SPEEX_WITH_HEADER_BYTE is only `1`. If `0` or omitted, defaults to one channel
578
- # (mono). Note: We only recognize the first channel by default. To perform
579
- # independent recognition on each channel set `
580
- # enable_separate_recognition_per_channel` to 'true'.
581
+ # CHANNEL recognition. Valid values for LINEAR16, OGG_OPUS and FLAC are `1`-`8`.
582
+ # Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`. If `
583
+ # 0` or omitted, defaults to one channel (mono). Note: We only recognize the
584
+ # first channel by default. To perform independent recognition on each channel
585
+ # set `enable_separate_recognition_per_channel` to 'true'.
581
586
  # Corresponds to the JSON property `audioChannelCount`
582
587
  # @return [Fixnum]
583
588
  attr_accessor :audio_channel_count
@@ -870,6 +875,11 @@ module Google
870
875
  # @return [Array<Google::Apis::SpeechV1::SpeechRecognitionResult>]
871
876
  attr_accessor :results
872
877
 
878
+ # Information on speech adaptation use in results
879
+ # Corresponds to the JSON property `speechAdaptationInfo`
880
+ # @return [Google::Apis::SpeechV1::SpeechAdaptationInfo]
881
+ attr_accessor :speech_adaptation_info
882
+
873
883
  # When available, billed audio seconds for the corresponding request.
874
884
  # Corresponds to the JSON property `totalBilledTime`
875
885
  # @return [String]
@@ -883,6 +893,7 @@ module Google
883
893
  def update!(**args)
884
894
  @request_id = args[:request_id] if args.key?(:request_id)
885
895
  @results = args[:results] if args.key?(:results)
896
+ @speech_adaptation_info = args[:speech_adaptation_info] if args.key?(:speech_adaptation_info)
886
897
  @total_billed_time = args[:total_billed_time] if args.key?(:total_billed_time)
887
898
  end
888
899
  end
@@ -967,6 +978,34 @@ module Google
967
978
  end
968
979
  end
969
980
 
981
+ # Information on speech adaptation use in results
982
+ class SpeechAdaptationInfo
983
+ include Google::Apis::Core::Hashable
984
+
985
+ # Whether there was a timeout when applying speech adaptation. If true,
986
+ # adaptation had no effect in the response transcript.
987
+ # Corresponds to the JSON property `adaptationTimeout`
988
+ # @return [Boolean]
989
+ attr_accessor :adaptation_timeout
990
+ alias_method :adaptation_timeout?, :adaptation_timeout
991
+
992
+ # If set, returns a message specifying which part of the speech adaptation
993
+ # request timed out.
994
+ # Corresponds to the JSON property `timeoutMessage`
995
+ # @return [String]
996
+ attr_accessor :timeout_message
997
+
998
+ def initialize(**args)
999
+ update!(**args)
1000
+ end
1001
+
1002
+ # Update properties of this object
1003
+ def update!(**args)
1004
+ @adaptation_timeout = args[:adaptation_timeout] if args.key?(:adaptation_timeout)
1005
+ @timeout_message = args[:timeout_message] if args.key?(:timeout_message)
1006
+ end
1007
+ end
1008
+
970
1009
  # Provides "hints" to the speech recognizer to favor specific words and phrases
971
1010
  # in the results.
972
1011
  class SpeechContext
@@ -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.26.0"
19
+ GEM_VERSION = "0.27.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.10.0"
22
+ GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220818"
25
+ REVISION = "20221020"
26
26
  end
27
27
  end
28
28
  end
@@ -148,6 +148,12 @@ module Google
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
+ class SpeechAdaptationInfo
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
151
157
  class SpeechContext
152
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
159
 
@@ -284,6 +290,8 @@ module Google
284
290
  property :request_id, :numeric_string => true, as: 'requestId'
285
291
  collection :results, as: 'results', class: Google::Apis::SpeechV1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1::SpeechRecognitionResult::Representation
286
292
 
293
+ property :speech_adaptation_info, as: 'speechAdaptationInfo', class: Google::Apis::SpeechV1::SpeechAdaptationInfo, decorator: Google::Apis::SpeechV1::SpeechAdaptationInfo::Representation
294
+
287
295
  property :total_billed_time, as: 'totalBilledTime'
288
296
  end
289
297
  end
@@ -385,6 +393,8 @@ module Google
385
393
  property :request_id, :numeric_string => true, as: 'requestId'
386
394
  collection :results, as: 'results', class: Google::Apis::SpeechV1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1::SpeechRecognitionResult::Representation
387
395
 
396
+ property :speech_adaptation_info, as: 'speechAdaptationInfo', class: Google::Apis::SpeechV1::SpeechAdaptationInfo, decorator: Google::Apis::SpeechV1::SpeechAdaptationInfo::Representation
397
+
388
398
  property :total_billed_time, as: 'totalBilledTime'
389
399
  end
390
400
  end
@@ -410,6 +420,14 @@ module Google
410
420
  end
411
421
  end
412
422
 
423
+ class SpeechAdaptationInfo
424
+ # @private
425
+ class Representation < Google::Apis::Core::JsonRepresentation
426
+ property :adaptation_timeout, as: 'adaptationTimeout'
427
+ property :timeout_message, as: 'timeoutMessage'
428
+ end
429
+ end
430
+
413
431
  class SpeechContext
414
432
  # @private
415
433
  class Representation < Google::Apis::Core::JsonRepresentation
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.26.0
4
+ version: 0.27.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: 2022-09-26 00:00:00.000000000 Z
11
+ date: 2022-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.0
19
+ version: 0.9.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.0
29
+ version: 0.9.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
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.26.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1/v0.27.0
62
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: []