lib/google/cloud/speech/v1/cloud_speech_pb.rb in google-cloud-speech-0.25.0 vs lib/google/cloud/speech/v1/cloud_speech_pb.rb in google-cloud-speech-0.26.0
- old
+ new
@@ -34,10 +34,11 @@
optional :sample_rate_hertz, :int32, 2
optional :language_code, :string, 3
optional :max_alternatives, :int32, 4
optional :profanity_filter, :bool, 5
repeated :speech_contexts, :message, 6, "google.cloud.speech.v1.SpeechContext"
+ optional :enable_word_time_offsets, :bool, 8
end
add_enum "google.cloud.speech.v1.RecognitionConfig.AudioEncoding" do
value :ENCODING_UNSPECIFIED, 0
value :LINEAR16, 1
value :FLAC, 2
@@ -85,11 +86,17 @@
repeated :alternatives, :message, 1, "google.cloud.speech.v1.SpeechRecognitionAlternative"
end
add_message "google.cloud.speech.v1.SpeechRecognitionAlternative" do
optional :transcript, :string, 1
optional :confidence, :float, 2
+ repeated :words, :message, 3, "google.cloud.speech.v1.WordInfo"
end
+ add_message "google.cloud.speech.v1.WordInfo" do
+ optional :start_time, :message, 1, "google.protobuf.Duration"
+ optional :end_time, :message, 2, "google.protobuf.Duration"
+ optional :word, :string, 3
+ end
end
module Google
module Cloud
module Speech
@@ -108,9 +115,10 @@
StreamingRecognizeResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1.StreamingRecognizeResponse").msgclass
StreamingRecognizeResponse::SpeechEventType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType").enummodule
StreamingRecognitionResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1.StreamingRecognitionResult").msgclass
SpeechRecognitionResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1.SpeechRecognitionResult").msgclass
SpeechRecognitionAlternative = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1.SpeechRecognitionAlternative").msgclass
+ WordInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v1.WordInfo").msgclass
end
end
end
end