google-cloud-speech-v1p1beta1 0.11.1 → 0.12.2

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: c6c494ab22862d39805ed177dc3f2bbcbb3673768d7b56b00b0b752b393e40cc
4
- data.tar.gz: 5774cafe56f7a7a64941030510ca4f529ff07d75107c41d2fc4b2bad1f011ce2
3
+ metadata.gz: 4af3815d9a189a10219dc7a0b84a776ecb008714e0fa5a999039babbe742d125
4
+ data.tar.gz: 84a928450ec13268950601ffa4a8654afbae041eee2ec117ada8d1b37b35090d
5
5
  SHA512:
6
- metadata.gz: 8ad87b5a2ee943e592caa93aa39275c64b66a9d6952bc3a5dc5db8a8fe2f5fdc14843d30e766982f2a7f2be450980db7f2523eae77a3f1045dee5d9841c44977
7
- data.tar.gz: 663ecfdf1bae5c988c74d33789af3fa577b6fa266ed0e8d1e32cfd7118d2bc7ef8080c38f77a559fdf78e9fd33d9c67741d712038ae70c4e1fec35f352bef3d5
6
+ metadata.gz: f5561141ba3e1228c6197851a20625f6ab2e975e0737e3a716a14d0ac77d6e7fee442e19abae191a20223159668cd65aec72831ab40e300c439873b12f3a462c
7
+ data.tar.gz: 377b232c9ca485c282d9392bb798edbb0bebfbb1755237a39d823a706bfc9142b497df7b1edd7d8674109b51fdc369dbdce9bbbef805a46a37adf9dce69326ef
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Cloud Speech-to-Text V1p1beta1 API
2
+ --title="Cloud Speech-to-Text V1p1beta1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Speech::V1p1beta1::RecognizeRequest.new # (request fi
37
37
  response = client.recognize request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-speech-v1p1beta1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/speech-to-text)
@@ -167,7 +167,14 @@ module Google
167
167
  # @param parent [::String]
168
168
  # Required. The parent resource where this phrase set will be created.
169
169
  # Format:
170
- # \\{api_version}/projects/\\{project}/locations/\\{location}/phraseSets
170
+ #
171
+ # `projects/{project}/locations/{location}/phraseSets`
172
+ #
173
+ # Speech-to-Text supports three locations: `global`, `us` (US North America),
174
+ # and `eu` (Europe). If you are calling the `speech.googleapis.com`
175
+ # endpoint, use the `global` location. To specify a region, use a
176
+ # [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
177
+ # with matching `us` or `eu` location value.
171
178
  # @param phrase_set_id [::String]
172
179
  # Required. The ID to use for the phrase set, which will become the final
173
180
  # component of the phrase set's resource name.
@@ -260,9 +267,15 @@ module Google
260
267
  # the default parameter values, pass an empty Hash as a request object (see above).
261
268
  #
262
269
  # @param name [::String]
263
- # Required. The name of the phrase set to retrieve.
264
- # Format:
265
- # \\{api_version}/projects/\\{project}/locations/\\{location}/phraseSets/\\{phrase_set}
270
+ # Required. The name of the phrase set to retrieve. Format:
271
+ #
272
+ # `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
273
+ #
274
+ # Speech-to-Text supports three locations: `global`, `us` (US North America),
275
+ # and `eu` (Europe). If you are calling the `speech.googleapis.com`
276
+ # endpoint, use the `global` location. To specify a region, use a
277
+ # [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
278
+ # with matching `us` or `eu` location value.
266
279
  #
267
280
  # @yield [response, operation] Access the result along with the RPC operation
268
281
  # @yieldparam response [::Google::Cloud::Speech::V1p1beta1::PhraseSet]
@@ -347,9 +360,15 @@ module Google
347
360
  # the default parameter values, pass an empty Hash as a request object (see above).
348
361
  #
349
362
  # @param parent [::String]
