google-cloud-speech-v1 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/speech/v1/cloud_speech_pb.rb +2 -1
- data/lib/google/cloud/speech/v1/resource_pb.rb +2 -1
- data/lib/google/cloud/speech/v1/version.rb +1 -1
- data/proto_docs/google/cloud/speech/v1/cloud_speech.rb +32 -15
- data/proto_docs/google/protobuf/any.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9704d715d6ee3240fdd999ec6573703099c998a6bcc9fa24da6245b748c2262
|
4
|
+
data.tar.gz: 3b3464522f9039b8defd055f8c542c8a3752c45caeb6b3db056da261a3ab6174
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09cf1cbd69314a5e96e88764d86dac7cab54445d22d10e50e924715b5dbdaa473b3d928e99eb3492940f84c342845322db02f74aeb16aafc299a537d13c0ab98'
|
7
|
+
data.tar.gz: 8828db4f693acaac725ce5fc61e56ee2220963b4152450359c66b89392013f89604883754ba4731f5d62ca4ff62825b7249e68c0dbdb1874ce4525a55263f9f5
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/speech/v1/cloud_speech.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
@@ -10,7 +12,6 @@ require 'google/protobuf/duration_pb'
|
|
10
12
|
require 'google/protobuf/timestamp_pb'
|
11
13
|
require 'google/protobuf/wrappers_pb'
|
12
14
|
require 'google/rpc/status_pb'
|
13
|
-
require 'google/protobuf'
|
14
15
|
|
15
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
17
|
add_file("google/cloud/speech/v1/cloud_speech.proto", :syntax => :proto3) do
|
@@ -1,9 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/speech/v1/resource.proto
|
3
3
|
|
4
|
-
require 'google/api/resource_pb'
|
5
4
|
require 'google/protobuf'
|
6
5
|
|
6
|
+
require 'google/api/resource_pb'
|
7
|
+
|
7
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
9
|
add_file("google/cloud/speech/v1/resource.proto", :syntax => :proto3) do
|
9
10
|
add_message "google.cloud.speech.v1.CustomClass" do
|
@@ -133,7 +133,8 @@ module Google
|
|
133
133
|
# @return [::Google::Cloud::Speech::V1::RecognitionConfig::AudioEncoding]
|
134
134
|
# Encoding of audio data sent in all `RecognitionAudio` messages.
|
135
135
|
# This field is optional for `FLAC` and `WAV` audio files and required
|
136
|
-
# for all other audio formats. For details, see
|
136
|
+
# for all other audio formats. For details, see
|
137
|
+
# {::Google::Cloud::Speech::V1::RecognitionConfig::AudioEncoding AudioEncoding}.
|
137
138
|
# @!attribute [rw] sample_rate_hertz
|
138
139
|
# @return [::Integer]
|
139
140
|
# Sample rate in Hertz of the audio data sent in all
|
@@ -142,7 +143,8 @@ module Google
|
|
142
143
|
# source to 16000 Hz. If that's not possible, use the native sample rate of
|
143
144
|
# the audio source (instead of re-sampling).
|
144
145
|
# This field is optional for FLAC and WAV audio files, but is
|
145
|
-
# required for all other audio formats. For details, see
|
146
|
+
# required for all other audio formats. For details, see
|
147
|
+
# {::Google::Cloud::Speech::V1::RecognitionConfig::AudioEncoding AudioEncoding}.
|
146
148
|
# @!attribute [rw] audio_channel_count
|
147
149
|
# @return [::Integer]
|
148
150
|
# The number of channels in the input audio data.
|
@@ -270,6 +272,19 @@ module Google
|
|
270
272
|
# <td><b>Description</b></td>
|
271
273
|
# </tr>
|
272
274
|
# <tr>
|
275
|
+
# <td><code>latest_long</code></td>
|
276
|
+
# <td>Best for long form content like media or conversation.</td>
|
277
|
+
# </tr>
|
278
|
+
# <tr>
|
279
|
+
# <td><code>latest_short</code></td>
|
280
|
+
# <td>Best for short form content like commands or single shot directed
|
281
|
+
# speech.</td>
|
282
|
+
# </tr>
|
283
|
+
# <tr>
|
284
|
+
# <td><code>command_and_search</code></td>
|
285
|
+
# <td>Best for short queries such as voice commands or voice search.</td>
|
286
|
+
# </tr>
|
287
|
+
# <tr>
|
273
288
|
# <td><code>command_and_search</code></td>
|
274
289
|
# <td>Best for short queries such as voice commands or voice search.</td>
|
275
290
|
# </tr>
|
@@ -328,7 +343,8 @@ module Google
|
|
328
343
|
# an `AudioEncoding` when you send send `FLAC` or `WAV` audio, the
|
329
344
|
# encoding configuration must match the encoding described in the audio
|
330
345
|
# header; otherwise the request returns an
|
331
|
-
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error
|
346
|
+
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error
|
347
|
+
# code.
|
332
348
|
module AudioEncoding
|
333
349
|
# Not specified.
|
334
350
|
ENCODING_UNSPECIFIED = 0
|
@@ -567,8 +583,8 @@ module Google
|
|
567
583
|
|
568
584
|
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
569
585
|
# Either `content` or `uri` must be supplied. Supplying both or neither
|
570
|
-
# returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
|
571
|
-
# [content limits](https://cloud.google.com/speech-to-text/quotas#content).
|
586
|
+
# returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
|
587
|
+
# See [content limits](https://cloud.google.com/speech-to-text/quotas#content).
|
572
588
|
# @!attribute [rw] content
|
573
589
|
# @return [::String]
|
574
590
|
# The audio data bytes encoded as specified in
|
@@ -581,8 +597,9 @@ module Google
|
|
581
597
|
# Currently, only Google Cloud Storage URIs are
|
582
598
|
# supported, which must be specified in the following format:
|
583
599
|
# `gs://bucket_name/object_name` (other URI formats return
|
584
|
-
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
|
585
|
-
# [Request
|
600
|
+
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
|
601
|
+
# For more information, see [Request
|
602
|
+
# URIs](https://cloud.google.com/storage/docs/reference-uris).
|
586
603
|
class RecognitionAudio
|
587
604
|
include ::Google::Protobuf::MessageExts
|
588
605
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -641,8 +658,8 @@ module Google
|
|
641
658
|
# Time of the most recent processing update.
|
642
659
|
# @!attribute [r] uri
|
643
660
|
# @return [::String]
|
644
|
-
# Output only. The URI of the audio file being transcribed. Empty if the
|
645
|
-
# as byte content.
|
661
|
+
# Output only. The URI of the audio file being transcribed. Empty if the
|
662
|
+
# audio was sent as byte content.
|
646
663
|
class LongRunningRecognizeMetadata
|
647
664
|
include ::Google::Protobuf::MessageExts
|
648
665
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -767,9 +784,9 @@ module Google
|
|
767
784
|
# For audio_channel_count = N, its output values can range from '1' to 'N'.
|
768
785
|
# @!attribute [r] language_code
|
769
786
|
# @return [::String]
|
770
|
-
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
|
771
|
-
# of the language in this result. This language code was
|
772
|
-
# the most likelihood of being spoken in the audio.
|
787
|
+
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
|
788
|
+
# language tag of the language in this result. This language code was
|
789
|
+
# detected to have the most likelihood of being spoken in the audio.
|
773
790
|
class StreamingRecognitionResult
|
774
791
|
include ::Google::Protobuf::MessageExts
|
775
792
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -793,9 +810,9 @@ module Google
|
|
793
810
|
# beginning of the audio.
|
794
811
|
# @!attribute [r] language_code
|
795
812
|
# @return [::String]
|
796
|
-
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
|
797
|
-
# of the language in this result. This language code was
|
798
|
-
# the most likelihood of being spoken in the audio.
|
813
|
+
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
|
814
|
+
# language tag of the language in this result. This language code was
|
815
|
+
# detected to have the most likelihood of being spoken in the audio.
|
799
816
|
class SpeechRecognitionResult
|
800
817
|
include ::Google::Protobuf::MessageExts
|
801
818
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# Example 3: Pack and unpack a message in Python.
|
48
48
|
#
|
49
49
|
# foo = Foo(...)
|
50
50
|
# any = Any()
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# any.Unpack(foo)
|
55
55
|
# ...
|
56
56
|
#
|
57
|
-
#
|
57
|
+
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
60
|
# any, err := anypb.New(foo)
|
@@ -75,7 +75,7 @@ module Google
|
|
75
75
|
#
|
76
76
|
#
|
77
77
|
# JSON
|
78
|
-
#
|
78
|
+
#
|
79
79
|
# The JSON representation of an `Any` value uses the regular
|
80
80
|
# representation of the deserialized, embedded message, with an
|
81
81
|
# additional field `@type` which contains the type URL. Example:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-speech-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
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-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|