google-apis-speech_v1 0.26.0 → 0.27.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: 1ce90415816a873ab1f83107a11d86671c8be292499ab367e4e18260f7dec8ff
|
4
|
+
data.tar.gz: 7e88b9447b73b3b5269620c04c867a7d51a4c91522ac1c01617f8301d1f8c48a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93009545ea2e12a6f2ba410427118547b73e891679ae5f72f9b052ebbb275f790938888f90cd9173f08f5053ca2d0de2567ad255f1a4501d01afb412dff04d25
|
7
|
+
data.tar.gz: 45196c282f84c1a7adbed404b4d3400735d6ecfef02d7316dc5c5d1774fc06065901f64518f6ddca6c5ea86c39b84eb7d97f0d66139913f4a061b0135b18f64d
|
data/CHANGELOG.md
CHANGED
@@ -338,6 +338,11 @@ module Google
|
|
338
338
|
# @return [Array<Google::Apis::SpeechV1::SpeechRecognitionResult>]
|
339
339
|
attr_accessor :results
|
340
340
|
|
341
|
+
# Information on speech adaptation use in results
|
342
|
+
# Corresponds to the JSON property `speechAdaptationInfo`
|
343
|
+
# @return [Google::Apis::SpeechV1::SpeechAdaptationInfo]
|
344
|
+
attr_accessor :speech_adaptation_info
|
345
|
+
|
341
346
|
# When available, billed audio seconds for the corresponding request.
|
342
347
|
# Corresponds to the JSON property `totalBilledTime`
|
343
348
|
# @return [String]
|
@@ -353,6 +358,7 @@ module Google
|
|
353
358
|
@output_error = args[:output_error] if args.key?(:output_error)
|
354
359
|
@request_id = args[:request_id] if args.key?(:request_id)
|
355
360
|
@results = args[:results] if args.key?(:results)
|
361
|
+
@speech_adaptation_info = args[:speech_adaptation_info] if args.key?(:speech_adaptation_info)
|
356
362
|
@total_billed_time = args[:total_billed_time] if args.key?(:total_billed_time)
|
357
363
|
end
|
358
364
|
end
|
@@ -572,12 +578,11 @@ module Google
|
|
572
578
|
attr_accessor :alternative_language_codes
|
573
579
|
|
574
580
|
# 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'.
|
581
|
+
# CHANNEL recognition. Valid values for LINEAR16, OGG_OPUS and FLAC are `1`-`8`.
|
582
|
+
# Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`. If `
|
583
|
+
# 0` or omitted, defaults to one channel (mono). Note: We only recognize the
|
584
|
+
# first channel by default. To perform independent recognition on each channel
|
585
|
+
# set `enable_separate_recognition_per_channel` to 'true'.
|
581
586
|
# Corresponds to the JSON property `audioChannelCount`
|
582
587
|
# @return [Fixnum]
|
583
588
|
attr_accessor :audio_channel_count
|
@@ -870,6 +875,11 @@ module Google
|
|
870
875
|
# @return [Array<Google::Apis::SpeechV1::SpeechRecognitionResult>]
|
871
876
|
attr_accessor :results
|
872
877
|
|
878
|
+
# Information on speech adaptation use in results
|
879
|
+
# Corresponds to the JSON property `speechAdaptationInfo`
|
880
|
+
# @return [Google::Apis::SpeechV1::SpeechAdaptationInfo]
|
881
|
+
attr_accessor :speech_adaptation_info
|
882
|
+
|
873
883
|
# When available, billed audio seconds for the corresponding request.
|
874
884
|
# Corresponds to the JSON property `totalBilledTime`
|
875
885
|
# @return [String]
|
@@ -883,6 +893,7 @@ module Google
|
|
883
893
|
def update!(**args)
|
884
894
|
@request_id = args[:request_id] if args.key?(:request_id)
|
885
895
|
@results = args[:results] if args.key?(:results)
|
896
|
+
@speech_adaptation_info = args[:speech_adaptation_info] if args.key?(:speech_adaptation_info)
|
886
897
|
@total_billed_time = args[:total_billed_time] if args.key?(:total_billed_time)
|
887
898
|
end
|
888
899
|
end
|
@@ -967,6 +978,34 @@ module Google
|
|
967
978
|
end
|
968
979
|
end
|
969
980
|
|
981
|
+
# Information on speech adaptation use in results
|
982
|
+
class SpeechAdaptationInfo
|
983
|
+
include Google::Apis::Core::Hashable
|
984
|
+
|
985
|
+
# Whether there was a timeout when applying speech adaptation. If true,
|
986
|
+
# adaptation had no effect in the response transcript.
|
987
|
+
# Corresponds to the JSON property `adaptationTimeout`
|
988
|
+
# @return [Boolean]
|
989
|
+
attr_accessor :adaptation_timeout
|
990
|
+
alias_method :adaptation_timeout?, :adaptation_timeout
|
991
|
+
|
992
|
+
# If set, returns a message specifying which part of the speech adaptation
|
993
|
+
# request timed out.
|
994
|
+
# Corresponds to the JSON property `timeoutMessage`
|
995
|
+
# @return [String]
|
996
|
+
attr_accessor :timeout_message
|
997
|
+
|
998
|
+
def initialize(**args)
|
999
|
+
update!(**args)
|
1000
|
+
end
|
1001
|
+
|
1002
|
+
# Update properties of this object
|
1003
|
+
def update!(**args)
|
1004
|
+
@adaptation_timeout = args[:adaptation_timeout] if args.key?(:adaptation_timeout)
|
1005
|
+
@timeout_message = args[:timeout_message] if args.key?(:timeout_message)
|
1006
|
+
end
|
1007
|
+
end
|
1008
|
+
|
970
1009
|
# Provides "hints" to the speech recognizer to favor specific words and phrases
|
971
1010
|
# in the results.
|
972
1011
|
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.27.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 = "20221020"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -148,6 +148,12 @@ module Google
|
|
148
148
|
include Google::Apis::Core::JsonObjectSupport
|
149
149
|
end
|
150
150
|
|
151
|
+
class SpeechAdaptationInfo
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
151
157
|
class SpeechContext
|
152
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
159
|
|
@@ -284,6 +290,8 @@ module Google
|
|
284
290
|
property :request_id, :numeric_string => true, as: 'requestId'
|
285
291
|
collection :results, as: 'results', class: Google::Apis::SpeechV1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1::SpeechRecognitionResult::Representation
|
286
292
|
|
293
|
+
property :speech_adaptation_info, as: 'speechAdaptationInfo', class: Google::Apis::SpeechV1::SpeechAdaptationInfo, decorator: Google::Apis::SpeechV1::SpeechAdaptationInfo::Representation
|
294
|
+
|
287
295
|
property :total_billed_time, as: 'totalBilledTime'
|
288
296
|
end
|
289
297
|
end
|
@@ -385,6 +393,8 @@ module Google
|
|
385
393
|
property :request_id, :numeric_string => true, as: 'requestId'
|
386
394
|
collection :results, as: 'results', class: Google::Apis::SpeechV1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1::SpeechRecognitionResult::Representation
|
387
395
|
|
396
|
+
property :speech_adaptation_info, as: 'speechAdaptationInfo', class: Google::Apis::SpeechV1::SpeechAdaptationInfo, decorator: Google::Apis::SpeechV1::SpeechAdaptationInfo::Representation
|
397
|
+
|
388
398
|
property :total_billed_time, as: 'totalBilledTime'
|
389
399
|
end
|
390
400
|
end
|
@@ -410,6 +420,14 @@ module Google
|
|
410
420
|
end
|
411
421
|
end
|
412
422
|
|
423
|
+
class SpeechAdaptationInfo
|
424
|
+
# @private
|
425
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
426
|
+
property :adaptation_timeout, as: 'adaptationTimeout'
|
427
|
+
property :timeout_message, as: 'timeoutMessage'
|
428
|
+
end
|
429
|
+
end
|
430
|
+
|
413
431
|
class SpeechContext
|
414
432
|
# @private
|
415
433
|
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.27.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-10-31 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.27.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: []
|