350
- # Required. The parent, which owns this collection of phrase set.
351
- # Format:
352
- # projects/\\{project}/locations/\\{location}
363
+ # Required. The parent, which owns this collection of phrase set. Format:
364
+ #
365
+ # `projects/{project}/locations/{location}`
366
+ #
367
+ # Speech-to-Text supports three locations: `global`, `us` (US North America),
368
+ # and `eu` (Europe). If you are calling the `speech.googleapis.com`
369
+ # endpoint, use the `global` location. To specify a region, use a
370
+ # [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
371
+ # with matching `us` or `eu` location value.
353
372
  # @param page_size [::Integer]
354
373
  # The maximum number of phrase sets to return. The service may return
355
374
  # fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -456,7 +475,14 @@ module Google
456
475
  #
457
476
  # The phrase set's `name` field is used to identify the set to be
458
477
  # updated. Format:
459
- # \\{api_version}/projects/\\{project}/locations/\\{location}/phraseSets/\\{phrase_set}
478
+ #
479
+ # `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
480
+ #
481
+ # Speech-to-Text supports three locations: `global`, `us` (US North America),
482
+ # and `eu` (Europe). If you are calling the `speech.googleapis.com`
483
+ # endpoint, use the `global` location. To specify a region, use a
484
+ # [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
485
+ # with matching `us` or `eu` location value.
460
486
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
461
487
  # The list of fields to be updated.
462
488
  #
@@ -543,9 +569,9 @@ module Google
543
569
  # the default parameter values, pass an empty Hash as a request object (see above).
544
570
  #
545
571
  # @param name [::String]
546
- # Required. The name of the phrase set to delete.
547
- # Format:
548
- # \\{api_version}/projects/\\{project}/locations/\\{location}/phraseSets/\\{phrase_set}
572
+ # Required. The name of the phrase set to delete. Format:
573
+ #
574
+ # `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
549
575
  #
550
576
  # @yield [response, operation] Access the result along with the RPC operation
551
577
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -632,7 +658,14 @@ module Google
632
658
  # @param parent [::String]
633
659
  # Required. The parent resource where this custom class will be created.
634
660
  # Format:
635
- # \\{api_version}/projects/\\{project}/locations/\\{location}/customClasses
661
+ #
662
+ # `projects/{project}/locations/{location}/customClasses`
663
+ #
664
+ # Speech-to-Text supports three locations: `global`, `us` (US North America),
665
+ # and `eu` (Europe). If you are calling the `speech.googleapis.com`
666
+ # endpoint, use the `global` location. To specify a region, use a
667
+ # [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
668
+ # with matching `us` or `eu` location value.
636
669
  # @param custom_class_id [::String]
637
670
  # Required. The ID to use for the custom class, which will become the final
638
671
  # component of the custom class' resource name.
@@ -725,9 +758,9 @@ module Google
725
758
  # the default parameter values, pass an empty Hash as a request object (see above).
726
759
  #
727
760
  # @param name [::String]
728
- # Required. The name of the custom class to retrieve.
729
- # Format:
730
- # \\{api_version}/projects/\\{project}/locations/\\{location}/customClasses/\\{custom_class}
761
+ # Required. The name of the custom class to retrieve. Format:
762
+ #
763
+ # `projects/{project}/locations/{location}/customClasses/{custom_class}`
731
764
  #
732
765
  # @yield [response, operation] Access the result along with the RPC operation
733
766
  # @yieldparam response [::Google::Cloud::Speech::V1p1beta1::CustomClass]
@@ -812,9 +845,15 @@ module Google
812
845
  # the default parameter values, pass an empty Hash as a request object (see above).
813
846
  #
814
847
  # @param parent [::String]
815
- # Required. The parent, which owns this collection of custom classes.
816
- # Format:
817
- # \\{api_version}/projects/\\{project}/locations/\\{location}/customClasses
848
+ # Required. The parent, which owns this collection of custom classes. Format:
849
+ #
850
+ # `projects/{project}/locations/{location}/customClasses`
851
+ #
852
+ # Speech-to-Text supports three locations: `global`, `us` (US North America),
853
+ # and `eu` (Europe). If you are calling the `speech.googleapis.com`
854
+ # endpoint, use the `global` location. To specify a region, use a
855
+ # [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
856
+ # with matching `us` or `eu` location value.
818
857
  # @param page_size [::Integer]
