google-cloud-speech-v1p1beta1 0.12.2 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -5
- data/lib/google/cloud/speech/v1p1beta1/adaptation/client.rb +6 -8
- data/lib/google/cloud/speech/v1p1beta1/cloud_speech_adaptation_pb.rb +2 -1
- data/lib/google/cloud/speech/v1p1beta1/cloud_speech_pb.rb +2 -2
- data/lib/google/cloud/speech/v1p1beta1/resource_pb.rb +2 -3
- data/lib/google/cloud/speech/v1p1beta1/speech/operations.rb +3 -0
- data/lib/google/cloud/speech/v1p1beta1/version.rb +1 -1
- data/proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb +22 -0
- data/proto_docs/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.rb +6 -8
- data/proto_docs/google/protobuf/any.rb +3 -3
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e453796b28e4d21dfbd9a4e69e3c0de246a9e43b9ca3f920b8ac60d4d219671e
|
4
|
+
data.tar.gz: fd73d772c32037bd02e6130309a4b623e4b27167c122ff3d5f0195c5fb688ee9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d2b6b2540693776b792fe0c0ca79a44b0abb9afa27db8b7360908fbe130f255b01a638ba2a6ff469abf7678482575586e83ab6f710be80b2e8bfdb8afaf2cba
|
7
|
+
data.tar.gz: 064bbaaa86734de373e5618169e8cd28ae32653eb4d8e7a674787d016f8b2045b5cdfeca8e28d2afaa0259b4b35f53ce5b4febd8921e8286d2a10cb0289d995c
|
data/README.md
CHANGED
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -165,8 +165,7 @@ 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.
|
169
|
-
# Format:
|
168
|
+
# Required. The parent resource where this phrase set will be created. Format:
|
170
169
|
#
|
171
170
|
# `projects/{project}/locations/{location}/phraseSets`
|
172
171
|
#
|
@@ -179,8 +178,8 @@ module Google
|
|
179
178
|
# Required. The ID to use for the phrase set, which will become the final
|
180
179
|
# component of the phrase set's resource name.
|
181
180
|
#
|
182
|
-
# This value should
|
183
|
-
#
|
181
|
+
# This value should restrict to letters, numbers, and hyphens, with the first
|
182
|
+
# character a letter, the last a letter or a number, and be 4-63 characters.
|
184
183
|
# @param phrase_set [::Google::Cloud::Speech::V1p1beta1::PhraseSet, ::Hash]
|
185
184
|
# Required. The phrase set to create.
|
186
185
|
#
|
@@ -656,8 +655,7 @@ module Google
|
|
656
655
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
657
656
|
#
|
658
657
|
# @param parent [::String]
|
659
|
-
# Required. The parent resource where this custom class will be created.
|
660
|
-
# Format:
|
658
|
+
# Required. The parent resource where this custom class will be created. Format:
|
661
659
|
#
|
662
660
|
# `projects/{project}/locations/{location}/customClasses`
|
663
661
|
#
|
@@ -670,8 +668,8 @@ module Google
|
|
670
668
|
# Required. The ID to use for the custom class, which will become the final
|
671
669
|
# component of the custom class' resource name.
|
672
670
|
#
|
673
|
-
# This value should
|
674
|
-
#
|
671
|
+
# This value should restrict to letters, numbers, and hyphens, with the first
|
672
|
+
# character a letter, the last a letter or a number, and be 4-63 characters.
|
675
673
|
# @param custom_class [::Google::Cloud::Speech::V1p1beta1::CustomClass, ::Hash]
|
676
674
|
# Required. The custom class to create.
|
677
675
|
#
|
@@ -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,17 +1,17 @@
|
|
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'
|
7
9
|
require 'google/cloud/speech/v1p1beta1/resource_pb'
|
8
10
|
require 'google/longrunning/operations_pb'
|
9
|
-
require 'google/protobuf/any_pb'
|
10
11
|
require 'google/protobuf/duration_pb'
|
11
12
|
require 'google/protobuf/timestamp_pb'
|
12
13
|
require 'google/protobuf/wrappers_pb'
|
13
14
|
require 'google/rpc/status_pb'
|
14
|
-
require 'google/protobuf'
|
15
15
|
|
16
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
17
|
add_file("google/cloud/speech/v1p1beta1/cloud_speech.proto", :syntax => :proto3) do
|
@@ -1,11 +1,10 @@
|
|
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/api/resource_pb'
|
5
|
-
require 'google/protobuf/timestamp_pb'
|
6
|
-
require 'google/api/annotations_pb'
|
7
4
|
require 'google/protobuf'
|
8
5
|
|
6
|
+
require 'google/api/resource_pb'
|
7
|
+
|
9
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
9
|
add_file("google/cloud/speech/v1p1beta1/resource.proto", :syntax => :proto3) do
|
11
10
|
add_message "google.cloud.speech.v1p1beta1.CustomClass" do
|
@@ -287,6 +287,15 @@ module Google
|
|
287
287
|
# <td><b>Description</b></td>
|
288
288
|
# </tr>
|
289
289
|
# <tr>
|
290
|
+
# <td><code>latest_long</code></td>
|
291
|
+
# <td>Best for long form content like media or conversation.</td>
|
292
|
+
# </tr>
|
293
|
+
# <tr>
|
294
|
+
# <td><code>latest_short</code></td>
|
295
|
+
# <td>Best for short form content like commands or single shot directed
|
296
|
+
# speech.</td>
|
297
|
+
# </tr>
|
298
|
+
# <tr>
|
290
299
|
# <td><code>command_and_search</code></td>
|
291
300
|
# <td>Best for short queries such as voice commands or voice search.</td>
|
292
301
|
# </tr>
|
@@ -308,6 +317,16 @@ module Google
|
|
308
317
|
# For example, long-form audio. Ideally the audio is high-fidelity,
|
309
318
|
# recorded at a 16khz or greater sampling rate.</td>
|
310
319
|
# </tr>
|
320
|
+
# <tr>
|
321
|
+
# <td><code>medical_conversation</code></td>
|
322
|
+
# <td>Best for audio that originated from a conversation between a
|
323
|
+
# medical provider and patient.</td>
|
324
|
+
# </tr>
|
325
|
+
# <tr>
|
326
|
+
# <td><code>medical_dictation</code></td>
|
327
|
+
# <td>Best for audio that originated from dictation notes by a medical
|
328
|
+
# provider.</td>
|
329
|
+
# </tr>
|
311
330
|
# </table>
|
312
331
|
# @!attribute [rw] use_enhanced
|
313
332
|
# @return [::Boolean]
|
@@ -835,6 +854,9 @@ module Google
|
|
835
854
|
# @!attribute [rw] transcript
|
836
855
|
# @return [::String]
|
837
856
|
# Transcript text representing the words that the user spoke.
|
857
|
+
# In languages that use spaces to separate words, the transcript might have a
|
858
|
+
# leading space if it isn't the first result. You can concatenate each result
|
859
|
+
# to obtain the full transcript without using a separator.
|
838
860
|
# @!attribute [rw] confidence
|
839
861
|
# @return [::Float]
|
840
862
|
# The confidence estimate between 0.0 and 1.0. A higher number
|
@@ -24,8 +24,7 @@ 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.
|
28
|
-
# Format:
|
27
|
+
# Required. The parent resource where this phrase set will be created. Format:
|
29
28
|
#
|
30
29
|
# `projects/{project}/locations/{location}/phraseSets`
|
31
30
|
#
|
@@ -39,8 +38,8 @@ module Google
|
|
39
38
|
# Required. The ID to use for the phrase set, which will become the final
|
40
39
|
# component of the phrase set's resource name.
|
41
40
|
#
|
42
|
-
# This value should
|
43
|
-
#
|
41
|
+
# This value should restrict to letters, numbers, and hyphens, with the first
|
42
|
+
# character a letter, the last a letter or a number, and be 4-63 characters.
|
44
43
|
# @!attribute [rw] phrase_set
|
45
44
|
# @return [::Google::Cloud::Speech::V1p1beta1::PhraseSet]
|
46
45
|
# Required. The phrase set to create.
|
@@ -146,8 +145,7 @@ module Google
|
|
146
145
|
# Message sent by the client for the `CreateCustomClass` method.
|
147
146
|
# @!attribute [rw] parent
|
148
147
|
# @return [::String]
|
149
|
-
# Required. The parent resource where this custom class will be created.
|
150
|
-
# Format:
|
148
|
+
# Required. The parent resource where this custom class will be created. Format:
|
151
149
|
#
|
152
150
|
# `projects/{project}/locations/{location}/customClasses`
|
153
151
|
#
|
@@ -161,8 +159,8 @@ module Google
|
|
161
159
|
# Required. The ID to use for the custom class, which will become the final
|
162
160
|
# component of the custom class' resource name.
|
163
161
|
#
|
164
|
-
# This value should
|
165
|
-
#
|
162
|
+
# This value should restrict to letters, numbers, and hyphens, with the first
|
163
|
+
# character a letter, the last a letter or a number, and be 4-63 characters.
|
166
164
|
# @!attribute [rw] custom_class
|
167
165
|
# @return [::Google::Cloud::Speech::V1p1beta1::CustomClass]
|
168
166
|
# Required. The custom class to create.
|
@@ -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.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.10'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.10'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.26.1
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.26.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
67
|
+
version: '5.16'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
74
|
+
version: '5.16'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest-focus
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '13.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '13.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: redcarpet
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -216,14 +216,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
216
216
|
requirements:
|
217
217
|
- - ">="
|
218
218
|
- !ruby/object:Gem::Version
|
219
|
-
version: '2.
|
219
|
+
version: '2.6'
|
220
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
221
221
|
requirements:
|
222
222
|
- - ">="
|
223
223
|
- !ruby/object:Gem::Version
|
224
224
|
version: '0'
|
225
225
|
requirements: []
|
226
|
-
rubygems_version: 3.3.
|
226
|
+
rubygems_version: 3.3.14
|
227
227
|
signing_key:
|
228
228
|
specification_version: 4
|
229
229
|
summary: API Client library for the Cloud Speech-to-Text V1p1beta1 API
|