google-apis-speech_v1 0.27.0 → 0.29.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: 1ce90415816a873ab1f83107a11d86671c8be292499ab367e4e18260f7dec8ff
4
- data.tar.gz: 7e88b9447b73b3b5269620c04c867a7d51a4c91522ac1c01617f8301d1f8c48a
3
+ metadata.gz: 8e31c9600332ed1905bd53862013259da4fcbc2e2c037befd5ad5fb6ab9c061e
4
+ data.tar.gz: 7a87c1359f9b8f3b5d7c6ae0b9df0172e4eb37616e57c596956307b6427e7ffa
5
5
  SHA512:
6
- metadata.gz: 93009545ea2e12a6f2ba410427118547b73e891679ae5f72f9b052ebbb275f790938888f90cd9173f08f5053ca2d0de2567ad255f1a4501d01afb412dff04d25
7
- data.tar.gz: 45196c282f84c1a7adbed404b4d3400735d6ecfef02d7316dc5c5d1774fc06065901f64518f6ddca6c5ea86c39b84eb7d97f0d66139913f4a061b0135b18f64d
6
+ metadata.gz: 4aa2acbe62cae16cda08635edf2b5e6185319671bf9cd5fb6656eed5a92787466d5237a026b0433ef2afdebc6a84d4bd948cf1c33abdc8dddbcbb18ecab8e7f1
7
+ data.tar.gz: a28dffed57685eea83f8eb1219e05ba11e2b1a0b807d773b1d3dd82127c0f62bd25c9bcb3b73d643caeb6a8e9e3db08d09541b5c08736028a2b9aa929803b4fa
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-speech_v1
2
2
 
3
+ ### v0.29.0 (2023-01-29)
4
+
5
+ * Regenerated from discovery document revision 20230119
6
+ * Regenerated using generator version 0.11.1
7
+
8
+ ### v0.28.0 (2022-12-07)
9
+
10
+ * Regenerated from discovery document revision 20221202
11
+
3
12
  ### v0.27.0 (2022-10-27)
4
13
 
5
14
  * Regenerated from discovery document revision 20221020
@@ -22,6 +22,26 @@ module Google
22
22
  module Apis
23
23
  module SpeechV1
24
24
 
25
+ #
26
+ class AbnfGrammar
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # All declarations and rules of an ABNF grammar broken up into multiple strings
30
+ # that will end up concatenated.
31
+ # Corresponds to the JSON property `abnfStrings`
32
+ # @return [Array<String>]
33
+ attr_accessor :abnf_strings
34
+
35
+ def initialize(**args)
36
+ update!(**args)
37
+ end
38
+
39
+ # Update properties of this object
40
+ def update!(**args)
41
+ @abnf_strings = args[:abnf_strings] if args.key?(:abnf_strings)
42
+ end
43
+ end
44
+
25
45
  # An item of the class.
26
46
  class ClassItem
27
47
  include Google::Apis::Core::Hashable
@@ -444,8 +464,8 @@ module Google
444
464
  # ``` (e.g. `$`my-months``). Speech-to-Text supports three locations: `global`, `
445
465
  # us` (US North America), and `eu` (Europe). If you are calling the `speech.
446
466
  # googleapis.com` endpoint, use the `global` location. To specify a region, use
447
- # a [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or `
448
- # eu` location value.
467
+ # a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
468
+ # with matching `us` or `eu` location value.
449
469
  class Phrase
450
470
  include Google::Apis::Core::Hashable
451
471
 
@@ -455,8 +475,8 @@ module Google
455
475
  # false positive recognition as well. Negative boost will simply be ignored.
456
476
  # Though `boost` can accept a wide range of positive values, most use cases are
457
477
  # best served with values between 0 and 20. We recommend using a binary search
458
- # approach to finding the optimal value for your use case. Speech recognition
459
- # will skip PhraseSets with a boost value of 0.
478
+ # approach to finding the optimal value for your use case as well as adding
479
+ # phrases both with and without boost to your requests.
460
480
  # Corresponds to the JSON property `boost`
461
481
  # @return [Float]
462
482
  attr_accessor :boost
@@ -489,8 +509,8 @@ module Google
489
509
  # negative boost will simply be ignored. Though `boost` can accept a wide range
490
510
  # of positive values, most use cases are best served with values between 0 (
491
511
  # exclusive) and 20. We recommend using a binary search approach to finding the
492
- # optimal value for your use case. Speech recognition will skip PhraseSets with
493
- # a boost value of 0.
512
+ # optimal value for your use case as well as adding phrases both with and
513
+ # without boost to your requests.
494
514
  # Corresponds to the JSON property `boost`
495
515
  # @return [Float]
496
516
  attr_accessor :boost
@@ -946,6 +966,13 @@ module Google
946
966
  class SpeechAdaptation
947
967
  include Google::Apis::Core::Hashable
948
968
 
969
+ # Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised
970
+ # by a set of derivation rules. See specifications: https://www.w3.org/TR/speech-
971
+ # grammar
972
+ # Corresponds to the JSON property `abnfGrammar`
973
+ # @return [Google::Apis::SpeechV1::AbnfGrammar]
974
+ attr_accessor :abnf_grammar
975
+
949
976
  # A collection of custom classes. To specify the classes inline, leave the class'
950
977
  # `name` blank and fill in the rest of its fields, giving it a unique `
951
978
  # custom_class_id`. Refer to the inline defined class in phrase hints by its `
@@ -972,6 +999,7 @@ module Google
972
999
 
973
1000
  # Update properties of this object
974
1001
  def update!(**args)
1002
+ @abnf_grammar = args[:abnf_grammar] if args.key?(:abnf_grammar)
975
1003
  @custom_classes = args[:custom_classes] if args.key?(:custom_classes)
976
1004
  @phrase_set_references = args[:phrase_set_references] if args.key?(:phrase_set_references)
977
1005
  @phrase_sets = args[:phrase_sets] if args.key?(:phrase_sets)
@@ -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.27.0"
19
+ GEM_VERSION = "0.29.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221020"
25
+ REVISION = "20230119"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module SpeechV1
24
24
 
25
+ class AbnfGrammar
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class ClassItem
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -190,6 +196,13 @@ module Google
190
196
  include Google::Apis::Core::JsonObjectSupport
191
197
  end
192
198
 
199
+ class AbnfGrammar
200
+ # @private
201
+ class Representation < Google::Apis::Core::JsonRepresentation
202
+ collection :abnf_strings, as: 'abnfStrings'
203
+ end
204
+ end
205
+
193
206
  class ClassItem
194
207
  # @private
195
208
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -412,6 +425,8 @@ module Google
412
425
  class SpeechAdaptation
413
426
  # @private
414
427
  class Representation < Google::Apis::Core::JsonRepresentation
428
+ property :abnf_grammar, as: 'abnfGrammar', class: Google::Apis::SpeechV1::AbnfGrammar, decorator: Google::Apis::SpeechV1::AbnfGrammar::Representation
429
+
415
430
  collection :custom_classes, as: 'customClasses', class: Google::Apis::SpeechV1::CustomClass, decorator: Google::Apis::SpeechV1::CustomClass::Representation
416
431
 
417
432
  collection :phrase_set_references, as: 'phraseSetReferences'
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.27.0
4
+ version: 0.29.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-10-31 00:00:00.000000000 Z
11
+ date: 2023-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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.27.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1/v0.29.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Speech-to-Text API V1