819
858
  # The maximum number of custom classes to return. The service may return
820
859
  # fewer than this value. If unspecified, at most 50 custom classes will be
@@ -921,7 +960,14 @@ module Google
921
960
  #
922
961
  # The custom class's `name` field is used to identify the custom class to be
923
962
  # updated. Format:
924
- # \\{api_version}/projects/\\{project}/locations/\\{location}/customClasses/\\{custom_class}
963
+ #
964
+ # `projects/{project}/locations/{location}/customClasses/{custom_class}`
965
+ #
966
+ # Speech-to-Text supports three locations: `global`, `us` (US North America),
967
+ # and `eu` (Europe). If you are calling the `speech.googleapis.com`
968
+ # endpoint, use the `global` location. To specify a region, use a
969
+ # [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
970
+ # with matching `us` or `eu` location value.
925
971
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
926
972
  # The list of fields to be updated.
927
973
  #
@@ -1008,9 +1054,15 @@ module Google
1008
1054
  # the default parameter values, pass an empty Hash as a request object (see above).
1009
1055
  #
1010
1056
  # @param name [::String]
1011
- # Required. The name of the custom class to delete.
1012
- # Format:
1013
- # \\{api_version}/projects/\\{project}/locations/\\{location}/customClasses/\\{custom_class}
1057
+ # Required. The name of the custom class to delete. Format:
1058
+ #
1059
+ # `projects/{project}/locations/{location}/customClasses/{custom_class}`
1060
+ #
1061
+ # Speech-to-Text supports three locations: `global`, `us` (US North America),
1062
+ # and `eu` (Europe). If you are calling the `speech.googleapis.com`
1063
+ # endpoint, use the `global` location. To specify a region, use a
1064
+ # [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
1065
+ # with matching `us` or `eu` location value.
1014
1066
  #
1015
1067
  # @yield [response, operation] Access the result along with the RPC operation
1016
1068
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -172,6 +172,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
172
172
  add_message "google.cloud.speech.v1p1beta1.SpeechRecognitionResult" do
173
173
  repeated :alternatives, :message, 1, "google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative"
174
174
  optional :channel_tag, :int32, 2
175
+ optional :result_end_time, :message, 4, "google.protobuf.Duration"
175
176
  optional :language_code, :string, 5
176
177
  end
177
178
  add_message "google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative" do
@@ -147,6 +147,7 @@ module Google
147
147
 
148
148
  @operations_client = Operations.new do |config|
149
149
  config.credentials = credentials
150
+ config.quota_project = @quota_project_id
150
151
  config.endpoint = @config.endpoint
151
152
  end
152
153
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Speech
23
23
  module V1p1beta1
24
- VERSION = "0.11.1"
24
+ VERSION = "0.12.2"
25
25
  end
26
26
  end
27
27
  end
@@ -26,6 +26,8 @@ module Google
26
26
  ##
27
27
  # To load this package, including all its services, and instantiate a client:
28
28
  #
29
+ # @example
30
+ #
29
31
  # require "google/cloud/speech/v1p1beta1"
30
32
  # client = ::Google::Cloud::Speech::V1p1beta1::Speech::Client.new
31
33
  #
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -201,10 +201,10 @@ module Google
201
201
  # @!attribute [rw] adaptation
202
202
  # @return [::Google::Cloud::Speech::V1p1beta1::SpeechAdaptation]
203
203
  # Speech adaptation configuration improves the accuracy of speech
204
- # recognition. When speech adaptation is set it supersedes the
205
- # `speech_contexts` field. For more information, see the [speech
204
+ # recognition. For more information, see the [speech
206
205
  # adaptation](https://cloud.google.com/speech-to-text/docs/adaptation)
207
206
  # documentation.
207
+ # When speech adaptation is set it supersedes the `speech_contexts` field.
208
208
  # @!attribute [rw] transcript_normalization
209
209
  # @return [::Google::Cloud::Speech::V1p1beta1::TranscriptNormalization]
