google-cloud-speech-v2 0.13.1 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/speech/v2/cloud_speech_pb.rb +1 -1
- data/lib/google/cloud/speech/v2/speech/client.rb +44 -24
- data/lib/google/cloud/speech/v2/speech/operations.rb +12 -15
- data/lib/google/cloud/speech/v2/speech/rest/client.rb +44 -23
- data/lib/google/cloud/speech/v2/speech/rest/operations.rb +43 -38
- data/lib/google/cloud/speech/v2/speech/rest/service_stub.rb +190 -134
- data/lib/google/cloud/speech/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/cloud/speech/v2/cloud_speech.rb +39 -22
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +5 -5
@@ -405,27 +405,17 @@ module Google
|
|
405
405
|
# Required. Encoding of the audio data sent for recognition.
|
406
406
|
# @!attribute [rw] sample_rate_hertz
|
407
407
|
# @return [::Integer]
|
408
|
-
# Sample rate in Hertz of the audio data sent for recognition.
|
409
|
-
# values are: 8000-48000. 16000 is optimal. For best results, set the
|
408
|
+
# Optional. Sample rate in Hertz of the audio data sent for recognition.
|
409
|
+
# Valid values are: 8000-48000. 16000 is optimal. For best results, set the
|
410
410
|
# sampling rate of the audio source to 16000 Hz. If that's not possible, use
|
411
411
|
# the native sample rate of the audio source (instead of re-sampling).
|
412
|
-
#
|
413
|
-
#
|
414
|
-
# * LINEAR16: Headerless 16-bit signed little-endian PCM samples.
|
415
|
-
#
|
416
|
-
# * MULAW: Headerless 8-bit companded mulaw samples.
|
417
|
-
#
|
418
|
-
# * ALAW: Headerless 8-bit companded alaw samples.
|
412
|
+
# Note that this field is marked as OPTIONAL for backward compatibility
|
413
|
+
# reasons. It is (and has always been) effectively REQUIRED.
|
419
414
|
# @!attribute [rw] audio_channel_count
|
420
415
|
# @return [::Integer]
|
421
|
-
# Number of channels present in the audio data sent for
|
422
|
-
#
|
423
|
-
#
|
424
|
-
# * LINEAR16: Headerless 16-bit signed little-endian PCM samples.
|
425
|
-
#
|
426
|
-
# * MULAW: Headerless 8-bit companded mulaw samples.
|
427
|
-
#
|
428
|
-
# * ALAW: Headerless 8-bit companded alaw samples.
|
416
|
+
# Optional. Number of channels present in the audio data sent for
|
417
|
+
# recognition. Note that this field is marked as OPTIONAL for backward
|
418
|
+
# compatibility reasons. It is (and has always been) effectively REQUIRED.
|
429
419
|
#
|
430
420
|
# The maximum allowed value is 8.
|
431
421
|
class ExplicitDecodingConfig
|
@@ -445,6 +435,33 @@ module Google
|
|
445
435
|
|
446
436
|
# Headerless 8-bit companded alaw samples.
|
447
437
|
ALAW = 3
|
438
|
+
|
439
|
+
# AMR frames with an rfc4867.5 header.
|
440
|
+
AMR = 4
|
441
|
+
|
442
|
+
# AMR-WB frames with an rfc4867.5 header.
|
443
|
+
AMR_WB = 5
|
444
|
+
|
445
|
+
# FLAC frames in the "native FLAC" container format.
|
446
|
+
FLAC = 6
|
447
|
+
|
448
|
+
# MPEG audio frames with optional (ignored) ID3 metadata.
|
449
|
+
MP3 = 7
|
450
|
+
|
451
|
+
# Opus audio frames in an Ogg container.
|
452
|
+
OGG_OPUS = 8
|
453
|
+
|
454
|
+
# Opus audio frames in a WebM container.
|
455
|
+
WEBM_OPUS = 9
|
456
|
+
|
457
|
+
# AAC audio frames in an MP4 container.
|
458
|
+
MP4_AAC = 10
|
459
|
+
|
460
|
+
# AAC audio frames in an M4A container.
|
461
|
+
M4A_AAC = 11
|
462
|
+
|
463
|
+
# AAC audio frames in an MOV container.
|
464
|
+
MOV_AAC = 12
|
448
465
|
end
|
449
466
|
end
|
450
467
|
|
@@ -1047,16 +1064,16 @@ module Google
|
|
1047
1064
|
# @!attribute [rw] native
|
1048
1065
|
# @return [::Google::Cloud::Speech::V2::NativeOutputFileFormatConfig]
|
1049
1066
|
# Configuration for the native output format. If this field is set or if no
|
1050
|
-
# other output format field is set then transcripts will be written to the
|
1067
|
+
# other output format field is set, then transcripts will be written to the
|
1051
1068
|
# sink in the native format.
|
1052
1069
|
# @!attribute [rw] vtt
|
1053
1070
|
# @return [::Google::Cloud::Speech::V2::VttOutputFileFormatConfig]
|
1054
|
-
# Configuration for the
|
1055
|
-
# transcripts will be written to the sink in the
|
1071
|
+
# Configuration for the VTT output format. If this field is set, then
|
1072
|
+
# transcripts will be written to the sink in the VTT format.
|
1056
1073
|
# @!attribute [rw] srt
|
1057
1074
|
# @return [::Google::Cloud::Speech::V2::SrtOutputFileFormatConfig]
|
1058
|
-
# Configuration for the
|
1059
|
-
# transcripts will be written to the sink in the
|
1075
|
+
# Configuration for the SRT output format. If this field is set, then
|
1076
|
+
# transcripts will be written to the sink in the SRT format.
|
1060
1077
|
class OutputFormatConfig
|
1061
1078
|
include ::Google::Protobuf::MessageExts
|
1062
1079
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -42,7 +42,7 @@ module Google
|
|
42
42
|
# The error result of the operation in case of failure or cancellation.
|
43
43
|
# @!attribute [rw] response
|
44
44
|
# @return [::Google::Protobuf::Any]
|
45
|
-
# The normal response of the operation
|
45
|
+
# The normal, successful response of the operation. If the original
|
46
46
|
# method returns no data on success, such as `Delete`, the response is
|
47
47
|
# `google.protobuf.Empty`. If the original method is standard
|
48
48
|
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
@@ -55,7 +55,8 @@ module Google
|
|
55
55
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
56
56
|
end
|
57
57
|
|
58
|
-
# The request message for
|
58
|
+
# The request message for
|
59
|
+
# Operations.GetOperation.
|
59
60
|
# @!attribute [rw] name
|
60
61
|
# @return [::String]
|
61
62
|
# The name of the operation resource.
|
@@ -64,7 +65,8 @@ module Google
|
|
64
65
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
66
|
end
|
66
67
|
|
67
|
-
# The request message for
|
68
|
+
# The request message for
|
69
|
+
# Operations.ListOperations.
|
68
70
|
# @!attribute [rw] name
|
69
71
|
# @return [::String]
|
70
72
|
# The name of the operation's parent resource.
|
@@ -82,7 +84,8 @@ module Google
|
|
82
84
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
83
85
|
end
|
84
86
|
|
85
|
-
# The response message for
|
87
|
+
# The response message for
|
88
|
+
# Operations.ListOperations.
|
86
89
|
# @!attribute [rw] operations
|
87
90
|
# @return [::Array<::Google::Longrunning::Operation>]
|
88
91
|
# A list of operations that matches the specified filter in the request.
|
@@ -94,7 +97,8 @@ module Google
|
|
94
97
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
98
|
end
|
96
99
|
|
97
|
-
# The request message for
|
100
|
+
# The request message for
|
101
|
+
# Operations.CancelOperation.
|
98
102
|
# @!attribute [rw] name
|
99
103
|
# @return [::String]
|
100
104
|
# The name of the operation resource to be cancelled.
|
@@ -103,7 +107,8 @@ module Google
|
|
103
107
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
104
108
|
end
|
105
109
|
|
106
|
-
# The request message for
|
110
|
+
# The request message for
|
111
|
+
# Operations.DeleteOperation.
|
107
112
|
# @!attribute [rw] name
|
108
113
|
# @return [::String]
|
109
114
|
# The name of the operation resource to be deleted.
|
@@ -112,7 +117,8 @@ module Google
|
|
112
117
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
118
|
end
|
114
119
|
|
115
|
-
# The request message for
|
120
|
+
# The request message for
|
121
|
+
# Operations.WaitOperation.
|
116
122
|
# @!attribute [rw] name
|
117
123
|
# @return [::String]
|
118
124
|
# The name of the operation resource to wait on.
|
@@ -130,13 +136,12 @@ module Google
|
|
130
136
|
#
|
131
137
|
# Example:
|
132
138
|
#
|
133
|
-
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
# }
|
139
|
-
# }
|
139
|
+
# rpc Export(ExportRequest) returns (google.longrunning.Operation) {
|
140
|
+
# option (google.longrunning.operation_info) = {
|
141
|
+
# response_type: "ExportResponse"
|
142
|
+
# metadata_type: "ExportMetadata"
|
143
|
+
# };
|
144
|
+
# }
|
140
145
|
# @!attribute [rw] response_type
|
141
146
|
# @return [::String]
|
142
147
|
# Required. The message name of the primary return type for this
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-speech-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.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:
|
11
|
+
date: 2025-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.24.0
|
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.
|
29
|
+
version: 0.24.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
|
-
rubygems_version: 3.5.
|
135
|
+
rubygems_version: 3.5.23
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: Converts audio to text by applying powerful neural network models.
|