google-cloud-speech-v1p1beta1 0.5.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +188 -190
- data/README.md +2 -2
- data/lib/google/cloud/speech/v1p1beta1/adaptation/client.rb +14 -14
- data/lib/google/cloud/speech/v1p1beta1/cloud_speech_adaptation_services_pb.rb +1 -1
- data/lib/google/cloud/speech/v1p1beta1/cloud_speech_pb.rb +14 -1
- data/lib/google/cloud/speech/v1p1beta1/cloud_speech_services_pb.rb +1 -1
- data/lib/google/cloud/speech/v1p1beta1/speech/client.rb +16 -14
- data/lib/google/cloud/speech/v1p1beta1/speech/operations.rb +7 -7
- data/lib/google/cloud/speech/v1p1beta1/version.rb +1 -1
- data/proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb +66 -25
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- metadata +17 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd7b2c19f47d8c08929bbc70b94744feff72ddeb8f7a49db495d80fde382885f
|
4
|
+
data.tar.gz: d980fa53232c3ed28fff3e29906a388de7048a9ed2ee6c7a6fb494274d6e68fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c4d69314fb84ec2ede28d36f2698acfe29e55fee76ff38eb11dfb1bf7d00b47664931f1fa31e24ce18fc0b86b250e2cfe90ba673805cad49bef0f2df1d5e5e0
|
7
|
+
data.tar.gz: a833edb2966e9b08f83f715384297c0ec78e72ac705003061aeb90ea6fc1d4a1adee8d8236edf0a10879aa5c5793f7768e4f3534df5ef0d606fed83d20494d4d
|
data/LICENSE.md
CHANGED
@@ -1,192 +1,190 @@
|
|
1
|
-
Apache License
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
same "printed page" as the copyright notice for easier
|
189
|
-
identification within third-party archives.
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
190
188
|
|
191
189
|
Copyright [yyyy] [name of copyright owner]
|
192
190
|
|
@@ -194,7 +192,7 @@ identification within third-party archives.
|
|
194
192
|
you may not use this file except in compliance with the License.
|
195
193
|
You may obtain a copy of the License at
|
196
194
|
|
197
|
-
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
198
196
|
|
199
197
|
Unless required by applicable law or agreed to in writing, software
|
200
198
|
distributed under the License is distributed on an "AS IS" BASIS,
|
data/README.md
CHANGED
@@ -71,11 +71,11 @@ end
|
|
71
71
|
|
72
72
|
## Supported Ruby Versions
|
73
73
|
|
74
|
-
This library is supported on Ruby 2.
|
74
|
+
This library is supported on Ruby 2.5+.
|
75
75
|
|
76
76
|
Google provides official support for Ruby versions that are actively supported
|
77
77
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life. Currently, this means Ruby 2.
|
78
|
+
in security maintenance, and not end of life. Currently, this means Ruby 2.5
|
79
79
|
and later. Older versions of Ruby _may_ still work, but are unsupported and not
|
80
80
|
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
81
81
|
about the Ruby support schedule.
|
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
parent_config = while namespace.any?
|
61
61
|
parent_name = namespace.join "::"
|
62
62
|
parent_const = const_get parent_name
|
63
|
-
break parent_const.configure if parent_const
|
63
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
64
64
|
namespace.pop
|
65
65
|
end
|
66
66
|
default_config = Client::Configuration.new parent_config
|
@@ -131,7 +131,7 @@ module Google
|
|
131
131
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
132
132
|
@config.endpoint == Client.configure.endpoint &&
|
133
133
|
!@config.endpoint.split(".").first.include?("-")
|
134
|
-
credentials ||= Credentials.default scope:
|
134
|
+
credentials ||= Credentials.default scope: @config.scope,
|
135
135
|
enable_self_signed_jwt: enable_self_signed_jwt
|
136
136
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
137
137
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -972,7 +972,7 @@ module Google
|
|
972
972
|
config_attr :scope, nil, ::String, ::Array, nil
|
973
973
|
config_attr :lib_name, nil, ::String, nil
|
974
974
|
config_attr :lib_version, nil, ::String, nil
|
975
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
975
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
976
976
|
config_attr :interceptors, nil, ::Array, nil
|
977
977
|
config_attr :timeout, nil, ::Numeric, nil
|
978
978
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -993,7 +993,7 @@ module Google
|
|
993
993
|
def rpcs
|
994
994
|
@rpcs ||= begin
|
995
995
|
parent_rpcs = nil
|
996
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
996
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
997
997
|
Rpcs.new parent_rpcs
|
998
998
|
end
|
999
999
|
end
|
@@ -1069,25 +1069,25 @@ module Google
|
|
1069
1069
|
|
1070
1070
|
# @private
|
1071
1071
|
def initialize parent_rpcs = nil
|
1072
|
-
create_phrase_set_config = parent_rpcs
|
1072
|
+
create_phrase_set_config = parent_rpcs.create_phrase_set if parent_rpcs.respond_to? :create_phrase_set
|
1073
1073
|
@create_phrase_set = ::Gapic::Config::Method.new create_phrase_set_config
|
1074
|
-
get_phrase_set_config = parent_rpcs
|
1074
|
+
get_phrase_set_config = parent_rpcs.get_phrase_set if parent_rpcs.respond_to? :get_phrase_set
|
1075
1075
|
@get_phrase_set = ::Gapic::Config::Method.new get_phrase_set_config
|
1076
|
-
list_phrase_set_config = parent_rpcs
|
1076
|
+
list_phrase_set_config = parent_rpcs.list_phrase_set if parent_rpcs.respond_to? :list_phrase_set
|
1077
1077
|
@list_phrase_set = ::Gapic::Config::Method.new list_phrase_set_config
|
1078
|
-
update_phrase_set_config = parent_rpcs
|
1078
|
+
update_phrase_set_config = parent_rpcs.update_phrase_set if parent_rpcs.respond_to? :update_phrase_set
|
1079
1079
|
@update_phrase_set = ::Gapic::Config::Method.new update_phrase_set_config
|
1080
|
-
delete_phrase_set_config = parent_rpcs
|
1080
|
+
delete_phrase_set_config = parent_rpcs.delete_phrase_set if parent_rpcs.respond_to? :delete_phrase_set
|
1081
1081
|
@delete_phrase_set = ::Gapic::Config::Method.new delete_phrase_set_config
|
1082
|
-
create_custom_class_config = parent_rpcs
|
1082
|
+
create_custom_class_config = parent_rpcs.create_custom_class if parent_rpcs.respond_to? :create_custom_class
|
1083
1083
|
@create_custom_class = ::Gapic::Config::Method.new create_custom_class_config
|
1084
|
-
get_custom_class_config = parent_rpcs
|
1084
|
+
get_custom_class_config = parent_rpcs.get_custom_class if parent_rpcs.respond_to? :get_custom_class
|
1085
1085
|
@get_custom_class = ::Gapic::Config::Method.new get_custom_class_config
|
1086
|
-
list_custom_classes_config = parent_rpcs
|
1086
|
+
list_custom_classes_config = parent_rpcs.list_custom_classes if parent_rpcs.respond_to? :list_custom_classes
|
1087
1087
|
@list_custom_classes = ::Gapic::Config::Method.new list_custom_classes_config
|
1088
|
-
update_custom_class_config = parent_rpcs
|
1088
|
+
update_custom_class_config = parent_rpcs.update_custom_class if parent_rpcs.respond_to? :update_custom_class
|
1089
1089
|
@update_custom_class = ::Gapic::Config::Method.new update_custom_class_config
|
1090
|
-
delete_custom_class_config = parent_rpcs
|
1090
|
+
delete_custom_class_config = parent_rpcs.delete_custom_class if parent_rpcs.respond_to? :delete_custom_class
|
1091
1091
|
@delete_custom_class = ::Gapic::Config::Method.new delete_custom_class_config
|
1092
1092
|
|
1093
1093
|
yield self if block_given?
|
@@ -6,12 +6,12 @@ require 'google/protobuf'
|
|
6
6
|
require 'google/api/annotations_pb'
|
7
7
|
require 'google/api/client_pb'
|
8
8
|
require 'google/api/field_behavior_pb'
|
9
|
-
require 'google/api/resource_pb'
|
10
9
|
require 'google/cloud/speech/v1p1beta1/resource_pb'
|
11
10
|
require 'google/longrunning/operations_pb'
|
12
11
|
require 'google/protobuf/any_pb'
|
13
12
|
require 'google/protobuf/duration_pb'
|
14
13
|
require 'google/protobuf/timestamp_pb'
|
14
|
+
require 'google/protobuf/wrappers_pb'
|
15
15
|
require 'google/rpc/status_pb'
|
16
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
17
|
add_file("google/cloud/speech/v1p1beta1/cloud_speech.proto", :syntax => :proto3) do
|
@@ -22,6 +22,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
22
22
|
add_message "google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest" do
|
23
23
|
optional :config, :message, 1, "google.cloud.speech.v1p1beta1.RecognitionConfig"
|
24
24
|
optional :audio, :message, 2, "google.cloud.speech.v1p1beta1.RecognitionAudio"
|
25
|
+
optional :output_config, :message, 4, "google.cloud.speech.v1p1beta1.TranscriptOutputConfig"
|
26
|
+
end
|
27
|
+
add_message "google.cloud.speech.v1p1beta1.TranscriptOutputConfig" do
|
28
|
+
oneof :output_type do
|
29
|
+
optional :gcs_uri, :string, 1
|
30
|
+
end
|
25
31
|
end
|
26
32
|
add_message "google.cloud.speech.v1p1beta1.StreamingRecognizeRequest" do
|
27
33
|
oneof :streaming_request do
|
@@ -48,6 +54,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
48
54
|
optional :enable_word_time_offsets, :bool, 8
|
49
55
|
optional :enable_word_confidence, :bool, 15
|
50
56
|
optional :enable_automatic_punctuation, :bool, 11
|
57
|
+
optional :enable_spoken_punctuation, :message, 22, "google.protobuf.BoolValue"
|
58
|
+
optional :enable_spoken_emojis, :message, 23, "google.protobuf.BoolValue"
|
51
59
|
optional :enable_speaker_diarization, :bool, 16
|
52
60
|
optional :diarization_speaker_count, :int32, 17
|
53
61
|
optional :diarization_config, :message, 19, "google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig"
|
@@ -65,6 +73,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
65
73
|
value :OGG_OPUS, 6
|
66
74
|
value :SPEEX_WITH_HEADER_BYTE, 7
|
67
75
|
value :MP3, 8
|
76
|
+
value :WEBM_OPUS, 9
|
68
77
|
end
|
69
78
|
add_message "google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig" do
|
70
79
|
optional :enable_speaker_diarization, :bool, 1
|
@@ -129,12 +138,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
129
138
|
end
|
130
139
|
add_message "google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse" do
|
131
140
|
repeated :results, :message, 2, "google.cloud.speech.v1p1beta1.SpeechRecognitionResult"
|
141
|
+
optional :output_config, :message, 6, "google.cloud.speech.v1p1beta1.TranscriptOutputConfig"
|
142
|
+
optional :output_error, :message, 7, "google.rpc.Status"
|
132
143
|
end
|
133
144
|
add_message "google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata" do
|
134
145
|
optional :progress_percent, :int32, 1
|
135
146
|
optional :start_time, :message, 2, "google.protobuf.Timestamp"
|
136
147
|
optional :last_update_time, :message, 3, "google.protobuf.Timestamp"
|
137
148
|
optional :uri, :string, 4
|
149
|
+
optional :output_config, :message, 5, "google.cloud.speech.v1p1beta1.TranscriptOutputConfig"
|
138
150
|
end
|
139
151
|
add_message "google.cloud.speech.v1p1beta1.StreamingRecognizeResponse" do
|
140
152
|
optional :error, :message, 1, "google.rpc.Status"
|
@@ -179,6 +191,7 @@ module Google
|
|
179
191
|
module V1p1beta1
|
180
192
|
RecognizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.RecognizeRequest").msgclass
|
181
193
|
LongRunningRecognizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest").msgclass
|
194
|
+
TranscriptOutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.TranscriptOutputConfig").msgclass
|
182
195
|
StreamingRecognizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.StreamingRecognizeRequest").msgclass
|
183
196
|
StreamingRecognitionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.StreamingRecognitionConfig").msgclass
|
184
197
|
RecognitionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.RecognitionConfig").msgclass
|
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
parent_config = while namespace.any?
|
61
61
|
parent_name = namespace.join "::"
|
62
62
|
parent_const = const_get parent_name
|
63
|
-
break parent_const.configure if parent_const
|
63
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
64
64
|
namespace.pop
|
65
65
|
end
|
66
66
|
default_config = Client::Configuration.new parent_config
|
@@ -68,9 +68,9 @@ module Google
|
|
68
68
|
default_config.rpcs.recognize.timeout = 5000.0
|
69
69
|
default_config.rpcs.recognize.retry_policy = {
|
70
70
|
initial_delay: 0.1,
|
71
|
-
|
72
|
-
|
73
|
-
|
71
|
+
max_delay: 60.0,
|
72
|
+
multiplier: 1.3,
|
73
|
+
retry_codes: [4, 14]
|
74
74
|
}
|
75
75
|
|
76
76
|
default_config.rpcs.long_running_recognize.timeout = 5000.0
|
@@ -78,9 +78,9 @@ module Google
|
|
78
78
|
default_config.rpcs.streaming_recognize.timeout = 5000.0
|
79
79
|
default_config.rpcs.streaming_recognize.retry_policy = {
|
80
80
|
initial_delay: 0.1,
|
81
|
-
|
82
|
-
|
83
|
-
|
81
|
+
max_delay: 60.0,
|
82
|
+
multiplier: 1.3,
|
83
|
+
retry_codes: [4, 14]
|
84
84
|
}
|
85
85
|
|
86
86
|
default_config
|
@@ -149,7 +149,7 @@ module Google
|
|
149
149
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
150
150
|
@config.endpoint == Client.configure.endpoint &&
|
151
151
|
!@config.endpoint.split(".").first.include?("-")
|
152
|
-
credentials ||= Credentials.default scope:
|
152
|
+
credentials ||= Credentials.default scope: @config.scope,
|
153
153
|
enable_self_signed_jwt: enable_self_signed_jwt
|
154
154
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
155
155
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -262,7 +262,7 @@ module Google
|
|
262
262
|
# @param options [::Gapic::CallOptions, ::Hash]
|
263
263
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
264
264
|
#
|
265
|
-
# @overload long_running_recognize(config: nil, audio: nil)
|
265
|
+
# @overload long_running_recognize(config: nil, audio: nil, output_config: nil)
|
266
266
|
# Pass arguments to `long_running_recognize` via keyword arguments. Note that at
|
267
267
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
268
268
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -272,6 +272,8 @@ module Google
|
|
272
272
|
# process the request.
|
273
273
|
# @param audio [::Google::Cloud::Speech::V1p1beta1::RecognitionAudio, ::Hash]
|
274
274
|
# Required. The audio data to be recognized.
|
275
|
+
# @param output_config [::Google::Cloud::Speech::V1p1beta1::TranscriptOutputConfig, ::Hash]
|
276
|
+
# Optional. Specifies an optional destination for the recognition results.
|
275
277
|
#
|
276
278
|
# @yield [response, operation] Access the result along with the RPC operation
|
277
279
|
# @yieldparam response [::Gapic::Operation]
|
@@ -458,7 +460,7 @@ module Google
|
|
458
460
|
config_attr :scope, nil, ::String, ::Array, nil
|
459
461
|
config_attr :lib_name, nil, ::String, nil
|
460
462
|
config_attr :lib_version, nil, ::String, nil
|
461
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
463
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
462
464
|
config_attr :interceptors, nil, ::Array, nil
|
463
465
|
config_attr :timeout, nil, ::Numeric, nil
|
464
466
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -479,7 +481,7 @@ module Google
|
|
479
481
|
def rpcs
|
480
482
|
@rpcs ||= begin
|
481
483
|
parent_rpcs = nil
|
482
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
484
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
483
485
|
Rpcs.new parent_rpcs
|
484
486
|
end
|
485
487
|
end
|
@@ -520,11 +522,11 @@ module Google
|
|
520
522
|
|
521
523
|
# @private
|
522
524
|
def initialize parent_rpcs = nil
|
523
|
-
recognize_config = parent_rpcs
|
525
|
+
recognize_config = parent_rpcs.recognize if parent_rpcs.respond_to? :recognize
|
524
526
|
@recognize = ::Gapic::Config::Method.new recognize_config
|
525
|
-
long_running_recognize_config = parent_rpcs
|
527
|
+
long_running_recognize_config = parent_rpcs.long_running_recognize if parent_rpcs.respond_to? :long_running_recognize
|
526
528
|
@long_running_recognize = ::Gapic::Config::Method.new long_running_recognize_config
|
527
|
-
streaming_recognize_config = parent_rpcs
|
529
|
+
streaming_recognize_config = parent_rpcs.streaming_recognize if parent_rpcs.respond_to? :streaming_recognize
|
528
530
|
@streaming_recognize = ::Gapic::Config::Method.new streaming_recognize_config
|
529
531
|
|
530
532
|
yield self if block_given?
|
@@ -560,7 +560,7 @@ module Google
|
|
560
560
|
config_attr :scope, nil, ::String, ::Array, nil
|
561
561
|
config_attr :lib_name, nil, ::String, nil
|
562
562
|
config_attr :lib_version, nil, ::String, nil
|
563
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
563
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
564
564
|
config_attr :interceptors, nil, ::Array, nil
|
565
565
|
config_attr :timeout, nil, ::Numeric, nil
|
566
566
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -581,7 +581,7 @@ module Google
|
|
581
581
|
def rpcs
|
582
582
|
@rpcs ||= begin
|
583
583
|
parent_rpcs = nil
|
584
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
584
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
585
585
|
Rpcs.new parent_rpcs
|
586
586
|
end
|
587
587
|
end
|
@@ -632,15 +632,15 @@ module Google
|
|
632
632
|
|
633
633
|
# @private
|
634
634
|
def initialize parent_rpcs = nil
|
635
|
-
list_operations_config = parent_rpcs
|
635
|
+
list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
|
636
636
|
@list_operations = ::Gapic::Config::Method.new list_operations_config
|
637
|
-
get_operation_config = parent_rpcs
|
637
|
+
get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
|
638
638
|
@get_operation = ::Gapic::Config::Method.new get_operation_config
|
639
|
-
delete_operation_config = parent_rpcs
|
639
|
+
delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation
|
640
640
|
@delete_operation = ::Gapic::Config::Method.new delete_operation_config
|
641
|
-
cancel_operation_config = parent_rpcs
|
641
|
+
cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
|
642
642
|
@cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
|
643
|
-
wait_operation_config = parent_rpcs
|
643
|
+
wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation
|
644
644
|
@wait_operation = ::Gapic::Config::Method.new wait_operation_config
|
645
645
|
|
646
646
|
yield self if block_given?
|
@@ -43,11 +43,25 @@ module Google
|
|
43
43
|
# @!attribute [rw] audio
|
44
44
|
# @return [::Google::Cloud::Speech::V1p1beta1::RecognitionAudio]
|
45
45
|
# Required. The audio data to be recognized.
|
46
|
+
# @!attribute [rw] output_config
|
47
|
+
# @return [::Google::Cloud::Speech::V1p1beta1::TranscriptOutputConfig]
|
48
|
+
# Optional. Specifies an optional destination for the recognition results.
|
46
49
|
class LongRunningRecognizeRequest
|
47
50
|
include ::Google::Protobuf::MessageExts
|
48
51
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
49
52
|
end
|
50
53
|
|
54
|
+
# Specifies an optional destination for the recognition results.
|
55
|
+
# @!attribute [rw] gcs_uri
|
56
|
+
# @return [::String]
|
57
|
+
# Specifies a Cloud Storage URI for the recognition results. Must be
|
58
|
+
# specified in the format: `gs://bucket_name/object_name`, and the bucket
|
59
|
+
# must already exist.
|
60
|
+
class TranscriptOutputConfig
|
61
|
+
include ::Google::Protobuf::MessageExts
|
62
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
63
|
+
end
|
64
|
+
|
51
65
|
# The top-level message sent by the client for the `StreamingRecognize` method.
|
52
66
|
# Multiple `StreamingRecognizeRequest` messages are sent. The first message
|
53
67
|
# must contain a `streaming_config` message and must not contain
|
@@ -119,8 +133,7 @@ module Google
|
|
119
133
|
# @return [::Google::Cloud::Speech::V1p1beta1::RecognitionConfig::AudioEncoding]
|
120
134
|
# Encoding of audio data sent in all `RecognitionAudio` messages.
|
121
135
|
# This field is optional for `FLAC` and `WAV` audio files and required
|
122
|
-
# for all other audio formats. For details, see
|
123
|
-
# {::Google::Cloud::Speech::V1p1beta1::RecognitionConfig::AudioEncoding AudioEncoding}.
|
136
|
+
# for all other audio formats. For details, see {::Google::Cloud::Speech::V1p1beta1::RecognitionConfig::AudioEncoding AudioEncoding}.
|
124
137
|
# @!attribute [rw] sample_rate_hertz
|
125
138
|
# @return [::Integer]
|
126
139
|
# Sample rate in Hertz of the audio data sent in all
|
@@ -129,8 +142,7 @@ module Google
|
|
129
142
|
# source to 16000 Hz. If that's not possible, use the native sample rate of
|
130
143
|
# the audio source (instead of re-sampling).
|
131
144
|
# This field is optional for FLAC and WAV audio files, but is
|
132
|
-
# required for all other audio formats. For details, see
|
133
|
-
# {::Google::Cloud::Speech::V1p1beta1::RecognitionConfig::AudioEncoding AudioEncoding}.
|
145
|
+
# required for all other audio formats. For details, see {::Google::Cloud::Speech::V1p1beta1::RecognitionConfig::AudioEncoding AudioEncoding}.
|
134
146
|
# @!attribute [rw] audio_channel_count
|
135
147
|
# @return [::Integer]
|
136
148
|
# The number of channels in the input audio data.
|
@@ -191,7 +203,7 @@ module Google
|
|
191
203
|
# Speech adaptation configuration improves the accuracy of speech
|
192
204
|
# recognition. When speech adaptation is set it supersedes the
|
193
205
|
# `speech_contexts` field. For more information, see the [speech
|
194
|
-
# adaptation](https://cloud.google.com/speech-to-text/docs/
|
206
|
+
# adaptation](https://cloud.google.com/speech-to-text/docs/adaptation)
|
195
207
|
# documentation.
|
196
208
|
# @!attribute [rw] speech_contexts
|
197
209
|
# @return [::Array<::Google::Cloud::Speech::V1p1beta1::SpeechContext>]
|
@@ -199,7 +211,7 @@ module Google
|
|
199
211
|
# A means to provide context to assist the speech recognition. For more
|
200
212
|
# information, see
|
201
213
|
# [speech
|
202
|
-
# adaptation](https://cloud.google.com/speech-to-text/docs/
|
214
|
+
# adaptation](https://cloud.google.com/speech-to-text/docs/adaptation).
|
203
215
|
# @!attribute [rw] enable_word_time_offsets
|
204
216
|
# @return [::Boolean]
|
205
217
|
# If `true`, the top result includes a list of words and
|
@@ -217,6 +229,22 @@ module Google
|
|
217
229
|
# This feature is only available in select languages. Setting this for
|
218
230
|
# requests in other languages has no effect at all.
|
219
231
|
# The default 'false' value does not add punctuation to result hypotheses.
|
232
|
+
# @!attribute [rw] enable_spoken_punctuation
|
233
|
+
# @return [::Google::Protobuf::BoolValue]
|
234
|
+
# The spoken punctuation behavior for the call
|
235
|
+
# If not set, uses default behavior based on model of choice
|
236
|
+
# e.g. command_and_search will enable spoken punctuation by default
|
237
|
+
# If 'true', replaces spoken punctuation with the corresponding symbols in
|
238
|
+
# the request. For example, "how are you question mark" becomes "how are
|
239
|
+
# you?". See https://cloud.google.com/speech-to-text/docs/spoken-punctuation
|
240
|
+
# for support. If 'false', spoken punctuation is not replaced.
|
241
|
+
# @!attribute [rw] enable_spoken_emojis
|
242
|
+
# @return [::Google::Protobuf::BoolValue]
|
243
|
+
# The spoken emoji behavior for the call
|
244
|
+
# If not set, uses default behavior based on model of choice
|
245
|
+
# If 'true', adds spoken emoji formatting for the request. This will replace
|
246
|
+
# spoken emojis with the corresponding Unicode symbols in the final
|
247
|
+
# transcript. If 'false', spoken emojis are not replaced.
|
220
248
|
# @!attribute [rw] enable_speaker_diarization
|
221
249
|
# @return [::Boolean]
|
222
250
|
# If 'true', enables speaker detection for each recognized word in
|
@@ -263,7 +291,7 @@ module Google
|
|
263
291
|
# </tr>
|
264
292
|
# <tr>
|
265
293
|
# <td><code>video</code></td>
|
266
|
-
# <td>Best for audio that originated from
|
294
|
+
# <td>Best for audio that originated from video or includes multiple
|
267
295
|
# speakers. Ideally the audio is recorded at a 16khz or greater
|
268
296
|
# sampling rate. This is a premium model that costs more than the
|
269
297
|
# standard rate.</td>
|
@@ -299,7 +327,7 @@ module Google
|
|
299
327
|
# a lossless encoding (`FLAC` or `LINEAR16`). The accuracy of the speech
|
300
328
|
# recognition can be reduced if lossy codecs are used to capture or transmit
|
301
329
|
# audio, particularly if background noise is present. Lossy codecs include
|
302
|
-
# `MULAW`, `AMR`, `AMR_WB`, `OGG_OPUS`, `SPEEX_WITH_HEADER_BYTE`,
|
330
|
+
# `MULAW`, `AMR`, `AMR_WB`, `OGG_OPUS`, `SPEEX_WITH_HEADER_BYTE`, `MP3`.
|
303
331
|
#
|
304
332
|
# The `FLAC` and `WAV` audio file formats include a header that describes the
|
305
333
|
# included audio content. You can request recognition for `WAV` files that
|
@@ -310,8 +338,7 @@ module Google
|
|
310
338
|
# an `AudioEncoding` when you send send `FLAC` or `WAV` audio, the
|
311
339
|
# encoding configuration must match the encoding described in the audio
|
312
340
|
# header; otherwise the request returns an
|
313
|
-
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error
|
314
|
-
# code.
|
341
|
+
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error code.
|
315
342
|
module AudioEncoding
|
316
343
|
# Not specified.
|
317
344
|
ENCODING_UNSPECIFIED = 0
|
@@ -361,6 +388,12 @@ module Google
|
|
361
388
|
# kbps). When using this encoding, `sample_rate_hertz` has to match the
|
362
389
|
# sample rate of the file being used.
|
363
390
|
MP3 = 8
|
391
|
+
|
392
|
+
# Opus encoded audio frames in WebM container
|
393
|
+
# ([OggOpus](https://wiki.xiph.org/OggOpus)). This is a Beta features and
|
394
|
+
# only available in v1p1beta1. `sample_rate_hertz` must be one of 8000,
|
395
|
+
# 12000, 16000, 24000, or 48000.
|
396
|
+
WEBM_OPUS = 9
|
364
397
|
end
|
365
398
|
end
|
366
399
|
|
@@ -555,8 +588,8 @@ module Google
|
|
555
588
|
|
556
589
|
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
557
590
|
# Either `content` or `uri` must be supplied. Supplying both or neither
|
558
|
-
# returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
|
559
|
-
#
|
591
|
+
# returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See
|
592
|
+
# [content limits](https://cloud.google.com/speech-to-text/quotas#content).
|
560
593
|
# @!attribute [rw] content
|
561
594
|
# @return [::String]
|
562
595
|
# The audio data bytes encoded as specified in
|
@@ -569,9 +602,8 @@ module Google
|
|
569
602
|
# Currently, only Google Cloud Storage URIs are
|
570
603
|
# supported, which must be specified in the following format:
|
571
604
|
# `gs://bucket_name/object_name` (other URI formats return
|
572
|
-
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
|
573
|
-
#
|
574
|
-
# URIs](https://cloud.google.com/storage/docs/reference-uris).
|
605
|
+
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
|
606
|
+
# [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
|
575
607
|
class RecognitionAudio
|
576
608
|
include ::Google::Protobuf::MessageExts
|
577
609
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -598,6 +630,12 @@ module Google
|
|
598
630
|
# @return [::Array<::Google::Cloud::Speech::V1p1beta1::SpeechRecognitionResult>]
|
599
631
|
# Sequential list of transcription results corresponding to
|
600
632
|
# sequential portions of audio.
|
633
|
+
# @!attribute [rw] output_config
|
634
|
+
# @return [::Google::Cloud::Speech::V1p1beta1::TranscriptOutputConfig]
|
635
|
+
# Original output config if present in the request.
|
636
|
+
# @!attribute [rw] output_error
|
637
|
+
# @return [::Google::Rpc::Status]
|
638
|
+
# If the transcript output fails this field contains the relevant error.
|
601
639
|
class LongRunningRecognizeResponse
|
602
640
|
include ::Google::Protobuf::MessageExts
|
603
641
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -618,8 +656,11 @@ module Google
|
|
618
656
|
# Time of the most recent processing update.
|
619
657
|
# @!attribute [r] uri
|
620
658
|
# @return [::String]
|
621
|
-
# Output only. The URI of the audio file being transcribed. Empty if the
|
622
|
-
#
|
659
|
+
# Output only. The URI of the audio file being transcribed. Empty if the audio was sent
|
660
|
+
# as byte content.
|
661
|
+
# @!attribute [r] output_config
|
662
|
+
# @return [::Google::Cloud::Speech::V1p1beta1::TranscriptOutputConfig]
|
663
|
+
# Output only. A copy of the TranscriptOutputConfig if it was set in the request.
|
623
664
|
class LongRunningRecognizeMetadata
|
624
665
|
include ::Google::Protobuf::MessageExts
|
625
666
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -631,8 +672,8 @@ module Google
|
|
631
672
|
# audio, and `single_utterance` is set to false, then no messages are streamed
|
632
673
|
# back to the client.
|
633
674
|
#
|
634
|
-
# Here's an example of a series of
|
635
|
-
#
|
675
|
+
# Here's an example of a series of `StreamingRecognizeResponse`s that might be
|
676
|
+
# returned while processing audio:
|
636
677
|
#
|
637
678
|
# 1. results { alternatives { transcript: "tube" } stability: 0.01 }
|
638
679
|
#
|
@@ -740,9 +781,9 @@ module Google
|
|
740
781
|
# For audio_channel_count = N, its output values can range from '1' to 'N'.
|
741
782
|
# @!attribute [r] language_code
|
742
783
|
# @return [::String]
|
743
|
-
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
|
744
|
-
#
|
745
|
-
#
|
784
|
+
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
|
785
|
+
# of the language in this result. This language code was detected to have
|
786
|
+
# the most likelihood of being spoken in the audio.
|
746
787
|
class StreamingRecognitionResult
|
747
788
|
include ::Google::Protobuf::MessageExts
|
748
789
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -762,9 +803,9 @@ module Google
|
|
762
803
|
# For audio_channel_count = N, its output values can range from '1' to 'N'.
|
763
804
|
# @!attribute [r] language_code
|
764
805
|
# @return [::String]
|
765
|
-
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
|
766
|
-
#
|
767
|
-
#
|
806
|
+
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
|
807
|
+
# of the language in this result. This language code was detected to have
|
808
|
+
# the most likelihood of being spoken in the audio.
|
768
809
|
class SpeechRecognitionResult
|
769
810
|
include ::Google::Protobuf::MessageExts
|
770
811
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -0,0 +1,121 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Protobuf
|
22
|
+
# Wrapper message for `double`.
|
23
|
+
#
|
24
|
+
# The JSON representation for `DoubleValue` is JSON number.
|
25
|
+
# @!attribute [rw] value
|
26
|
+
# @return [::Float]
|
27
|
+
# The double value.
|
28
|
+
class DoubleValue
|
29
|
+
include ::Google::Protobuf::MessageExts
|
30
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
31
|
+
end
|
32
|
+
|
33
|
+
# Wrapper message for `float`.
|
34
|
+
#
|
35
|
+
# The JSON representation for `FloatValue` is JSON number.
|
36
|
+
# @!attribute [rw] value
|
37
|
+
# @return [::Float]
|
38
|
+
# The float value.
|
39
|
+
class FloatValue
|
40
|
+
include ::Google::Protobuf::MessageExts
|
41
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
42
|
+
end
|
43
|
+
|
44
|
+
# Wrapper message for `int64`.
|
45
|
+
#
|
46
|
+
# The JSON representation for `Int64Value` is JSON string.
|
47
|
+
# @!attribute [rw] value
|
48
|
+
# @return [::Integer]
|
49
|
+
# The int64 value.
|
50
|
+
class Int64Value
|
51
|
+
include ::Google::Protobuf::MessageExts
|
52
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
53
|
+
end
|
54
|
+
|
55
|
+
# Wrapper message for `uint64`.
|
56
|
+
#
|
57
|
+
# The JSON representation for `UInt64Value` is JSON string.
|
58
|
+
# @!attribute [rw] value
|
59
|
+
# @return [::Integer]
|
60
|
+
# The uint64 value.
|
61
|
+
class UInt64Value
|
62
|
+
include ::Google::Protobuf::MessageExts
|
63
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
64
|
+
end
|
65
|
+
|
66
|
+
# Wrapper message for `int32`.
|
67
|
+
#
|
68
|
+
# The JSON representation for `Int32Value` is JSON number.
|
69
|
+
# @!attribute [rw] value
|
70
|
+
# @return [::Integer]
|
71
|
+
# The int32 value.
|
72
|
+
class Int32Value
|
73
|
+
include ::Google::Protobuf::MessageExts
|
74
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
75
|
+
end
|
76
|
+
|
77
|
+
# Wrapper message for `uint32`.
|
78
|
+
#
|
79
|
+
# The JSON representation for `UInt32Value` is JSON number.
|
80
|
+
# @!attribute [rw] value
|
81
|
+
# @return [::Integer]
|
82
|
+
# The uint32 value.
|
83
|
+
class UInt32Value
|
84
|
+
include ::Google::Protobuf::MessageExts
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
86
|
+
end
|
87
|
+
|
88
|
+
# Wrapper message for `bool`.
|
89
|
+
#
|
90
|
+
# The JSON representation for `BoolValue` is JSON `true` and `false`.
|
91
|
+
# @!attribute [rw] value
|
92
|
+
# @return [::Boolean]
|
93
|
+
# The bool value.
|
94
|
+
class BoolValue
|
95
|
+
include ::Google::Protobuf::MessageExts
|
96
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
97
|
+
end
|
98
|
+
|
99
|
+
# Wrapper message for `string`.
|
100
|
+
#
|
101
|
+
# The JSON representation for `StringValue` is JSON string.
|
102
|
+
# @!attribute [rw] value
|
103
|
+
# @return [::String]
|
104
|
+
# The string value.
|
105
|
+
class StringValue
|
106
|
+
include ::Google::Protobuf::MessageExts
|
107
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
108
|
+
end
|
109
|
+
|
110
|
+
# Wrapper message for `bytes`.
|
111
|
+
#
|
112
|
+
# The JSON representation for `BytesValue` is JSON string.
|
113
|
+
# @!attribute [rw] value
|
114
|
+
# @return [::String]
|
115
|
+
# The bytes value.
|
116
|
+
class BytesValue
|
117
|
+
include ::Google::Protobuf::MessageExts
|
118
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.9.1
|
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
|
+
date: 2021-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.5'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.5'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +50,14 @@ dependencies:
|
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
53
|
+
version: 1.25.1
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
60
|
+
version: 1.25.1
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: minitest
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,6 +202,7 @@ files:
|
|
196
202
|
- proto_docs/google/protobuf/empty.rb
|
197
203
|
- proto_docs/google/protobuf/field_mask.rb
|
198
204
|
- proto_docs/google/protobuf/timestamp.rb
|
205
|
+
- proto_docs/google/protobuf/wrappers.rb
|
199
206
|
- proto_docs/google/rpc/status.rb
|
200
207
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
201
208
|
licenses:
|
@@ -209,14 +216,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
209
216
|
requirements:
|
210
217
|
- - ">="
|
211
218
|
- !ruby/object:Gem::Version
|
212
|
-
version: '2.
|
219
|
+
version: '2.5'
|
213
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
214
221
|
requirements:
|
215
222
|
- - ">="
|
216
223
|
- !ruby/object:Gem::Version
|
217
224
|
version: '0'
|
218
225
|
requirements: []
|
219
|
-
rubygems_version: 3.2.
|
226
|
+
rubygems_version: 3.2.17
|
220
227
|
signing_key:
|
221
228
|
specification_version: 4
|
222
229
|
summary: API Client library for the Cloud Speech-to-Text V1p1beta1 API
|