210
210
  # Use transcription normalization to automatically replace parts of the
@@ -333,7 +333,8 @@ module Google
333
333
  # a lossless encoding (`FLAC` or `LINEAR16`). The accuracy of the speech
334
334
  # recognition can be reduced if lossy codecs are used to capture or transmit
335
335
  # audio, particularly if background noise is present. Lossy codecs include
336
- # `MULAW`, `AMR`, `AMR_WB`, `OGG_OPUS`, `SPEEX_WITH_HEADER_BYTE`, `MP3`.
336
+ # `MULAW`, `AMR`, `AMR_WB`, `OGG_OPUS`, `SPEEX_WITH_HEADER_BYTE`, `MP3`,
337
+ # and `WEBM_OPUS`.
337
338
  #
338
339
  # The `FLAC` and `WAV` audio file formats include a header that describes the
339
340
  # included audio content. You can request recognition for `WAV` files that
@@ -396,9 +397,8 @@ module Google
396
397
  MP3 = 8
397
398
 
398
399
  # Opus encoded audio frames in WebM container
399
- # ([OggOpus](https://wiki.xiph.org/OggOpus)). This is a Beta features and
400
- # only available in v1p1beta1. `sample_rate_hertz` must be one of 8000,
401
- # 12000, 16000, 24000, or 48000.
400
+ # ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
401
+ # one of 8000, 12000, 16000, 24000, or 48000.
402
402
  WEBM_OPUS = 9
403
403
  end
404
404
  end
@@ -817,6 +817,10 @@ module Google
817
817
  # For multi-channel audio, this is the channel number corresponding to the
818
818
  # recognized result for the audio from that channel.
819
819
  # For audio_channel_count = N, its output values can range from '1' to 'N'.
820
+ # @!attribute [rw] result_end_time
821
+ # @return [::Google::Protobuf::Duration]
822
+ # Time offset of the end of this result relative to the
823
+ # beginning of the audio.
820
824
  # @!attribute [r] language_code
821
825
  # @return [::String]
822
826
  # Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
@@ -26,7 +26,14 @@ module Google
26
26
  # @return [::String]
27
27
  # Required. The parent resource where this phrase set will be created.
28
28
  # Format:
29
- # \\{api_version}/projects/\\{project}/locations/\\{location}/phraseSets
29
+ #
30
+ # `projects/{project}/locations/{location}/phraseSets`
31
+ #
32
+ # Speech-to-Text supports three locations: `global`, `us` (US North America),
33
+ # and `eu` (Europe). If you are calling the `speech.googleapis.com`
34
+ # endpoint, use the `global` location. To specify a region, use a
35
+ # [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
36
+ # with matching `us` or `eu` location value.
30
37
  # @!attribute [rw] phrase_set_id
31
38
  # @return [::String]
32
39
  # Required. The ID to use for the phrase set, which will become the final
@@ -49,7 +56,14 @@ module Google
49
56
  #
50
57
  # The phrase set's `name` field is used to identify the set to be
51
58
  # updated. Format:
52
- # \\{api_version}/projects/\\{project}/locations/\\{location}/phraseSets/\\{phrase_set}
59
+ #
60
+ # `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
61
+ #
62
+ # Speech-to-Text supports three locations: `global`, `us` (US North America),
63
+ # and `eu` (Europe). If you are calling the `speech.googleapis.com`
64
+ # endpoint, use the `global` location. To specify a region, use a
65
+ # [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
66
+ # with matching `us` or `eu` location value.
53
67
  # @!attribute [rw] update_mask
54
68
  # @return [::Google::Protobuf::FieldMask]
55
69
  # The list of fields to be updated.
@@ -61,9 +75,15 @@ module Google
61
75
  # Message sent by the client for the `GetPhraseSet` method.
62
76
  # @!attribute [rw] name
63
77
  # @return [::String]
