google-apis-speech_v1p1beta1 0.29.0 → 0.31.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: 207e953f35327566c59494f5c36313115bb3385070fa0c613ee436ca95ab8c29
|
4
|
+
data.tar.gz: c7a56f54a8721310e661c0df77051dcdc17d1cf05356c1896ba11566d12c3eff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffb7c56236d7da08bc23bd964d0c0d76badf49dda428f7a6fd9117d70c3301c1dbbd41de011ef81fd6e2b87230772fdc096884a162ff029a07ac513ef7ded509
|
7
|
+
data.tar.gz: 0e737f7ca1d1c5caf0789136f51dca3fe10d302cb1c1009919e6a5f32cdb5909b5277c59a327139646ab744d888f4f495e172e698a0904b8555fe44eae4b38dd
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-speech_v1p1beta1
|
2
2
|
|
3
|
+
### v0.31.0 (2022-12-07)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20221202
|
6
|
+
|
7
|
+
### v0.30.0 (2022-10-27)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20221020
|
10
|
+
* Regenerated using generator version 0.11.0
|
11
|
+
|
3
12
|
### v0.29.0 (2022-09-20)
|
4
13
|
|
5
14
|
* Regenerated using generator version 0.10.0
|
@@ -22,6 +22,26 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module SpeechV1p1beta1
|
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
|
@@ -376,6 +396,11 @@ module Google
|
|
376
396
|
# @return [Array<Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult>]
|
377
397
|
attr_accessor :results
|
378
398
|
|
399
|
+
# Information on speech adaptation use in results
|
400
|
+
# Corresponds to the JSON property `speechAdaptationInfo`
|
401
|
+
# @return [Google::Apis::SpeechV1p1beta1::SpeechAdaptationInfo]
|
402
|
+
attr_accessor :speech_adaptation_info
|
403
|
+
|
379
404
|
# When available, billed audio seconds for the corresponding request.
|
380
405
|
# Corresponds to the JSON property `totalBilledTime`
|
381
406
|
# @return [String]
|
@@ -391,6 +416,7 @@ module Google
|
|
391
416
|
@output_error = args[:output_error] if args.key?(:output_error)
|
392
417
|
@request_id = args[:request_id] if args.key?(:request_id)
|
393
418
|
@results = args[:results] if args.key?(:results)
|
419
|
+
@speech_adaptation_info = args[:speech_adaptation_info] if args.key?(:speech_adaptation_info)
|
394
420
|
@total_billed_time = args[:total_billed_time] if args.key?(:total_billed_time)
|
395
421
|
end
|
396
422
|
end
|
@@ -610,12 +636,11 @@ module Google
|
|
610
636
|
attr_accessor :alternative_language_codes
|
611
637
|
|
612
638
|
# The number of channels in the input audio data. ONLY set this for MULTI-
|
613
|
-
# CHANNEL recognition. Valid values for LINEAR16 and FLAC are `1`-`8`.
|
614
|
-
#
|
615
|
-
#
|
616
|
-
#
|
617
|
-
#
|
618
|
-
# enable_separate_recognition_per_channel` to 'true'.
|
639
|
+
# CHANNEL recognition. Valid values for LINEAR16, OGG_OPUS and FLAC are `1`-`8`.
|
640
|
+
# Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`. If `
|
641
|
+
# 0` or omitted, defaults to one channel (mono). Note: We only recognize the
|
642
|
+
# first channel by default. To perform independent recognition on each channel
|
643
|
+
# set `enable_separate_recognition_per_channel` to 'true'.
|
619
644
|
# Corresponds to the JSON property `audioChannelCount`
|
620
645
|
# @return [Fixnum]
|
621
646
|
attr_accessor :audio_channel_count
|
@@ -941,6 +966,11 @@ module Google
|
|
941
966
|
# @return [Array<Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult>]
|
942
967
|
attr_accessor :results
|
943
968
|
|
969
|
+
# Information on speech adaptation use in results
|
970
|
+
# Corresponds to the JSON property `speechAdaptationInfo`
|
971
|
+
# @return [Google::Apis::SpeechV1p1beta1::SpeechAdaptationInfo]
|
972
|
+
attr_accessor :speech_adaptation_info
|
973
|
+
|
944
974
|
# When available, billed audio seconds for the corresponding request.
|
945
975
|
# Corresponds to the JSON property `totalBilledTime`
|
946
976
|
# @return [String]
|
@@ -954,6 +984,7 @@ module Google
|
|
954
984
|
def update!(**args)
|
955
985
|
@request_id = args[:request_id] if args.key?(:request_id)
|
956
986
|
@results = args[:results] if args.key?(:results)
|
987
|
+
@speech_adaptation_info = args[:speech_adaptation_info] if args.key?(:speech_adaptation_info)
|
957
988
|
@total_billed_time = args[:total_billed_time] if args.key?(:total_billed_time)
|
958
989
|
end
|
959
990
|
end
|
@@ -1006,6 +1037,13 @@ module Google
|
|
1006
1037
|
class SpeechAdaptation
|
1007
1038
|
include Google::Apis::Core::Hashable
|
1008
1039
|
|
1040
|
+
# Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised
|
1041
|
+
# by a set of derivation rules. See specifications: https://www.w3.org/TR/speech-
|
1042
|
+
# grammar
|
1043
|
+
# Corresponds to the JSON property `abnfGrammar`
|
1044
|
+
# @return [Google::Apis::SpeechV1p1beta1::AbnfGrammar]
|
1045
|
+
attr_accessor :abnf_grammar
|
1046
|
+
|
1009
1047
|
# A collection of custom classes. To specify the classes inline, leave the class'
|
1010
1048
|
# `name` blank and fill in the rest of its fields, giving it a unique `
|
1011
1049
|
# custom_class_id`. Refer to the inline defined class in phrase hints by its `
|
@@ -1032,12 +1070,41 @@ module Google
|
|
1032
1070
|
|
1033
1071
|
# Update properties of this object
|
1034
1072
|
def update!(**args)
|
1073
|
+
@abnf_grammar = args[:abnf_grammar] if args.key?(:abnf_grammar)
|
1035
1074
|
@custom_classes = args[:custom_classes] if args.key?(:custom_classes)
|
1036
1075
|
@phrase_set_references = args[:phrase_set_references] if args.key?(:phrase_set_references)
|
1037
1076
|
@phrase_sets = args[:phrase_sets] if args.key?(:phrase_sets)
|
1038
1077
|
end
|
1039
1078
|
end
|
1040
1079
|
|
1080
|
+
# Information on speech adaptation use in results
|
1081
|
+
class SpeechAdaptationInfo
|
1082
|
+
include Google::Apis::Core::Hashable
|
1083
|
+
|
1084
|
+
# Whether there was a timeout when applying speech adaptation. If true,
|
1085
|
+
# adaptation had no effect in the response transcript.
|
1086
|
+
# Corresponds to the JSON property `adaptationTimeout`
|
1087
|
+
# @return [Boolean]
|
1088
|
+
attr_accessor :adaptation_timeout
|
1089
|
+
alias_method :adaptation_timeout?, :adaptation_timeout
|
1090
|
+
|
1091
|
+
# If set, returns a message specifying which part of the speech adaptation
|
1092
|
+
# request timed out.
|
1093
|
+
# Corresponds to the JSON property `timeoutMessage`
|
1094
|
+
# @return [String]
|
1095
|
+
attr_accessor :timeout_message
|
1096
|
+
|
1097
|
+
def initialize(**args)
|
1098
|
+
update!(**args)
|
1099
|
+
end
|
1100
|
+
|
1101
|
+
# Update properties of this object
|
1102
|
+
def update!(**args)
|
1103
|
+
@adaptation_timeout = args[:adaptation_timeout] if args.key?(:adaptation_timeout)
|
1104
|
+
@timeout_message = args[:timeout_message] if args.key?(:timeout_message)
|
1105
|
+
end
|
1106
|
+
end
|
1107
|
+
|
1041
1108
|
# Provides "hints" to the speech recognizer to favor specific words and phrases
|
1042
1109
|
# in the results.
|
1043
1110
|
class SpeechContext
|
@@ -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.31.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 SpeechV1p1beta1
|
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
|
|
@@ -154,6 +160,12 @@ module Google
|
|
154
160
|
include Google::Apis::Core::JsonObjectSupport
|
155
161
|
end
|
156
162
|
|
163
|
+
class SpeechAdaptationInfo
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
157
169
|
class SpeechContext
|
158
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
171
|
|
@@ -196,6 +208,13 @@ module Google
|
|
196
208
|
include Google::Apis::Core::JsonObjectSupport
|
197
209
|
end
|
198
210
|
|
211
|
+
class AbnfGrammar
|
212
|
+
# @private
|
213
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
214
|
+
collection :abnf_strings, as: 'abnfStrings'
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
199
218
|
class ClassItem
|
200
219
|
# @private
|
201
220
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -307,6 +326,8 @@ module Google
|
|
307
326
|
property :request_id, :numeric_string => true, as: 'requestId'
|
308
327
|
collection :results, as: 'results', class: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult::Representation
|
309
328
|
|
329
|
+
property :speech_adaptation_info, as: 'speechAdaptationInfo', class: Google::Apis::SpeechV1p1beta1::SpeechAdaptationInfo, decorator: Google::Apis::SpeechV1p1beta1::SpeechAdaptationInfo::Representation
|
330
|
+
|
310
331
|
property :total_billed_time, as: 'totalBilledTime'
|
311
332
|
end
|
312
333
|
end
|
@@ -413,6 +434,8 @@ module Google
|
|
413
434
|
property :request_id, :numeric_string => true, as: 'requestId'
|
414
435
|
collection :results, as: 'results', class: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult::Representation
|
415
436
|
|
437
|
+
property :speech_adaptation_info, as: 'speechAdaptationInfo', class: Google::Apis::SpeechV1p1beta1::SpeechAdaptationInfo, decorator: Google::Apis::SpeechV1p1beta1::SpeechAdaptationInfo::Representation
|
438
|
+
|
416
439
|
property :total_billed_time, as: 'totalBilledTime'
|
417
440
|
end
|
418
441
|
end
|
@@ -430,6 +453,8 @@ module Google
|
|
430
453
|
class SpeechAdaptation
|
431
454
|
# @private
|
432
455
|
class Representation < Google::Apis::Core::JsonRepresentation
|
456
|
+
property :abnf_grammar, as: 'abnfGrammar', class: Google::Apis::SpeechV1p1beta1::AbnfGrammar, decorator: Google::Apis::SpeechV1p1beta1::AbnfGrammar::Representation
|
457
|
+
|
433
458
|
collection :custom_classes, as: 'customClasses', class: Google::Apis::SpeechV1p1beta1::CustomClass, decorator: Google::Apis::SpeechV1p1beta1::CustomClass::Representation
|
434
459
|
|
435
460
|
collection :phrase_set_references, as: 'phraseSetReferences'
|
@@ -438,6 +463,14 @@ module Google
|
|
438
463
|
end
|
439
464
|
end
|
440
465
|
|
466
|
+
class SpeechAdaptationInfo
|
467
|
+
# @private
|
468
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
469
|
+
property :adaptation_timeout, as: 'adaptationTimeout'
|
470
|
+
property :timeout_message, as: 'timeoutMessage'
|
471
|
+
end
|
472
|
+
end
|
473
|
+
|
441
474
|
class SpeechContext
|
442
475
|
# @private
|
443
476
|
class Representation < Google::Apis::Core::JsonRepresentation
|
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.31.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_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.31.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-speech_v1p1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|