google-cloud-speech-v1p1beta1 0.10.1 → 0.11.0
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/v1p1beta1/cloud_speech_pb.rb +1 -0
- data/lib/google/cloud/speech/v1p1beta1/resource_pb.rb +11 -0
- data/lib/google/cloud/speech/v1p1beta1/version.rb +1 -1
- data/proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb +6 -0
- data/proto_docs/google/cloud/speech/v1p1beta1/resource.rb +30 -0
- 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: 3d2d936a6d4c70c9577e5c3071cded47b5310578326e2b099c29a817e47f963f
|
4
|
+
data.tar.gz: c3164937074233e529d5ec464ef7c98a5bfd2f3243f3f29fd836d74c20dee3d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56a8778e17b5951a7ef6c91902ba2a9a190790e8cb45d46741ca712a4eacc5ea8954522dcbecf0772eeb7878fae5b10b7c34333ad5ec7ce6d7e984d852b3d930
|
7
|
+
data.tar.gz: 6037bf2e2e1d281df5a6274ca5febbd755b8d4fd8b7d4ec1f62c6664865a1494e48d552b413c8b2541d2518151685170e446ea89f10028bb91359fe9243cbc03
|
@@ -50,6 +50,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
50
50
|
optional :max_alternatives, :int32, 4
|
51
51
|
optional :profanity_filter, :bool, 5
|
52
52
|
optional :adaptation, :message, 20, "google.cloud.speech.v1p1beta1.SpeechAdaptation"
|
53
|
+
optional :transcript_normalization, :message, 24, "google.cloud.speech.v1p1beta1.TranscriptNormalization"
|
53
54
|
repeated :speech_contexts, :message, 6, "google.cloud.speech.v1p1beta1.SpeechContext"
|
54
55
|
optional :enable_word_time_offsets, :bool, 8
|
55
56
|
optional :enable_word_confidence, :bool, 15
|
@@ -4,6 +4,7 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
require 'google/api/resource_pb'
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
7
8
|
require 'google/api/annotations_pb'
|
8
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
10
|
add_file("google/cloud/speech/v1p1beta1/resource.proto", :syntax => :proto3) do
|
@@ -29,6 +30,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
29
30
|
repeated :phrase_set_references, :string, 2
|
30
31
|
repeated :custom_classes, :message, 3, "google.cloud.speech.v1p1beta1.CustomClass"
|
31
32
|
end
|
33
|
+
add_message "google.cloud.speech.v1p1beta1.TranscriptNormalization" do
|
34
|
+
repeated :entries, :message, 1, "google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry"
|
35
|
+
end
|
36
|
+
add_message "google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry" do
|
37
|
+
optional :search, :string, 1
|
38
|
+
optional :replace, :string, 2
|
39
|
+
optional :case_sensitive, :bool, 3
|
40
|
+
end
|
32
41
|
end
|
33
42
|
end
|
34
43
|
|
@@ -41,6 +50,8 @@ module Google
|
|
41
50
|
PhraseSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.PhraseSet").msgclass
|
42
51
|
PhraseSet::Phrase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.PhraseSet.Phrase").msgclass
|
43
52
|
SpeechAdaptation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.SpeechAdaptation").msgclass
|
53
|
+
TranscriptNormalization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.TranscriptNormalization").msgclass
|
54
|
+
TranscriptNormalization::Entry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry").msgclass
|
44
55
|
end
|
45
56
|
end
|
46
57
|
end
|
@@ -205,6 +205,12 @@ module Google
|
|
205
205
|
# `speech_contexts` field. For more information, see the [speech
|
206
206
|
# adaptation](https://cloud.google.com/speech-to-text/docs/adaptation)
|
207
207
|
# documentation.
|
208
|
+
# @!attribute [rw] transcript_normalization
|
209
|
+
# @return [::Google::Cloud::Speech::V1p1beta1::TranscriptNormalization]
|
210
|
+
# Use transcription normalization to automatically replace parts of the
|
211
|
+
# transcript with phrases of your choosing. For StreamingRecognize, this
|
212
|
+
# normalization only applies to stable partial transcripts (stability > 0.8)
|
213
|
+
# and final transcripts.
|
208
214
|
# @!attribute [rw] speech_contexts
|
209
215
|
# @return [::Array<::Google::Cloud::Speech::V1p1beta1::SpeechContext>]
|
210
216
|
# Array of {::Google::Cloud::Speech::V1p1beta1::SpeechContext SpeechContext}.
|
@@ -130,6 +130,36 @@ module Google
|
|
130
130
|
include ::Google::Protobuf::MessageExts
|
131
131
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
132
132
|
end
|
133
|
+
|
134
|
+
# Transcription normalization configuration. Use transcription normalization
|
135
|
+
# to automatically replace parts of the transcript with phrases of your
|
136
|
+
# choosing. For StreamingRecognize, this normalization only applies to stable
|
137
|
+
# partial transcripts (stability > 0.8) and final transcripts.
|
138
|
+
# @!attribute [rw] entries
|
139
|
+
# @return [::Array<::Google::Cloud::Speech::V1p1beta1::TranscriptNormalization::Entry>]
|
140
|
+
# A list of replacement entries. We will perform replacement with one entry
|
141
|
+
# at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
|
142
|
+
# => "mountain dog"] will never be applied because we will always process the
|
143
|
+
# first entry before it. At most 100 entries.
|
144
|
+
class TranscriptNormalization
|
145
|
+
include ::Google::Protobuf::MessageExts
|
146
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
147
|
+
|
148
|
+
# A single replacement configuration.
|
149
|
+
# @!attribute [rw] search
|
150
|
+
# @return [::String]
|
151
|
+
# What to replace. Max length is 100 characters.
|
152
|
+
# @!attribute [rw] replace
|
153
|
+
# @return [::String]
|
154
|
+
# What to replace with. Max length is 100 characters.
|
155
|
+
# @!attribute [rw] case_sensitive
|
156
|
+
# @return [::Boolean]
|
157
|
+
# Whether the search is case sensitive.
|
158
|
+
class Entry
|
159
|
+
include ::Google::Protobuf::MessageExts
|
160
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
161
|
+
end
|
162
|
+
end
|
133
163
|
end
|
134
164
|
end
|
135
165
|
end
|
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.
|
4
|
+
version: 0.11.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: 2021-08-
|
11
|
+
date: 2021-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|