64
- # Required. The name of the phrase set to retrieve.
65
- # Format:
66
- # \\{api_version}/projects/\\{project}/locations/\\{location}/phraseSets/\\{phrase_set}
78
+ # Required. The name of the phrase set to retrieve. Format:
79
+ #
80
+ # `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
81
+ #
82
+ # Speech-to-Text supports three locations: `global`, `us` (US North America),
83
+ # and `eu` (Europe). If you are calling the `speech.googleapis.com`
84
+ # endpoint, use the `global` location. To specify a region, use a
85
+ # [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
86
+ # with matching `us` or `eu` location value.
67
87
  class GetPhraseSetRequest
68
88
  include ::Google::Protobuf::MessageExts
69
89
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -72,9 +92,15 @@ module Google
72
92
  # Message sent by the client for the `ListPhraseSet` method.
73
93
  # @!attribute [rw] parent
74
94
  # @return [::String]
75
- # Required. The parent, which owns this collection of phrase set.
76
- # Format:
77
- # projects/\\{project}/locations/\\{location}
95
+ # Required. The parent, which owns this collection of phrase set. Format:
96
+ #
97
+ # `projects/{project}/locations/{location}`
98
+ #
99
+ # Speech-to-Text supports three locations: `global`, `us` (US North America),
100
+ # and `eu` (Europe). If you are calling the `speech.googleapis.com`
101
+ # endpoint, use the `global` location. To specify a region, use a
102
+ # [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
103
+ # with matching `us` or `eu` location value.
78
104
  # @!attribute [rw] page_size
79
105
  # @return [::Integer]
80
106
  # The maximum number of phrase sets to return. The service may return
@@ -109,9 +135,9 @@ module Google
109
135
  # Message sent by the client for the `DeletePhraseSet` method.
110
136
  # @!attribute [rw] name
111
137
  # @return [::String]
112
- # Required. The name of the phrase set to delete.
113
- # Format:
114
- # \\{api_version}/projects/\\{project}/locations/\\{location}/phraseSets/\\{phrase_set}
138
+ # Required. The name of the phrase set to delete. Format:
139
+ #
140
+ # `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
115
141
  class DeletePhraseSetRequest
116
142
  include ::Google::Protobuf::MessageExts
117
143
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -122,7 +148,14 @@ module Google
122
148
  # @return [::String]
123
149
  # Required. The parent resource where this custom class will be created.
124
150
  # Format:
125
- # \\{api_version}/projects/\\{project}/locations/\\{location}/customClasses
151
+ #
152
+ # `projects/{project}/locations/{location}/customClasses`
153
+ #
154
+ # Speech-to-Text supports three locations: `global`, `us` (US North America),
155
+ # and `eu` (Europe). If you are calling the `speech.googleapis.com`
156
+ # endpoint, use the `global` location. To specify a region, use a
157
+ # [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
158
+ # with matching `us` or `eu` location value.
126
159
  # @!attribute [rw] custom_class_id
127
160
  # @return [::String]
128
161
  # Required. The ID to use for the custom class, which will become the final
@@ -145,7 +178,14 @@ module Google
145
178
  #
146
179
  # The custom class's `name` field is used to identify the custom class to be
147
180
  # updated. Format:
148
- # \\{api_version}/projects/\\{project}/locations/\\{location}/customClasses/\\{custom_class}
181
+ #
182
+ # `projects/{project}/locations/{location}/customClasses/{custom_class}`
183
+ #
184
+ # Speech-to-Text supports three locations: `global`, `us` (US North America),
185
+ # and `eu` (Europe). If you are calling the `speech.googleapis.com`
186
+ # endpoint, use the `global` location. To specify a region, use a
187
+ # [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
188
+ # with matching `us` or `eu` location value.
149
189
  # @!attribute [rw] update_mask
150
190
  # @return [::Google::Protobuf::FieldMask]
151
191
  # The list of fields to be updated.
@@ -157,9 +197,9 @@ module Google
157
197
  # Message sent by the client for the `GetCustomClass` method.
158
198
  # @!attribute [rw] name
159
199
  # @return [::String]
160
- # Required. The name of the custom class to retrieve.
161
- # Format:
162
- # \\{api_version}/projects/\\{project}/locations/\\{location}/customClasses/\\{custom_class}
200
+ # Required. The name of the custom class to retrieve. Format:
201
+ #
202
+ # `projects/{project}/locations/{location}/customClasses/{custom_class}`
163
203
  class GetCustomClassRequest
