google-apis-speech_v1 0.26.0 → 0.28.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: 4d31a606e148525312a9ff68df1246749046c4e4035d3afe48dac421281096d4
|
4
|
+
data.tar.gz: cf2401627abf512f411abf65726f71b2b642453cc10203e1936950d247650c02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0b02c42e2c6baf975d4357116b8c2d0374d3f3e22d6ba9875ade92adf7a5492c5c9a61021514da24ce78c6f4bccd26592684fd545d3aec954dfb5c5e9331f96
|
7
|
+
data.tar.gz: cf63fa9b4f7dbaba2a3733a8ac409a97c947c94129468029b8ac81535f70adcc24f700e4c101ec0a5dd244ebdd1f20ad2c876896fb3d8edde2f71789e82419e4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-speech_v1
|
2
2
|
|
3
|
+
### v0.28.0 (2022-12-07)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20221202
|
6
|
+
|
7
|
+
### v0.27.0 (2022-10-27)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20221020
|
10
|
+
* Regenerated using generator version 0.11.0
|
11
|
+
|
3
12
|
### v0.26.0 (2022-09-23)
|
4
13
|
|
5
14
|
* Regenerated using generator version 0.10.0
|
@@ -22,6 +22,26 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module SpeechV1
|
24
24
|
|
25
|
+
#
|
26
|
+
class AbnfGrammar
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# All declarations and rules of an ABNF grammar broken up into multiple strings
|
30
|
+
# that will end up concatenated.
|
31
|
+
# Corresponds to the JSON property `abnfStrings`
|
32
|
+
# @return [Array<String>]
|
33
|
+
attr_accessor :abnf_strings
|
34
|
+
|
35
|
+
def initialize(**args)
|
36
|
+
update!(**args)
|
37
|
+
end
|
38
|
+
|
39
|
+
# Update properties of this object
|
40
|
+
def update!(**args)
|
41
|
+
@abnf_strings = args[:abnf_strings] if args.key?(:abnf_strings)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
25
45
|
# An item of the class.
|
26
46
|
class ClassItem
|
27
47
|
include Google::Apis::Core::Hashable
|
@@ -338,6 +358,11 @@ module Google
|
|
338
358
|
# @return [Array<Google::Apis::SpeechV1::SpeechRecognitionResult>]
|
339
359
|
attr_accessor :results
|
340
360
|
|
361
|
+
# Information on speech adaptation use in results
|
362
|
+
# Corresponds to the JSON property `speechAdaptationInfo`
|
363
|
+
# @return [Google::Apis::SpeechV1::SpeechAdaptationInfo]
|
364
|
+
attr_accessor :speech_adaptation_info
|
365
|
+
|
341
366
|
# When available, billed audio seconds for the corresponding request.
|
342
367
|
# Corresponds to the JSON property `totalBilledTime`
|
343
368
|
# @return [String]
|
@@ -353,6 +378,7 @@ module Google
|
|
353
378
|
@output_error = args[:output_error] if args.key?(:output_error)
|
354
379
|
@request_id = args[:request_id] if args.key?(:request_id)
|
355
380
|
@results = args[:results] if args.key?(:results)
|
381
|
+
@speech_adaptation_info = args[:speech_adaptation_info] if args.key?(:speech_adaptation_info)
|
356
382
|
@total_billed_time = args[:total_billed_time] if args.key?(:total_billed_time)
|
357
383
|
end
|
358
384
|
end
|
@@ -572,12 +598,11 @@ module Google
|
|
572
598
|
attr_accessor :alternative_language_codes
|
573
599
|
|
574
600
|
# The number of channels in the input audio data. ONLY set this for MULTI-
|
575
|
-
# CHANNEL recognition. Valid values for LINEAR16 and FLAC are `1`-`8`.
|
576
|
-
#
|
577
|
-
#
|
578
|
-
#
|
579
|
-
#
|
580
|
-
# enable_separate_recognition_per_channel` to 'true'.
|
601
|
+
# CHANNEL recognition. Valid values for LINEAR16, OGG_OPUS and FLAC are `1`-`8`.
|
602
|
+
# Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`. If `
|
603
|
+
# 0` or omitted, defaults to one channel (mono). Note: We only recognize the
|
604
|
+
# first channel by default. To perform independent recognition on each channel
|
605
|
+
# set `enable_separate_recognition_per_channel` to 'true'.
|
581
606
|
# Corresponds to the JSON property `audioChannelCount`
|
582
607
|
# @return [Fixnum]
|
583
608
|
attr_accessor :audio_channel_count
|
@@ -870,6 +895,11 @@ module Google
|
|
870
895
|
# @return [Array<Google::Apis::SpeechV1::SpeechRecognitionResult>]
|
871
896
|
attr_accessor :results
|
872
897
|
|
898
|
+
# Information on speech adaptation use in results
|
899
|
+
# Corresponds to the JSON property `speechAdaptationInfo`
|
900
|
+
# @return [Google::Apis::SpeechV1::SpeechAdaptationInfo]
|
901
|
+
attr_accessor :speech_adaptation_info
|
902
|
+
|
873
903
|
# When available, billed audio seconds for the corresponding request.
|
874
904
|
# Corresponds to the JSON property `totalBilledTime`
|
875
905
|
# @return [String]
|
@@ -883,6 +913,7 @@ module Google
|
|
883
913
|
def update!(**args)
|
884
914
|
@request_id = args[:request_id] if args.key?(:request_id)
|
885
915
|
@results = args[:results] if args.key?(:results)
|
916
|
+
@speech_adaptation_info = args[:speech_adaptation_info] if args.key?(:speech_adaptation_info)
|
886
917
|
@total_billed_time = args[:total_billed_time] if args.key?(:total_billed_time)
|
887
918
|
end
|
888
919
|
end
|
@@ -935,6 +966,13 @@ module Google
|
|
935
966
|
class SpeechAdaptation
|
936
967
|
include Google::Apis::Core::Hashable
|
937
968
|
|
969
|
+
# Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised
|
970
|
+
# by a set of derivation rules. See specifications: https://www.w3.org/TR/speech-
|
971
|
+
# grammar
|
972
|
+
# Corresponds to the JSON property `abnfGrammar`
|
973
|
+
# @return [Google::Apis::SpeechV1::AbnfGrammar]
|
974
|
+
attr_accessor :abnf_grammar
|
975
|
+
|
938
976
|
# A collection of custom classes. To specify the classes inline, leave the class'
|
939
977
|
# `name` blank and fill in the rest of its fields, giving it a unique `
|
940
978
|
# custom_class_id`. Refer to the inline defined class in phrase hints by its `
|
@@ -961,12 +999,41 @@ module Google
|
|
961
999
|
|
962
1000
|
# Update properties of this object
|
963
1001
|
def update!(**args)
|
1002
|
+
@abnf_grammar = args[:abnf_grammar] if args.key?(:abnf_grammar)
|
964
1003
|
@custom_classes = args[:custom_classes] if args.key?(:custom_classes)
|
965
1004
|
@phrase_set_references = args[:phrase_set_references] if args.key?(:phrase_set_references)
|
966
1005
|
@phrase_sets = args[:phrase_sets] if args.key?(:phrase_sets)
|
967
1006
|
end
|
968
1007
|
end
|
969
1008
|
|
1009
|
+
# Information on speech adaptation use in results
|
1010
|
+
class SpeechAdaptationInfo
|
1011
|
+
include Google::Apis::Core::Hashable
|
1012
|
+
|
1013
|
+
# Whether there was a timeout when applying speech adaptation. If true,
|
1014
|
+
# adaptation had no effect in the response transcript.
|
1015
|
+
# Corresponds to the JSON property `adaptationTimeout`
|
1016
|
+
# @return [Boolean]
|
1017
|
+
attr_accessor :adaptation_timeout
|
1018
|
+
alias_method :adaptation_timeout?, :adaptation_timeout
|
1019
|
+
|
1020
|
+
# If set, returns a message specifying which part of the speech adaptation
|
1021
|
+
# request timed out.
|
1022
|
+
# Corresponds to the JSON property `timeoutMessage`
|
1023
|
+
# @return [String]
|
1024
|
+
attr_accessor :timeout_message
|
1025
|
+
|
1026
|
+
def initialize(**args)
|
1027
|
+
update!(**args)
|
1028
|
+
end
|
1029
|
+
|
1030
|
+
# Update properties of this object
|
1031
|
+
def update!(**args)
|
1032
|
+
@adaptation_timeout = args[:adaptation_timeout] if args.key?(:adaptation_timeout)
|
1033
|
+
@timeout_message = args[:timeout_message] if args.key?(:timeout_message)
|
1034
|
+
end
|
1035
|
+
end
|
1036
|
+
|
970
1037
|
# Provides "hints" to the speech recognizer to favor specific words and phrases
|
971
1038
|
# in the results.
|
972
1039
|
class SpeechContext
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module SpeechV1
|
18
18
|
# Version of the google-apis-speech_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.28.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.11.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20221202"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module SpeechV1
|
24
24
|
|
25
|
+
class AbnfGrammar
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class ClassItem
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -148,6 +154,12 @@ module Google
|
|
148
154
|
include Google::Apis::Core::JsonObjectSupport
|
149
155
|
end
|
150
156
|
|
157
|
+
class SpeechAdaptationInfo
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
151
163
|
class SpeechContext
|
152
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
165
|
|
@@ -184,6 +196,13 @@ module Google
|
|
184
196
|
include Google::Apis::Core::JsonObjectSupport
|
185
197
|
end
|
186
198
|
|
199
|
+
class AbnfGrammar
|
200
|
+
# @private
|
201
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
202
|
+
collection :abnf_strings, as: 'abnfStrings'
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
187
206
|
class ClassItem
|
188
207
|
# @private
|
189
208
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -284,6 +303,8 @@ module Google
|
|
284
303
|
property :request_id, :numeric_string => true, as: 'requestId'
|
285
304
|
collection :results, as: 'results', class: Google::Apis::SpeechV1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1::SpeechRecognitionResult::Representation
|
286
305
|
|
306
|
+
property :speech_adaptation_info, as: 'speechAdaptationInfo', class: Google::Apis::SpeechV1::SpeechAdaptationInfo, decorator: Google::Apis::SpeechV1::SpeechAdaptationInfo::Representation
|
307
|
+
|
287
308
|
property :total_billed_time, as: 'totalBilledTime'
|
288
309
|
end
|
289
310
|
end
|
@@ -385,6 +406,8 @@ module Google
|
|
385
406
|
property :request_id, :numeric_string => true, as: 'requestId'
|
386
407
|
collection :results, as: 'results', class: Google::Apis::SpeechV1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1::SpeechRecognitionResult::Representation
|
387
408
|
|
409
|
+
property :speech_adaptation_info, as: 'speechAdaptationInfo', class: Google::Apis::SpeechV1::SpeechAdaptationInfo, decorator: Google::Apis::SpeechV1::SpeechAdaptationInfo::Representation
|
410
|
+
|
388
411
|
property :total_billed_time, as: 'totalBilledTime'
|
389
412
|
end
|
390
413
|
end
|
@@ -402,6 +425,8 @@ module Google
|
|
402
425
|
class SpeechAdaptation
|
403
426
|
# @private
|
404
427
|
class Representation < Google::Apis::Core::JsonRepresentation
|
428
|
+
property :abnf_grammar, as: 'abnfGrammar', class: Google::Apis::SpeechV1::AbnfGrammar, decorator: Google::Apis::SpeechV1::AbnfGrammar::Representation
|
429
|
+
|
405
430
|
collection :custom_classes, as: 'customClasses', class: Google::Apis::SpeechV1::CustomClass, decorator: Google::Apis::SpeechV1::CustomClass::Representation
|
406
431
|
|
407
432
|
collection :phrase_set_references, as: 'phraseSetReferences'
|
@@ -410,6 +435,14 @@ module Google
|
|
410
435
|
end
|
411
436
|
end
|
412
437
|
|
438
|
+
class SpeechAdaptationInfo
|
439
|
+
# @private
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
441
|
+
property :adaptation_timeout, as: 'adaptationTimeout'
|
442
|
+
property :timeout_message, as: 'timeoutMessage'
|
443
|
+
end
|
444
|
+
end
|
445
|
+
|
413
446
|
class SpeechContext
|
414
447
|
# @private
|
415
448
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-speech_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.28.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-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.9.
|
19
|
+
version: 0.9.1
|
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.9.
|
29
|
+
version: 0.9.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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/main/generated/google-apis-speech_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1/v0.28.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-speech_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|