google-cloud-speech-v1p1beta1 0.12.0 → 0.12.3
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 +20 -18
- data/lib/google/cloud/speech/v1p1beta1/cloud_speech_adaptation_pb.rb +2 -1
- data/lib/google/cloud/speech/v1p1beta1/cloud_speech_pb.rb +2 -1
- data/lib/google/cloud/speech/v1p1beta1/resource_pb.rb +2 -1
- 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 +30 -16
- data/proto_docs/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.rb +20 -18
- data/proto_docs/google/protobuf/any.rb +3 -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: 3d45913fdb6919339690465aa6edbea72d98dcf70bf85f0a4db656a075c79998
|
4
|
+
data.tar.gz: 978c17125191f633ad4b3c9ce2e2163638809ff1ad28890fb8242922e25e9c71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96b385810e6b5fbda88ac94f592e84e5aef1dce0a8b09c23499fb3fa71bce6aee7f802fd311ae6bd9955b043bb2f1d9c67ec809f346670ecd94bdb37f527dad6
|
7
|
+
data.tar.gz: 869591d2af46d21310e5fb4af0effaa4ecd0ac7fc665c21aaa504f4bded2e940ff62a9c09cd21366c9af8508868a67bc6a143f342ae29808604292b0a2ba39eb
|
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)
|
@@ -165,15 +165,16 @@ module Google
|
|
165
165
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
166
166
|
#
|
167
167
|
# @param parent [::String]
|
168
|
-
# Required. The parent resource where this phrase set will be created.
|
168
|
+
# Required. The parent resource where this phrase set will be created.
|
169
|
+
# Format:
|
169
170
|
#
|
170
171
|
# `projects/{project}/locations/{location}/phraseSets`
|
171
172
|
#
|
172
173
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
173
174
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
174
175
|
# endpoint, use the `global` location. To specify a region, use a
|
175
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
176
|
-
# `eu` location value.
|
176
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
177
|
+
# with matching `us` or `eu` location value.
|
177
178
|
# @param phrase_set_id [::String]
|
178
179
|
# Required. The ID to use for the phrase set, which will become the final
|
179
180
|
# component of the phrase set's resource name.
|
@@ -273,8 +274,8 @@ module Google
|
|
273
274
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
274
275
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
275
276
|
# endpoint, use the `global` location. To specify a region, use a
|
276
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
277
|
-
# `eu` location value.
|
277
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
278
|
+
# with matching `us` or `eu` location value.
|
278
279
|
#
|
279
280
|
# @yield [response, operation] Access the result along with the RPC operation
|
280
281
|
# @yieldparam response [::Google::Cloud::Speech::V1p1beta1::PhraseSet]
|
@@ -366,8 +367,8 @@ module Google
|
|
366
367
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
367
368
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
368
369
|
# endpoint, use the `global` location. To specify a region, use a
|
369
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
370
|
-
# `eu` location value.
|
370
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
371
|
+
# with matching `us` or `eu` location value.
|
371
372
|
# @param page_size [::Integer]
|
372
373
|
# The maximum number of phrase sets to return. The service may return
|
373
374
|
# fewer than this value. If unspecified, at most 50 phrase sets will be
|
@@ -480,8 +481,8 @@ module Google
|
|
480
481
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
481
482
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
482
483
|
# endpoint, use the `global` location. To specify a region, use a
|
483
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
484
|
-
# `eu` location value.
|
484
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
485
|
+
# with matching `us` or `eu` location value.
|
485
486
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
486
487
|
# The list of fields to be updated.
|
487
488
|
#
|
@@ -655,15 +656,16 @@ module Google
|
|
655
656
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
656
657
|
#
|
657
658
|
# @param parent [::String]
|
658
|
-
# Required. The parent resource where this custom class will be created.
|
659
|
+
# Required. The parent resource where this custom class will be created.
|
660
|
+
# Format:
|
659
661
|
#
|
660
662
|
# `projects/{project}/locations/{location}/customClasses`
|
661
663
|
#
|
662
664
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
663
665
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
664
666
|
# endpoint, use the `global` location. To specify a region, use a
|
665
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
666
|
-
# `eu` location value.
|
667
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
668
|
+
# with matching `us` or `eu` location value.
|
667
669
|
# @param custom_class_id [::String]
|
668
670
|
# Required. The ID to use for the custom class, which will become the final
|
669
671
|
# component of the custom class' resource name.
|
@@ -850,8 +852,8 @@ module Google
|
|
850
852
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
851
853
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
852
854
|
# endpoint, use the `global` location. To specify a region, use a
|
853
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
854
|
-
# `eu` location value.
|
855
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
856
|
+
# with matching `us` or `eu` location value.
|
855
857
|
# @param page_size [::Integer]
|
856
858
|
# The maximum number of custom classes to return. The service may return
|
857
859
|
# fewer than this value. If unspecified, at most 50 custom classes will be
|
@@ -964,8 +966,8 @@ module Google
|
|
964
966
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
965
967
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
966
968
|
# endpoint, use the `global` location. To specify a region, use a
|
967
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
968
|
-
# `eu` location value.
|
969
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
970
|
+
# with matching `us` or `eu` location value.
|
969
971
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
970
972
|
# The list of fields to be updated.
|
971
973
|
#
|
@@ -1059,8 +1061,8 @@ module Google
|
|
1059
1061
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
1060
1062
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
1061
1063
|
# endpoint, use the `global` location. To specify a region, use a
|
1062
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
1063
|
-
# `eu` location value.
|
1064
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
1065
|
+
# with matching `us` or `eu` location value.
|
1064
1066
|
#
|
1065
1067
|
# @yield [response, operation] Access the result along with the RPC operation
|
1066
1068
|
# @yieldparam response [::Google::Protobuf::Empty]
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
@@ -8,7 +10,6 @@ require 'google/api/resource_pb'
|
|
8
10
|
require 'google/cloud/speech/v1p1beta1/resource_pb'
|
9
11
|
require 'google/protobuf/empty_pb'
|
10
12
|
require 'google/protobuf/field_mask_pb'
|
11
|
-
require 'google/protobuf'
|
12
13
|
|
13
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
15
|
add_file("google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto", :syntax => :proto3) do
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/speech/v1p1beta1/cloud_speech.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
@@ -11,7 +13,6 @@ require 'google/protobuf/duration_pb'
|
|
11
13
|
require 'google/protobuf/timestamp_pb'
|
12
14
|
require 'google/protobuf/wrappers_pb'
|
13
15
|
require 'google/rpc/status_pb'
|
14
|
-
require 'google/protobuf'
|
15
16
|
|
16
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
18
|
add_file("google/cloud/speech/v1p1beta1/cloud_speech.proto", :syntax => :proto3) do
|
@@ -1,10 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/speech/v1p1beta1/resource.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/resource_pb'
|
5
7
|
require 'google/protobuf/timestamp_pb'
|
6
8
|
require 'google/api/annotations_pb'
|
7
|
-
require 'google/protobuf'
|
8
9
|
|
9
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
11
|
add_file("google/cloud/speech/v1p1beta1/resource.proto", :syntax => :proto3) 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
|
@@ -133,7 +133,8 @@ module Google
|
|
133
133
|
# @return [::Google::Cloud::Speech::V1p1beta1::RecognitionConfig::AudioEncoding]
|
134
134
|
# Encoding of audio data sent in all `RecognitionAudio` messages.
|
135
135
|
# This field is optional for `FLAC` and `WAV` audio files and required
|
136
|
-
# for all other audio formats. For details, see
|
136
|
+
# for all other audio formats. For details, see
|
137
|
+
# {::Google::Cloud::Speech::V1p1beta1::RecognitionConfig::AudioEncoding AudioEncoding}.
|
137
138
|
# @!attribute [rw] sample_rate_hertz
|
138
139
|
# @return [::Integer]
|
139
140
|
# Sample rate in Hertz of the audio data sent in all
|
@@ -142,7 +143,8 @@ module Google
|
|
142
143
|
# source to 16000 Hz. If that's not possible, use the native sample rate of
|
143
144
|
# the audio source (instead of re-sampling).
|
144
145
|
# This field is optional for FLAC and WAV audio files, but is
|
145
|
-
# required for all other audio formats. For details, see
|
146
|
+
# required for all other audio formats. For details, see
|
147
|
+
# {::Google::Cloud::Speech::V1p1beta1::RecognitionConfig::AudioEncoding AudioEncoding}.
|
146
148
|
# @!attribute [rw] audio_channel_count
|
147
149
|
# @return [::Integer]
|
148
150
|
# The number of channels in the input audio data.
|
@@ -287,6 +289,15 @@ module Google
|
|
287
289
|
# <td><b>Description</b></td>
|
288
290
|
# </tr>
|
289
291
|
# <tr>
|
292
|
+
# <td><code>latest_long</code></td>
|
293
|
+
# <td>Best for long form content like media or conversation.</td>
|
294
|
+
# </tr>
|
295
|
+
# <tr>
|
296
|
+
# <td><code>latest_short</code></td>
|
297
|
+
# <td>Best for short form content like commands or single shot directed
|
298
|
+
# speech.</td>
|
299
|
+
# </tr>
|
300
|
+
# <tr>
|
290
301
|
# <td><code>command_and_search</code></td>
|
291
302
|
# <td>Best for short queries such as voice commands or voice search.</td>
|
292
303
|
# </tr>
|
@@ -345,7 +356,8 @@ module Google
|
|
345
356
|
# an `AudioEncoding` when you send send `FLAC` or `WAV` audio, the
|
346
357
|
# encoding configuration must match the encoding described in the audio
|
347
358
|
# header; otherwise the request returns an
|
348
|
-
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error
|
359
|
+
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error
|
360
|
+
# code.
|
349
361
|
module AudioEncoding
|
350
362
|
# Not specified.
|
351
363
|
ENCODING_UNSPECIFIED = 0
|
@@ -594,8 +606,8 @@ module Google
|
|
594
606
|
|
595
607
|
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
596
608
|
# Either `content` or `uri` must be supplied. Supplying both or neither
|
597
|
-
# returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
|
598
|
-
# [content limits](https://cloud.google.com/speech-to-text/quotas#content).
|
609
|
+
# returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
|
610
|
+
# See [content limits](https://cloud.google.com/speech-to-text/quotas#content).
|
599
611
|
# @!attribute [rw] content
|
600
612
|
# @return [::String]
|
601
613
|
# The audio data bytes encoded as specified in
|
@@ -608,8 +620,9 @@ module Google
|
|
608
620
|
# Currently, only Google Cloud Storage URIs are
|
609
621
|
# supported, which must be specified in the following format:
|
610
622
|
# `gs://bucket_name/object_name` (other URI formats return
|
611
|
-
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
|
612
|
-
# [Request
|
623
|
+
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
|
624
|
+
# For more information, see [Request
|
625
|
+
# URIs](https://cloud.google.com/storage/docs/reference-uris).
|
613
626
|
class RecognitionAudio
|
614
627
|
include ::Google::Protobuf::MessageExts
|
615
628
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -668,11 +681,12 @@ module Google
|
|
668
681
|
# Time of the most recent processing update.
|
669
682
|
# @!attribute [r] uri
|
670
683
|
# @return [::String]
|
671
|
-
# Output only. The URI of the audio file being transcribed. Empty if the
|
672
|
-
# as byte content.
|
684
|
+
# Output only. The URI of the audio file being transcribed. Empty if the
|
685
|
+
# audio was sent as byte content.
|
673
686
|
# @!attribute [r] output_config
|
674
687
|
# @return [::Google::Cloud::Speech::V1p1beta1::TranscriptOutputConfig]
|
675
|
-
# Output only. A copy of the TranscriptOutputConfig if it was set in the
|
688
|
+
# Output only. A copy of the TranscriptOutputConfig if it was set in the
|
689
|
+
# request.
|
676
690
|
class LongRunningRecognizeMetadata
|
677
691
|
include ::Google::Protobuf::MessageExts
|
678
692
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -797,9 +811,9 @@ module Google
|
|
797
811
|
# For audio_channel_count = N, its output values can range from '1' to 'N'.
|
798
812
|
# @!attribute [r] language_code
|
799
813
|
# @return [::String]
|
800
|
-
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
|
801
|
-
# of the language in this result. This language code was
|
802
|
-
# the most likelihood of being spoken in the audio.
|
814
|
+
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
|
815
|
+
# language tag of the language in this result. This language code was
|
816
|
+
# detected to have the most likelihood of being spoken in the audio.
|
803
817
|
class StreamingRecognitionResult
|
804
818
|
include ::Google::Protobuf::MessageExts
|
805
819
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -823,9 +837,9 @@ module Google
|
|
823
837
|
# beginning of the audio.
|
824
838
|
# @!attribute [r] language_code
|
825
839
|
# @return [::String]
|
826
|
-
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
|
827
|
-
# of the language in this result. This language code was
|
828
|
-
# the most likelihood of being spoken in the audio.
|
840
|
+
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
|
841
|
+
# language tag of the language in this result. This language code was
|
842
|
+
# detected to have the most likelihood of being spoken in the audio.
|
829
843
|
class SpeechRecognitionResult
|
830
844
|
include ::Google::Protobuf::MessageExts
|
831
845
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -24,15 +24,16 @@ module Google
|
|
24
24
|
# Message sent by the client for the `CreatePhraseSet` method.
|
25
25
|
# @!attribute [rw] parent
|
26
26
|
# @return [::String]
|
27
|
-
# Required. The parent resource where this phrase set will be created.
|
27
|
+
# Required. The parent resource where this phrase set will be created.
|
28
|
+
# Format:
|
28
29
|
#
|
29
30
|
# `projects/{project}/locations/{location}/phraseSets`
|
30
31
|
#
|
31
32
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
32
33
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
33
34
|
# endpoint, use the `global` location. To specify a region, use a
|
34
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
35
|
-
# `eu` location value.
|
35
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
36
|
+
# with matching `us` or `eu` location value.
|
36
37
|
# @!attribute [rw] phrase_set_id
|
37
38
|
# @return [::String]
|
38
39
|
# Required. The ID to use for the phrase set, which will become the final
|
@@ -61,8 +62,8 @@ module Google
|
|
61
62
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
62
63
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
63
64
|
# endpoint, use the `global` location. To specify a region, use a
|
64
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
65
|
-
# `eu` location value.
|
65
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
66
|
+
# with matching `us` or `eu` location value.
|
66
67
|
# @!attribute [rw] update_mask
|
67
68
|
# @return [::Google::Protobuf::FieldMask]
|
68
69
|
# The list of fields to be updated.
|
@@ -81,8 +82,8 @@ module Google
|
|
81
82
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
82
83
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
83
84
|
# endpoint, use the `global` location. To specify a region, use a
|
84
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
85
|
-
# `eu` location value.
|
85
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
86
|
+
# with matching `us` or `eu` location value.
|
86
87
|
class GetPhraseSetRequest
|
87
88
|
include ::Google::Protobuf::MessageExts
|
88
89
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -98,8 +99,8 @@ module Google
|
|
98
99
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
99
100
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
100
101
|
# endpoint, use the `global` location. To specify a region, use a
|
101
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
102
|
-
# `eu` location value.
|
102
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
103
|
+
# with matching `us` or `eu` location value.
|
103
104
|
# @!attribute [rw] page_size
|
104
105
|
# @return [::Integer]
|
105
106
|
# The maximum number of phrase sets to return. The service may return
|
@@ -145,15 +146,16 @@ module Google
|
|
145
146
|
# Message sent by the client for the `CreateCustomClass` method.
|
146
147
|
# @!attribute [rw] parent
|
147
148
|
# @return [::String]
|
148
|
-
# Required. The parent resource where this custom class will be created.
|
149
|
+
# Required. The parent resource where this custom class will be created.
|
150
|
+
# Format:
|
149
151
|
#
|
150
152
|
# `projects/{project}/locations/{location}/customClasses`
|
151
153
|
#
|
152
154
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
153
155
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
154
156
|
# endpoint, use the `global` location. To specify a region, use a
|
155
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
156
|
-
# `eu` location value.
|
157
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
158
|
+
# with matching `us` or `eu` location value.
|
157
159
|
# @!attribute [rw] custom_class_id
|
158
160
|
# @return [::String]
|
159
161
|
# Required. The ID to use for the custom class, which will become the final
|
@@ -182,8 +184,8 @@ module Google
|
|
182
184
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
183
185
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
184
186
|
# endpoint, use the `global` location. To specify a region, use a
|
185
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
186
|
-
# `eu` location value.
|
187
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
188
|
+
# with matching `us` or `eu` location value.
|
187
189
|
# @!attribute [rw] update_mask
|
188
190
|
# @return [::Google::Protobuf::FieldMask]
|
189
191
|
# The list of fields to be updated.
|
@@ -213,8 +215,8 @@ module Google
|
|
213
215
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
214
216
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
215
217
|
# endpoint, use the `global` location. To specify a region, use a
|
216
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
217
|
-
# `eu` location value.
|
218
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
219
|
+
# with matching `us` or `eu` location value.
|
218
220
|
# @!attribute [rw] page_size
|
219
221
|
# @return [::Integer]
|
220
222
|
# The maximum number of custom classes to return. The service may return
|
@@ -256,8 +258,8 @@ module Google
|
|
256
258
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
257
259
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
258
260
|
# endpoint, use the `global` location. To specify a region, use a
|
259
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
260
|
-
# `eu` location value.
|
261
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
262
|
+
# with matching `us` or `eu` location value.
|
261
263
|
class DeleteCustomClassRequest
|
262
264
|
include ::Google::Protobuf::MessageExts
|
263
265
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# Example 3: Pack and unpack a message in Python.
|
48
48
|
#
|
49
49
|
# foo = Foo(...)
|
50
50
|
# any = Any()
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# any.Unpack(foo)
|
55
55
|
# ...
|
56
56
|
#
|
57
|
-
#
|
57
|
+
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
60
|
# any, err := anypb.New(foo)
|
@@ -75,7 +75,7 @@ module Google
|
|
75
75
|
#
|
76
76
|
#
|
77
77
|
# JSON
|
78
|
-
#
|
78
|
+
#
|
79
79
|
# The JSON representation of an `Any` value uses the regular
|
80
80
|
# representation of the deserialized, embedded message, with an
|
81
81
|
# additional field `@type` which contains the type URL. Example:
|
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.12.
|
4
|
+
version: 0.12.3
|
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-05-03 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
|