164
204
  include ::Google::Protobuf::MessageExts
165
205
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -168,9 +208,15 @@ module Google
168
208
  # Message sent by the client for the `ListCustomClasses` method.
169
209
  # @!attribute [rw] parent
170
210
  # @return [::String]
171
- # Required. The parent, which owns this collection of custom classes.
172
- # Format:
173
- # \\{api_version}/projects/\\{project}/locations/\\{location}/customClasses
211
+ # Required. The parent, which owns this collection of custom classes. Format:
212
+ #
213
+ # `projects/{project}/locations/{location}/customClasses`
214
+ #
215
+ # Speech-to-Text supports three locations: `global`, `us` (US North America),
216
+ # and `eu` (Europe). If you are calling the `speech.googleapis.com`
217
+ # endpoint, use the `global` location. To specify a region, use a
218
+ # [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
219
+ # with matching `us` or `eu` location value.
174
220
  # @!attribute [rw] page_size
175
221
  # @return [::Integer]
176
222
  # The maximum number of custom classes to return. The service may return
@@ -205,9 +251,15 @@ module Google
205
251
  # Message sent by the client for the `DeleteCustomClass` method.
206
252
  # @!attribute [rw] name
207
253
  # @return [::String]
208
- # Required. The name of the custom class to delete.
209
- # Format:
210
- # \\{api_version}/projects/\\{project}/locations/\\{location}/customClasses/\\{custom_class}
254
+ # Required. The name of the custom class to delete. Format:
255
+ #
256
+ # `projects/{project}/locations/{location}/customClasses/{custom_class}`
257
+ #
258
+ # Speech-to-Text supports three locations: `global`, `us` (US North America),
259
+ # and `eu` (Europe). If you are calling the `speech.googleapis.com`
260
+ # endpoint, use the `global` location. To specify a region, use a
261
+ # [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
262
+ # with matching `us` or `eu` location value.
211
263
  class DeleteCustomClassRequest
212
264
  include ::Google::Protobuf::MessageExts
213
265
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -90,6 +90,12 @@ module Google
90
90
  # resources and inline classes. Then use the class' id wrapped in $`{...}`
91
91
  # e.g. "$\\{my-months}". To refer to custom classes resources, use the class'
92
92
  # id wrapped in `${}` (e.g. `${my-months}`).
93
+ #
94
+ # Speech-to-Text supports three locations: `global`, `us` (US North America),
95
+ # and `eu` (Europe). If you are calling the `speech.googleapis.com`
96
+ # endpoint, use the `global` location. To specify a region, use a
97
+ # [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or
98
+ # `eu` location value.
93
99
  # @!attribute [rw] value
94
100
  # @return [::String]
95
101
  # The phrase itself.
@@ -99,9 +105,8 @@ module Google
99
105
  # Positive value will increase the probability that a specific phrase will
100
106
  # be recognized over other similar sounding phrases. The higher the boost,
101
107
  # the higher the chance of false positive recognition as well. Negative
102
- # boost values would correspond to anti-biasing. Anti-biasing is not
103
- # enabled, so negative boost will simply be ignored. Though `boost` can
104
- # accept a wide range of positive values, most use cases are best served
108
+ # boost will simply be ignored. Though `boost` can accept a wide range of
109
+ # positive values, most use cases are best served
105
110
  # with values between 0 and 20. We recommend using a binary search approach
106
111
  # to finding the optimal value for your use case. Speech recognition
107
112
  # will skip PhraseSets with a boost value of 0.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-speech-v1p1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.12.2
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-11-08 00:00:00.000000000 Z
11
+ date: 2022-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  - !ruby/object:Gem::Version
224
224
  version: '0'
225
225
  requirements: []
226
- rubygems_version: 3.2.17
226
+ rubygems_version: 3.3.5
227
227
  signing_key:
228
228
  specification_version: 4
229
229
  summary: API Client library for the Cloud Speech-to-Text V1p1beta1 API