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 +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +1 -1
- data/lib/google/cloud/speech/v1p1beta1/adaptation/client.rb +74 -22
- data/lib/google/cloud/speech/v1p1beta1/cloud_speech_pb.rb +1 -0
- data/lib/google/cloud/speech/v1p1beta1/speech/client.rb +1 -0
- data/lib/google/cloud/speech/v1p1beta1/version.rb +1 -1
- data/lib/google/cloud/speech/v1p1beta1.rb +2 -0
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb +10 -6
- data/proto_docs/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.rb +74 -22
- data/proto_docs/google/cloud/speech/v1p1beta1/resource.rb +8 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4af3815d9a189a10219dc7a0b84a776ecb008714e0fa5a999039babbe742d125
|
4
|
+
data.tar.gz: 84a928450ec13268950601ffa4a8654afbae041eee2ec117ada8d1b37b35090d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5561141ba3e1228c6197851a20625f6ab2e975e0737e3a716a14d0ac77d6e7fee442e19abae191a20223159668cd65aec72831ab40e300c439873b12f3a462c
|
7
|
+
data.tar.gz: 377b232c9ca485c282d9392bb798edbb0bebfbb1755237a39d823a706bfc9142b497df7b1edd7d8674109b51fdc369dbdce9bbbef805a46a37adf9dce69326ef
|
data/.yardopts
CHANGED
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
|
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
|
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
|
-
|
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,
|
164
|
-
|
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://
|
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
|
-
#
|
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
|
-
#
|
265
|
-
#
|
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
|
-
#
|
352
|
-
# projects
|
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
|
-
#
|
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
|
-
#
|
548
|
-
#
|
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
|
-
#
|
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
|
-
#
|
730
|
-
#
|
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
|
-
#
|
817
|
-
#
|
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
|
-
#
|
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
|
-
#
|
1013
|
-
#
|
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
|
@@ -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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
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
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
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.
|
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)).
|
400
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
66
|
-
#
|
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
|
-
#
|
77
|
-
# projects
|
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
|
-
#
|
114
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
162
|
-
#
|
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
|
-
#
|
173
|
-
#
|
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
|
-
#
|
210
|
-
#
|
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
|
103
|
-
#
|
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.
|
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:
|
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.
|
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
|