google-cloud-speech-v1p1beta1 0.12.3 → 0.12.4
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/lib/google/cloud/speech/v1p1beta1/adaptation/client.rb +6 -8
- data/lib/google/cloud/speech/v1p1beta1/cloud_speech_pb.rb +0 -1
- data/lib/google/cloud/speech/v1p1beta1/resource_pb.rb +0 -2
- data/lib/google/cloud/speech/v1p1beta1/version.rb +1 -1
- data/proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb +29 -21
- data/proto_docs/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.rb +6 -8
- 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: 694dfa9732ef834bde66f24416806136871811dafe181f690fb51ccdaa7e4fb7
|
|
4
|
+
data.tar.gz: 0f0c4e73321bd07dfcf80b6332584349a7056659a94066b83176ba4fd1ded2ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa0ba23e2c3a2c1f8d25928727beebf55cff4232c49569d90f51084d0087aa09d8024974991e4fb925db99948baf7aee48743503fce6f47294d6afbe117ea350
|
|
7
|
+
data.tar.gz: 12a9b8800d02f4ca0ee2fd0425791035548e81fef83ed1ef2ff83d8dc95433da221b5bb330d64a6acdc3182925e50431a423936b6484cec17b0769ff3d32cbf3
|
|
@@ -165,8 +165,7 @@ module Google
|
|
|
165
165
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
166
166
|
#
|
|
167
167
|
# @param parent [::String]
|
|
168
|
-
# Required. The parent resource where this phrase set will be created.
|
|
169
|
-
# Format:
|
|
168
|
+
# Required. The parent resource where this phrase set will be created. Format:
|
|
170
169
|
#
|
|
171
170
|
# `projects/{project}/locations/{location}/phraseSets`
|
|
172
171
|
#
|
|
@@ -179,8 +178,8 @@ module Google
|
|
|
179
178
|
# Required. The ID to use for the phrase set, which will become the final
|
|
180
179
|
# component of the phrase set's resource name.
|
|
181
180
|
#
|
|
182
|
-
# This value should
|
|
183
|
-
#
|
|
181
|
+
# This value should restrict to letters, numbers, and hyphens, with the first
|
|
182
|
+
# character a letter, the last a letter or a number, and be 4-63 characters.
|
|
184
183
|
# @param phrase_set [::Google::Cloud::Speech::V1p1beta1::PhraseSet, ::Hash]
|
|
185
184
|
# Required. The phrase set to create.
|
|
186
185
|
#
|
|
@@ -656,8 +655,7 @@ module Google
|
|
|
656
655
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
657
656
|
#
|
|
658
657
|
# @param parent [::String]
|
|
659
|
-
# Required. The parent resource where this custom class will be created.
|
|
660
|
-
# Format:
|
|
658
|
+
# Required. The parent resource where this custom class will be created. Format:
|
|
661
659
|
#
|
|
662
660
|
# `projects/{project}/locations/{location}/customClasses`
|
|
663
661
|
#
|
|
@@ -670,8 +668,8 @@ module Google
|
|
|
670
668
|
# Required. The ID to use for the custom class, which will become the final
|
|
671
669
|
# component of the custom class' resource name.
|
|
672
670
|
#
|
|
673
|
-
# This value should
|
|
674
|
-
#
|
|
671
|
+
# This value should restrict to letters, numbers, and hyphens, with the first
|
|
672
|
+
# character a letter, the last a letter or a number, and be 4-63 characters.
|
|
675
673
|
# @param custom_class [::Google::Cloud::Speech::V1p1beta1::CustomClass, ::Hash]
|
|
676
674
|
# Required. The custom class to create.
|
|
677
675
|
#
|
|
@@ -8,7 +8,6 @@ require 'google/api/client_pb'
|
|
|
8
8
|
require 'google/api/field_behavior_pb'
|
|
9
9
|
require 'google/cloud/speech/v1p1beta1/resource_pb'
|
|
10
10
|
require 'google/longrunning/operations_pb'
|
|
11
|
-
require 'google/protobuf/any_pb'
|
|
12
11
|
require 'google/protobuf/duration_pb'
|
|
13
12
|
require 'google/protobuf/timestamp_pb'
|
|
14
13
|
require 'google/protobuf/wrappers_pb'
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
require 'google/protobuf'
|
|
5
5
|
|
|
6
6
|
require 'google/api/resource_pb'
|
|
7
|
-
require 'google/protobuf/timestamp_pb'
|
|
8
|
-
require 'google/api/annotations_pb'
|
|
9
7
|
|
|
10
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
11
9
|
add_file("google/cloud/speech/v1p1beta1/resource.proto", :syntax => :proto3) do
|
|
@@ -133,8 +133,7 @@ module Google
|
|
|
133
133
|
# @return [::Google::Cloud::Speech::V1p1beta1::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
|
|
137
|
-
# {::Google::Cloud::Speech::V1p1beta1::RecognitionConfig::AudioEncoding AudioEncoding}.
|
|
136
|
+
# for all other audio formats. For details, see {::Google::Cloud::Speech::V1p1beta1::RecognitionConfig::AudioEncoding AudioEncoding}.
|
|
138
137
|
# @!attribute [rw] sample_rate_hertz
|
|
139
138
|
# @return [::Integer]
|
|
140
139
|
# Sample rate in Hertz of the audio data sent in all
|
|
@@ -143,8 +142,7 @@ module Google
|
|
|
143
142
|
# source to 16000 Hz. If that's not possible, use the native sample rate of
|
|
144
143
|
# the audio source (instead of re-sampling).
|
|
145
144
|
# This field is optional for FLAC and WAV audio files, but is
|
|
146
|
-
# required for all other audio formats. For details, see
|
|
147
|
-
# {::Google::Cloud::Speech::V1p1beta1::RecognitionConfig::AudioEncoding AudioEncoding}.
|
|
145
|
+
# required for all other audio formats. For details, see {::Google::Cloud::Speech::V1p1beta1::RecognitionConfig::AudioEncoding AudioEncoding}.
|
|
148
146
|
# @!attribute [rw] audio_channel_count
|
|
149
147
|
# @return [::Integer]
|
|
150
148
|
# The number of channels in the input audio data.
|
|
@@ -319,6 +317,16 @@ module Google
|
|
|
319
317
|
# For example, long-form audio. Ideally the audio is high-fidelity,
|
|
320
318
|
# recorded at a 16khz or greater sampling rate.</td>
|
|
321
319
|
# </tr>
|
|
320
|
+
# <tr>
|
|
321
|
+
# <td><code>medical_conversation</code></td>
|
|
322
|
+
# <td>Best for audio that originated from a conversation between a
|
|
323
|
+
# medical provider and patient.</td>
|
|
324
|
+
# </tr>
|
|
325
|
+
# <tr>
|
|
326
|
+
# <td><code>medical_dictation</code></td>
|
|
327
|
+
# <td>Best for audio that originated from dictation notes by a medical
|
|
328
|
+
# provider.</td>
|
|
329
|
+
# </tr>
|
|
322
330
|
# </table>
|
|
323
331
|
# @!attribute [rw] use_enhanced
|
|
324
332
|
# @return [::Boolean]
|
|
@@ -356,8 +364,7 @@ module Google
|
|
|
356
364
|
# an `AudioEncoding` when you send send `FLAC` or `WAV` audio, the
|
|
357
365
|
# encoding configuration must match the encoding described in the audio
|
|
358
366
|
# header; otherwise the request returns an
|
|
359
|
-
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error
|
|
360
|
-
# code.
|
|
367
|
+
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error code.
|
|
361
368
|
module AudioEncoding
|
|
362
369
|
# Not specified.
|
|
363
370
|
ENCODING_UNSPECIFIED = 0
|
|
@@ -606,8 +613,8 @@ module Google
|
|
|
606
613
|
|
|
607
614
|
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
|
608
615
|
# Either `content` or `uri` must be supplied. Supplying both or neither
|
|
609
|
-
# returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
|
|
610
|
-
#
|
|
616
|
+
# returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See
|
|
617
|
+
# [content limits](https://cloud.google.com/speech-to-text/quotas#content).
|
|
611
618
|
# @!attribute [rw] content
|
|
612
619
|
# @return [::String]
|
|
613
620
|
# The audio data bytes encoded as specified in
|
|
@@ -620,9 +627,8 @@ module Google
|
|
|
620
627
|
# Currently, only Google Cloud Storage URIs are
|
|
621
628
|
# supported, which must be specified in the following format:
|
|
622
629
|
# `gs://bucket_name/object_name` (other URI formats return
|
|
623
|
-
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
|
|
624
|
-
#
|
|
625
|
-
# URIs](https://cloud.google.com/storage/docs/reference-uris).
|
|
630
|
+
# [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
|
|
631
|
+
# [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
|
|
626
632
|
class RecognitionAudio
|
|
627
633
|
include ::Google::Protobuf::MessageExts
|
|
628
634
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -681,12 +687,11 @@ module Google
|
|
|
681
687
|
# Time of the most recent processing update.
|
|
682
688
|
# @!attribute [r] uri
|
|
683
689
|
# @return [::String]
|
|
684
|
-
# Output only. The URI of the audio file being transcribed. Empty if the
|
|
685
|
-
#
|
|
690
|
+
# Output only. The URI of the audio file being transcribed. Empty if the audio was sent
|
|
691
|
+
# as byte content.
|
|
686
692
|
# @!attribute [r] output_config
|
|
687
693
|
# @return [::Google::Cloud::Speech::V1p1beta1::TranscriptOutputConfig]
|
|
688
|
-
# Output only. A copy of the TranscriptOutputConfig if it was set in the
|
|
689
|
-
# request.
|
|
694
|
+
# Output only. A copy of the TranscriptOutputConfig if it was set in the request.
|
|
690
695
|
class LongRunningRecognizeMetadata
|
|
691
696
|
include ::Google::Protobuf::MessageExts
|
|
692
697
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -811,9 +816,9 @@ module Google
|
|
|
811
816
|
# For audio_channel_count = N, its output values can range from '1' to 'N'.
|
|
812
817
|
# @!attribute [r] language_code
|
|
813
818
|
# @return [::String]
|
|
814
|
-
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
|
|
815
|
-
#
|
|
816
|
-
#
|
|
819
|
+
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
|
|
820
|
+
# of the language in this result. This language code was detected to have
|
|
821
|
+
# the most likelihood of being spoken in the audio.
|
|
817
822
|
class StreamingRecognitionResult
|
|
818
823
|
include ::Google::Protobuf::MessageExts
|
|
819
824
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -837,9 +842,9 @@ module Google
|
|
|
837
842
|
# beginning of the audio.
|
|
838
843
|
# @!attribute [r] language_code
|
|
839
844
|
# @return [::String]
|
|
840
|
-
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
|
|
841
|
-
#
|
|
842
|
-
#
|
|
845
|
+
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
|
|
846
|
+
# of the language in this result. This language code was detected to have
|
|
847
|
+
# the most likelihood of being spoken in the audio.
|
|
843
848
|
class SpeechRecognitionResult
|
|
844
849
|
include ::Google::Protobuf::MessageExts
|
|
845
850
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -849,6 +854,9 @@ module Google
|
|
|
849
854
|
# @!attribute [rw] transcript
|
|
850
855
|
# @return [::String]
|
|
851
856
|
# Transcript text representing the words that the user spoke.
|
|
857
|
+
# In languages that use spaces to separate words, the transcript might have a
|
|
858
|
+
# leading space if it isn't the first result. You can concatenate each result
|
|
859
|
+
# to obtain the full transcript without using a separator.
|
|
852
860
|
# @!attribute [rw] confidence
|
|
853
861
|
# @return [::Float]
|
|
854
862
|
# The confidence estimate between 0.0 and 1.0. A higher number
|
|
@@ -24,8 +24,7 @@ module Google
|
|
|
24
24
|
# Message sent by the client for the `CreatePhraseSet` method.
|
|
25
25
|
# @!attribute [rw] parent
|
|
26
26
|
# @return [::String]
|
|
27
|
-
# Required. The parent resource where this phrase set will be created.
|
|
28
|
-
# Format:
|
|
27
|
+
# Required. The parent resource where this phrase set will be created. Format:
|
|
29
28
|
#
|
|
30
29
|
# `projects/{project}/locations/{location}/phraseSets`
|
|
31
30
|
#
|
|
@@ -39,8 +38,8 @@ module Google
|
|
|
39
38
|
# Required. The ID to use for the phrase set, which will become the final
|
|
40
39
|
# component of the phrase set's resource name.
|
|
41
40
|
#
|
|
42
|
-
# This value should
|
|
43
|
-
#
|
|
41
|
+
# This value should restrict to letters, numbers, and hyphens, with the first
|
|
42
|
+
# character a letter, the last a letter or a number, and be 4-63 characters.
|
|
44
43
|
# @!attribute [rw] phrase_set
|
|
45
44
|
# @return [::Google::Cloud::Speech::V1p1beta1::PhraseSet]
|
|
46
45
|
# Required. The phrase set to create.
|
|
@@ -146,8 +145,7 @@ module Google
|
|
|
146
145
|
# Message sent by the client for the `CreateCustomClass` method.
|
|
147
146
|
# @!attribute [rw] parent
|
|
148
147
|
# @return [::String]
|
|
149
|
-
# Required. The parent resource where this custom class will be created.
|
|
150
|
-
# Format:
|
|
148
|
+
# Required. The parent resource where this custom class will be created. Format:
|
|
151
149
|
#
|
|
152
150
|
# `projects/{project}/locations/{location}/customClasses`
|
|
153
151
|
#
|
|
@@ -161,8 +159,8 @@ module Google
|
|
|
161
159
|
# Required. The ID to use for the custom class, which will become the final
|
|
162
160
|
# component of the custom class' resource name.
|
|
163
161
|
#
|
|
164
|
-
# This value should
|
|
165
|
-
#
|
|
162
|
+
# This value should restrict to letters, numbers, and hyphens, with the first
|
|
163
|
+
# character a letter, the last a letter or a number, and be 4-63 characters.
|
|
166
164
|
# @!attribute [rw] custom_class
|
|
167
165
|
# @return [::Google::Cloud::Speech::V1p1beta1::CustomClass]
|
|
168
166
|
# Required. The custom class to create.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-speech-v1p1beta1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.12.
|
|
4
|
+
version: 0.12.4
|
|
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-05-
|
|
11
|
+
date: 2022-05-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|