google-apis-speech_v1p1beta1 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e3047902e3bb31a86335df35a04d3f5173aafccbc83ecfb65edaf88ed36f622
|
4
|
+
data.tar.gz: 401be788587ff6fb77717995a381f7f56503e3c83da4016b5c02500e03013b1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05202d791671994166f0b40d53693b53f5a8754baa4e157e87cc56b2e67d0cf0f5732ce31a281974003a1588eca94b922ac1341d4076259bebee951bbfed614a
|
7
|
+
data.tar.gz: d41bd3a69dc9a3e11b5efcadc49ba976c160ee32dfc249aa0c291670ada4c6e879515eb232c8252ad036f25a2a6c6029bd7dad1f6e26659ac36d0a02c1c2a90b
|
data/CHANGELOG.md
CHANGED
@@ -149,6 +149,38 @@ module Google
|
|
149
149
|
end
|
150
150
|
end
|
151
151
|
|
152
|
+
# A single replacement configuration.
|
153
|
+
class Entry
|
154
|
+
include Google::Apis::Core::Hashable
|
155
|
+
|
156
|
+
# Whether the search is case sensitive.
|
157
|
+
# Corresponds to the JSON property `caseSensitive`
|
158
|
+
# @return [Boolean]
|
159
|
+
attr_accessor :case_sensitive
|
160
|
+
alias_method :case_sensitive?, :case_sensitive
|
161
|
+
|
162
|
+
# What to replace with. Max length is 100 characters.
|
163
|
+
# Corresponds to the JSON property `replace`
|
164
|
+
# @return [String]
|
165
|
+
attr_accessor :replace
|
166
|
+
|
167
|
+
# What to replace. Max length is 100 characters.
|
168
|
+
# Corresponds to the JSON property `search`
|
169
|
+
# @return [String]
|
170
|
+
attr_accessor :search
|
171
|
+
|
172
|
+
def initialize(**args)
|
173
|
+
update!(**args)
|
174
|
+
end
|
175
|
+
|
176
|
+
# Update properties of this object
|
177
|
+
def update!(**args)
|
178
|
+
@case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive)
|
179
|
+
@replace = args[:replace] if args.key?(:replace)
|
180
|
+
@search = args[:search] if args.key?(:search)
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
152
184
|
# Message returned to the client by the `ListCustomClasses` method.
|
153
185
|
class ListCustomClassesResponse
|
154
186
|
include Google::Apis::Core::Hashable
|
@@ -337,6 +369,11 @@ module Google
|
|
337
369
|
# @return [Array<Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult>]
|
338
370
|
attr_accessor :results
|
339
371
|
|
372
|
+
# When available, billed audio seconds for the corresponding request.
|
373
|
+
# Corresponds to the JSON property `totalBilledTime`
|
374
|
+
# @return [String]
|
375
|
+
attr_accessor :total_billed_time
|
376
|
+
|
340
377
|
def initialize(**args)
|
341
378
|
update!(**args)
|
342
379
|
end
|
@@ -346,6 +383,7 @@ module Google
|
|
346
383
|
@output_config = args[:output_config] if args.key?(:output_config)
|
347
384
|
@output_error = args[:output_error] if args.key?(:output_error)
|
348
385
|
@results = args[:results] if args.key?(:results)
|
386
|
+
@total_billed_time = args[:total_billed_time] if args.key?(:total_billed_time)
|
349
387
|
end
|
350
388
|
end
|
351
389
|
|
@@ -716,6 +754,14 @@ module Google
|
|
716
754
|
# @return [Array<Google::Apis::SpeechV1p1beta1::SpeechContext>]
|
717
755
|
attr_accessor :speech_contexts
|
718
756
|
|
757
|
+
# Transcription normalization configuration. Use transcription normalization to
|
758
|
+
# automatically replace parts of the transcript with phrases of your choosing.
|
759
|
+
# For StreamingRecognize, this normalization only applies to stable partial
|
760
|
+
# transcripts (stability > 0.8) and final transcripts.
|
761
|
+
# Corresponds to the JSON property `transcriptNormalization`
|
762
|
+
# @return [Google::Apis::SpeechV1p1beta1::TranscriptNormalization]
|
763
|
+
attr_accessor :transcript_normalization
|
764
|
+
|
719
765
|
# Set to true to use an enhanced model for speech recognition. If `use_enhanced`
|
720
766
|
# is set to true and the `model` field is not set, then an appropriate enhanced
|
721
767
|
# model is chosen if an enhanced model exists for the audio. If `use_enhanced`
|
@@ -752,6 +798,7 @@ module Google
|
|
752
798
|
@profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
|
753
799
|
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
|
754
800
|
@speech_contexts = args[:speech_contexts] if args.key?(:speech_contexts)
|
801
|
+
@transcript_normalization = args[:transcript_normalization] if args.key?(:transcript_normalization)
|
755
802
|
@use_enhanced = args[:use_enhanced] if args.key?(:use_enhanced)
|
756
803
|
end
|
757
804
|
end
|
@@ -872,6 +919,11 @@ module Google
|
|
872
919
|
# @return [Array<Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult>]
|
873
920
|
attr_accessor :results
|
874
921
|
|
922
|
+
# When available, billed audio seconds for the corresponding request.
|
923
|
+
# Corresponds to the JSON property `totalBilledTime`
|
924
|
+
# @return [String]
|
925
|
+
attr_accessor :total_billed_time
|
926
|
+
|
875
927
|
def initialize(**args)
|
876
928
|
update!(**args)
|
877
929
|
end
|
@@ -879,6 +931,7 @@ module Google
|
|
879
931
|
# Update properties of this object
|
880
932
|
def update!(**args)
|
881
933
|
@results = args[:results] if args.key?(:results)
|
934
|
+
@total_billed_time = args[:total_billed_time] if args.key?(:total_billed_time)
|
882
935
|
end
|
883
936
|
end
|
884
937
|
|
@@ -1119,6 +1172,31 @@ module Google
|
|
1119
1172
|
end
|
1120
1173
|
end
|
1121
1174
|
|
1175
|
+
# Transcription normalization configuration. Use transcription normalization to
|
1176
|
+
# automatically replace parts of the transcript with phrases of your choosing.
|
1177
|
+
# For StreamingRecognize, this normalization only applies to stable partial
|
1178
|
+
# transcripts (stability > 0.8) and final transcripts.
|
1179
|
+
class TranscriptNormalization
|
1180
|
+
include Google::Apis::Core::Hashable
|
1181
|
+
|
1182
|
+
# A list of replacement entries. We will perform replacement with one entry at a
|
1183
|
+
# time. For example, the second entry in ["cat" => "dog", "mountain cat" => "
|
1184
|
+
# mountain dog"] will never be applied because we will always process the first
|
1185
|
+
# entry before it. At most 100 entries.
|
1186
|
+
# Corresponds to the JSON property `entries`
|
1187
|
+
# @return [Array<Google::Apis::SpeechV1p1beta1::Entry>]
|
1188
|
+
attr_accessor :entries
|
1189
|
+
|
1190
|
+
def initialize(**args)
|
1191
|
+
update!(**args)
|
1192
|
+
end
|
1193
|
+
|
1194
|
+
# Update properties of this object
|
1195
|
+
def update!(**args)
|
1196
|
+
@entries = args[:entries] if args.key?(:entries)
|
1197
|
+
end
|
1198
|
+
end
|
1199
|
+
|
1122
1200
|
# Specifies an optional destination for the recognition results.
|
1123
1201
|
class TranscriptOutputConfig
|
1124
1202
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module SpeechV1p1beta1
|
18
18
|
# Version of the google-apis-speech_v1p1beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.14.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210825"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -52,6 +52,12 @@ module Google
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
+
class Entry
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
55
61
|
class ListCustomClassesResponse
|
56
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
63
|
|
@@ -172,6 +178,12 @@ module Google
|
|
172
178
|
include Google::Apis::Core::JsonObjectSupport
|
173
179
|
end
|
174
180
|
|
181
|
+
class TranscriptNormalization
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
175
187
|
class TranscriptOutputConfig
|
176
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
189
|
|
@@ -225,6 +237,15 @@ module Google
|
|
225
237
|
end
|
226
238
|
end
|
227
239
|
|
240
|
+
class Entry
|
241
|
+
# @private
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
243
|
+
property :case_sensitive, as: 'caseSensitive'
|
244
|
+
property :replace, as: 'replace'
|
245
|
+
property :search, as: 'search'
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
228
249
|
class ListCustomClassesResponse
|
229
250
|
# @private
|
230
251
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -285,6 +306,7 @@ module Google
|
|
285
306
|
|
286
307
|
collection :results, as: 'results', class: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult::Representation
|
287
308
|
|
309
|
+
property :total_billed_time, as: 'totalBilledTime'
|
288
310
|
end
|
289
311
|
end
|
290
312
|
|
@@ -353,6 +375,8 @@ module Google
|
|
353
375
|
property :sample_rate_hertz, as: 'sampleRateHertz'
|
354
376
|
collection :speech_contexts, as: 'speechContexts', class: Google::Apis::SpeechV1p1beta1::SpeechContext, decorator: Google::Apis::SpeechV1p1beta1::SpeechContext::Representation
|
355
377
|
|
378
|
+
property :transcript_normalization, as: 'transcriptNormalization', class: Google::Apis::SpeechV1p1beta1::TranscriptNormalization, decorator: Google::Apis::SpeechV1p1beta1::TranscriptNormalization::Representation
|
379
|
+
|
356
380
|
property :use_enhanced, as: 'useEnhanced'
|
357
381
|
end
|
358
382
|
end
|
@@ -387,6 +411,7 @@ module Google
|
|
387
411
|
class Representation < Google::Apis::Core::JsonRepresentation
|
388
412
|
collection :results, as: 'results', class: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult::Representation
|
389
413
|
|
414
|
+
property :total_billed_time, as: 'totalBilledTime'
|
390
415
|
end
|
391
416
|
end
|
392
417
|
|
@@ -448,6 +473,14 @@ module Google
|
|
448
473
|
end
|
449
474
|
end
|
450
475
|
|
476
|
+
class TranscriptNormalization
|
477
|
+
# @private
|
478
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
479
|
+
collection :entries, as: 'entries', class: Google::Apis::SpeechV1p1beta1::Entry, decorator: Google::Apis::SpeechV1p1beta1::Entry::Representation
|
480
|
+
|
481
|
+
end
|
482
|
+
end
|
483
|
+
|
451
484
|
class TranscriptOutputConfig
|
452
485
|
# @private
|
453
486
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V1p1beta1'
|
31
31
|
|
32
|
-
# See, edit, configure, and delete your Google Cloud
|
32
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
34
|
end
|
35
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-speech_v1p1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.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: 2021-
|
11
|
+
date: 2021-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-speech_v1p1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1p1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1p1beta1/v0.14.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-speech_v1p1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|