google-cloud-speech-v2 0.5.1 → 0.7.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/v2/cloud_speech_pb.rb +1 -1
- data/lib/google/cloud/speech/v2/speech/client.rb +16 -3
- data/lib/google/cloud/speech/v2/speech/operations.rb +10 -1
- data/lib/google/cloud/speech/v2/speech/rest/client.rb +461 -2
- data/lib/google/cloud/speech/v2/speech/rest/operations.rb +75 -0
- data/lib/google/cloud/speech/v2/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/speech/v2/cloud_speech.rb +50 -19
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b95b8221216b4904c62396a4ab6e2f7736492a919db18a6828909e1a6f63cd0
|
4
|
+
data.tar.gz: fa34c98b4ea88783faaed06fcc9a62d7a05ebeeba2c4b6e759f4aa6cf629b03a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99e60ddac960c810190d1b124e54fb4c97347aa7533b8dbaf9395afe53325f0a0802c4bbe03a64cd9936140ba3a186a9faaaf6279a74d08ab4105c4767d5cf71
|
7
|
+
data.tar.gz: 629389dbd64a340304c13f0b76398187f8f4a5efab2b44f108fc39bc4917171f7455c287825c9751aa282faaefb0317c4ac60961dad1e5fca1d10e5e458a6765
|
@@ -15,7 +15,7 @@ require 'google/protobuf/timestamp_pb'
|
|
15
15
|
require 'google/rpc/status_pb'
|
16
16
|
|
17
17
|
|
18
|
-
descriptor_data = "\n)google/cloud/speech/v2/cloud_speech.proto\x12\x16google.cloud.speech.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xbe\x01\n\x17\x43reateRecognizerRequest\x12;\n\nrecognizer\x18\x01 \x01(\x0b\x32\".google.cloud.speech.v2.RecognizerB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x15\n\rrecognizer_id\x18\x03 \x01(\t\x12\x38\n\x06parent\x18\x04 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 speech.googleapis.com/Recognizer\"\xe7\x0c\n\x11OperationMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08resource\x18\x03 \x01(\t\x12\x0e\n\x06method\x18\x04 \x01(\t\x12<\n\x0ckms_key_name\x18\x06 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12K\n\x14kms_key_version_name\x18\x07 \x01(\tB-\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\x12P\n\x17\x62\x61tch_recognize_request\x18\x08 \x01(\x0b\x32-.google.cloud.speech.v2.BatchRecognizeRequestH\x00\x12T\n\x19\x63reate_recognizer_request\x18\t \x01(\x0b\x32/.google.cloud.speech.v2.CreateRecognizerRequestH\x00\x12T\n\x19update_recognizer_request\x18\n \x01(\x0b\x32/.google.cloud.speech.v2.UpdateRecognizerRequestH\x00\x12T\n\x19\x64\x65lete_recognizer_request\x18\x0b \x01(\x0b\x32/.google.cloud.speech.v2.DeleteRecognizerRequestH\x00\x12X\n\x1bundelete_recognizer_request\x18\x0c \x01(\x0b\x32\x31.google.cloud.speech.v2.UndeleteRecognizerRequestH\x00\x12W\n\x1b\x63reate_custom_class_request\x18\r \x01(\x0b\x32\x30.google.cloud.speech.v2.CreateCustomClassRequestH\x00\x12W\n\x1bupdate_custom_class_request\x18\x0e \x01(\x0b\x32\x30.google.cloud.speech.v2.UpdateCustomClassRequestH\x00\x12W\n\x1b\x64\x65lete_custom_class_request\x18\x0f \x01(\x0b\x32\x30.google.cloud.speech.v2.DeleteCustomClassRequestH\x00\x12[\n\x1dundelete_custom_class_request\x18\x10 \x01(\x0b\x32\x32.google.cloud.speech.v2.UndeleteCustomClassRequestH\x00\x12S\n\x19\x63reate_phrase_set_request\x18\x11 \x01(\x0b\x32..google.cloud.speech.v2.CreatePhraseSetRequestH\x00\x12S\n\x19update_phrase_set_request\x18\x12 \x01(\x0b\x32..google.cloud.speech.v2.UpdatePhraseSetRequestH\x00\x12S\n\x19\x64\x65lete_phrase_set_request\x18\x13 \x01(\x0b\x32..google.cloud.speech.v2.DeletePhraseSetRequestH\x00\x12W\n\x1bundelete_phrase_set_request\x18\x14 \x01(\x0b\x32\x30.google.cloud.speech.v2.UndeletePhraseSetRequestH\x00\x12P\n\x15update_config_request\x18\x15 \x01(\x0b\x32+.google.cloud.speech.v2.UpdateConfigRequestB\x02\x18\x01H\x00\x12\x18\n\x10progress_percent\x18\x16 \x01(\x05\x12R\n\x18\x62\x61tch_recognize_metadata\x18\x17 \x01(\x0b\x32..google.cloud.speech.v2.BatchRecognizeMetadataH\x01\x42\t\n\x07requestB\n\n\x08metadata\"\x90\x01\n\x16ListRecognizersRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"k\n\x17ListRecognizersResponse\x12\x37\n\x0brecognizers\x18\x01 \x03(\x0b\x32\".google.cloud.speech.v2.Recognizer\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"N\n\x14GetRecognizerRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n speech.googleapis.com/Recognizer\"\x9e\x01\n\x17UpdateRecognizerRequest\x12;\n\nrecognizer\x18\x01 \x01(\x0b\x32\".google.cloud.speech.v2.RecognizerB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x8d\x01\n\x17\x44\x65leteRecognizerRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n speech.googleapis.com/Recognizer\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x15\n\rallow_missing\x18\x04 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"x\n\x19UndeleteRecognizerRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n speech.googleapis.com/Recognizer\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x04 \x01(\t\"\xbe\x07\n\nRecognizer\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x12\n\x05model\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0elanguage_codes\x18\x11 \x03(\tB\x03\xe0\x41\x02\x12M\n\x1a\x64\x65\x66\x61ult_recognition_config\x18\x06 \x01(\x0b\x32).google.cloud.speech.v2.RecognitionConfig\x12H\n\x0b\x61nnotations\x18\x07 \x03(\x0b\x32\x33.google.cloud.speech.v2.Recognizer.AnnotationsEntry\x12<\n\x05state\x18\x08 \x01(\x0e\x32(.google.cloud.speech.v2.Recognizer.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\r \x01(\x08\x42\x03\xe0\x41\x03\x12?\n\x0ckms_key_name\x18\x0f \x01(\tB)\xe0\x41\x03\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12N\n\x14kms_key_version_name\x18\x10 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0b\n\x07\x44\x45LETED\x10\x04:j\xea\x41g\n speech.googleapis.com/Recognizer\x12@projects/{project}/locations/{location}/recognizers/{recognizer}R\x01\x01\"\x1a\n\x18\x41utoDetectDecodingConfig\"\xf9\x01\n\x16\x45xplicitDecodingConfig\x12S\n\x08\x65ncoding\x18\x01 \x01(\x0e\x32<.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncodingB\x03\xe0\x41\x02\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12\x1b\n\x13\x61udio_channel_count\x18\x03 \x01(\x05\"R\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\t\n\x05MULAW\x10\x02\x12\x08\n\x04\x41LAW\x10\x03\"Z\n\x18SpeakerDiarizationConfig\x12\x1e\n\x11min_speaker_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1e\n\x11max_speaker_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\"\xf8\x03\n\x13RecognitionFeatures\x12\x18\n\x10profanity_filter\x18\x01 \x01(\x08\x12 \n\x18\x65nable_word_time_offsets\x18\x02 \x01(\x08\x12\x1e\n\x16\x65nable_word_confidence\x18\x03 \x01(\x08\x12$\n\x1c\x65nable_automatic_punctuation\x18\x04 \x01(\x08\x12!\n\x19\x65nable_spoken_punctuation\x18\x0e \x01(\x08\x12\x1c\n\x14\x65nable_spoken_emojis\x18\x0f \x01(\x08\x12X\n\x12multi_channel_mode\x18\x11 \x01(\x0e\x32<.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode\x12L\n\x12\x64iarization_config\x18\t \x01(\x0b\x32\x30.google.cloud.speech.v2.SpeakerDiarizationConfig\x12\x18\n\x10max_alternatives\x18\x10 \x01(\x05\"\\\n\x10MultiChannelMode\x12\"\n\x1eMULTI_CHANNEL_MODE_UNSPECIFIED\x10\x00\x12$\n SEPARATE_RECOGNITION_PER_CHANNEL\x10\x01\"\xbf\x02\n\x10SpeechAdaptation\x12Q\n\x0bphrase_sets\x18\x01 \x03(\x0b\x32<.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet\x12;\n\x0e\x63ustom_classes\x18\x02 \x03(\x0b\x32#.google.cloud.speech.v2.CustomClass\x1a\x9a\x01\n\x13\x41\x64\x61ptationPhraseSet\x12:\n\nphrase_set\x18\x01 \x01(\tB$\xfa\x41!\n\x1fspeech.googleapis.com/PhraseSetH\x00\x12>\n\x11inline_phrase_set\x18\x02 \x01(\x0b\x32!.google.cloud.speech.v2.PhraseSetH\x00\x42\x07\n\x05value\"\xc9\x02\n\x11RecognitionConfig\x12P\n\x14\x61uto_decoding_config\x18\x07 \x01(\x0b\x32\x30.google.cloud.speech.v2.AutoDetectDecodingConfigH\x00\x12R\n\x18\x65xplicit_decoding_config\x18\x08 \x01(\x0b\x32..google.cloud.speech.v2.ExplicitDecodingConfigH\x00\x12=\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0b\x32+.google.cloud.speech.v2.RecognitionFeatures\x12<\n\nadaptation\x18\x06 \x01(\x0b\x32(.google.cloud.speech.v2.SpeechAdaptationB\x11\n\x0f\x64\x65\x63oding_config\"\xee\x01\n\x10RecognizeRequest\x12<\n\nrecognizer\x18\x03 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n speech.googleapis.com/Recognizer\x12\x39\n\x06\x63onfig\x18\x01 \x01(\x0b\x32).google.cloud.speech.v2.RecognitionConfig\x12/\n\x0b\x63onfig_mask\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x11\n\x07\x63ontent\x18\x05 \x01(\x0cH\x00\x12\r\n\x03uri\x18\x06 \x01(\tH\x00\x42\x0e\n\x0c\x61udio_source\"W\n\x1bRecognitionResponseMetadata\x12\x38\n\x15total_billed_duration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\"w\n\x1cSpeechRecognitionAlternative\x12\x12\n\ntranscript\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12/\n\x05words\x18\x03 \x03(\x0b\x32 .google.cloud.speech.v2.WordInfo\"\xa3\x01\n\x08WordInfo\x12/\n\x0cstart_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\nend_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0c\n\x04word\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12\x15\n\rspeaker_label\x18\x06 \x01(\t\"\xcc\x01\n\x17SpeechRecognitionResult\x12J\n\x0c\x61lternatives\x18\x01 \x03(\x0b\x32\x34.google.cloud.speech.v2.SpeechRecognitionAlternative\x12\x13\n\x0b\x63hannel_tag\x18\x02 \x01(\x05\x12\x34\n\x11result_end_offset\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1a\n\rlanguage_code\x18\x05 \x01(\tB\x03\xe0\x41\x03\"\x9c\x01\n\x11RecognizeResponse\x12@\n\x07results\x18\x03 \x03(\x0b\x32/.google.cloud.speech.v2.SpeechRecognitionResult\x12\x45\n\x08metadata\x18\x02 \x01(\x0b\x32\x33.google.cloud.speech.v2.RecognitionResponseMetadata\"\xd1\x02\n\x1cStreamingRecognitionFeatures\x12$\n\x1c\x65nable_voice_activity_events\x18\x01 \x01(\x08\x12\x17\n\x0finterim_results\x18\x02 \x01(\x08\x12i\n\x16voice_activity_timeout\x18\x03 \x01(\x0b\x32I.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout\x1a\x86\x01\n\x14VoiceActivityTimeout\x12\x37\n\x14speech_start_timeout\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x35\n\x12speech_end_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xdf\x01\n\x1aStreamingRecognitionConfig\x12>\n\x06\x63onfig\x18\x01 \x01(\x0b\x32).google.cloud.speech.v2.RecognitionConfigB\x03\xe0\x41\x02\x12/\n\x0b\x63onfig_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12P\n\x12streaming_features\x18\x02 \x01(\x0b\x32\x34.google.cloud.speech.v2.StreamingRecognitionFeatures\"\xcf\x01\n\x19StreamingRecognizeRequest\x12<\n\nrecognizer\x18\x03 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n speech.googleapis.com/Recognizer\x12N\n\x10streaming_config\x18\x06 \x01(\x0b\x32\x32.google.cloud.speech.v2.StreamingRecognitionConfigH\x00\x12\x0f\n\x05\x61udio\x18\x05 \x01(\x0cH\x00\x42\x13\n\x11streaming_request\"\x88\x04\n\x15\x42\x61tchRecognizeRequest\x12<\n\nrecognizer\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n speech.googleapis.com/Recognizer\x12\x39\n\x06\x63onfig\x18\x04 \x01(\x0b\x32).google.cloud.speech.v2.RecognitionConfig\x12/\n\x0b\x63onfig_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x41\n\x05\x66iles\x18\x03 \x03(\x0b\x32\x32.google.cloud.speech.v2.BatchRecognizeFileMetadata\x12R\n\x19recognition_output_config\x18\x06 \x01(\x0b\x32/.google.cloud.speech.v2.RecognitionOutputConfig\x12]\n\x13processing_strategy\x18\x07 \x01(\x0e\x32@.google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy\"O\n\x12ProcessingStrategy\x12#\n\x1fPROCESSING_STRATEGY_UNSPECIFIED\x10\x00\x12\x14\n\x10\x44YNAMIC_BATCHING\x10\x01\"\x1e\n\x0fGcsOutputConfig\x12\x0b\n\x03uri\x18\x01 \x01(\t\"\x14\n\x12InlineOutputConfig\"\xb7\x01\n\x17RecognitionOutputConfig\x12\x44\n\x11gcs_output_config\x18\x01 \x01(\x0b\x32\'.google.cloud.speech.v2.GcsOutputConfigH\x00\x12L\n\x16inline_response_config\x18\x02 \x01(\x0b\x32*.google.cloud.speech.v2.InlineOutputConfigH\x00\x42\x08\n\x06output\"\x82\x02\n\x16\x42\x61tchRecognizeResponse\x12L\n\x07results\x18\x01 \x03(\x0b\x32;.google.cloud.speech.v2.BatchRecognizeResponse.ResultsEntry\x12\x38\n\x15total_billed_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a`\n\x0cResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12?\n\x05value\x18\x02 \x01(\x0b\x32\x30.google.cloud.speech.v2.BatchRecognizeFileResult:\x02\x38\x01\"\xa0\x01\n\x15\x42\x61tchRecognizeResults\x12@\n\x07results\x18\x01 \x03(\x0b\x32/.google.cloud.speech.v2.SpeechRecognitionResult\x12\x45\n\x08metadata\x18\x02 \x01(\x0b\x32\x33.google.cloud.speech.v2.RecognitionResponseMetadata\"\xd4\x01\n\x18\x42\x61tchRecognizeFileResult\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12!\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12\x45\n\x08metadata\x18\x03 \x01(\x0b\x32\x33.google.cloud.speech.v2.RecognitionResponseMetadata\x12\x41\n\ntranscript\x18\x04 \x01(\x0b\x32-.google.cloud.speech.v2.BatchRecognizeResults\"o\n#BatchRecognizeTranscriptionMetadata\x12\x18\n\x10progress_percent\x18\x01 \x01(\x05\x12!\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12\x0b\n\x03uri\x18\x03 \x01(\t\"\xfe\x01\n\x16\x42\x61tchRecognizeMetadata\x12i\n\x16transcription_metadata\x18\x01 \x03(\x0b\x32I.google.cloud.speech.v2.BatchRecognizeMetadata.TranscriptionMetadataEntry\x1ay\n\x1aTranscriptionMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12J\n\x05value\x18\x02 \x01(\x0b\x32;.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata:\x02\x38\x01\"\xa7\x01\n\x1a\x42\x61tchRecognizeFileMetadata\x12\r\n\x03uri\x18\x01 \x01(\tH\x00\x12\x39\n\x06\x63onfig\x18\x04 \x01(\x0b\x32).google.cloud.speech.v2.RecognitionConfig\x12/\n\x0b\x63onfig_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x0e\n\x0c\x61udio_source\"\xf4\x01\n\x1aStreamingRecognitionResult\x12J\n\x0c\x61lternatives\x18\x01 \x03(\x0b\x32\x34.google.cloud.speech.v2.SpeechRecognitionAlternative\x12\x10\n\x08is_final\x18\x02 \x01(\x08\x12\x11\n\tstability\x18\x03 \x01(\x02\x12\x34\n\x11result_end_offset\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x63hannel_tag\x18\x05 \x01(\x05\x12\x1a\n\rlanguage_code\x18\x06 \x01(\tB\x03\xe0\x41\x03\"\xc7\x03\n\x1aStreamingRecognizeResponse\x12\x43\n\x07results\x18\x06 \x03(\x0b\x32\x32.google.cloud.speech.v2.StreamingRecognitionResult\x12]\n\x11speech_event_type\x18\x03 \x01(\x0e\x32\x42.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType\x12\x36\n\x13speech_event_offset\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x08metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.speech.v2.RecognitionResponseMetadata\"\x85\x01\n\x0fSpeechEventType\x12!\n\x1dSPEECH_EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x45ND_OF_SINGLE_UTTERANCE\x10\x01\x12\x19\n\x15SPEECH_ACTIVITY_BEGIN\x10\x02\x12\x17\n\x13SPEECH_ACTIVITY_END\x10\x03\"\xe5\x01\n\x06\x43onfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12?\n\x0ckms_key_name\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:Q\xea\x41N\n\x1cspeech.googleapis.com/Config\x12.projects/{project}/locations/{location}/config\"F\n\x10GetConfigRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cspeech.googleapis.com/Config\"{\n\x13UpdateConfigRequest\x12\x33\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1e.google.cloud.speech.v2.ConfigB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xa0\x07\n\x0b\x43ustomClass\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\t\x12<\n\x05items\x18\x05 \x03(\x0b\x32-.google.cloud.speech.v2.CustomClass.ClassItem\x12=\n\x05state\x18\x0f \x01(\x0e\x32).google.cloud.speech.v2.CustomClass.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12I\n\x0b\x61nnotations\x18\n \x03(\x0b\x32\x34.google.cloud.speech.v2.CustomClass.AnnotationsEntry\x12\x11\n\x04\x65tag\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x0c \x01(\x08\x42\x03\xe0\x41\x03\x12?\n\x0ckms_key_name\x18\r \x01(\tB)\xe0\x41\x03\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12N\n\x14kms_key_version_name\x18\x0e \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\x1a\x1a\n\tClassItem\x12\r\n\x05value\x18\x01 \x01(\t\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0b\n\x07\x44\x45LETED\x10\x04:o\xea\x41l\n!speech.googleapis.com/CustomClass\x12\x44projects/{project}/locations/{location}/customClasses/{custom_class}R\x01\x01\"\xab\x07\n\tPhraseSet\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x07phrases\x18\x03 \x03(\x0b\x32(.google.cloud.speech.v2.PhraseSet.Phrase\x12\r\n\x05\x62oost\x18\x04 \x01(\x02\x12\x14\n\x0c\x64isplay_name\x18\x05 \x01(\t\x12;\n\x05state\x18\x0f \x01(\x0e\x32\'.google.cloud.speech.v2.PhraseSet.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12G\n\x0b\x61nnotations\x18\n \x03(\x0b\x32\x32.google.cloud.speech.v2.PhraseSet.AnnotationsEntry\x12\x11\n\x04\x65tag\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x0c \x01(\x08\x42\x03\xe0\x41\x03\x12?\n\x0ckms_key_name\x18\r \x01(\tB)\xe0\x41\x03\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12N\n\x14kms_key_version_name\x18\x0e \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\x1a&\n\x06Phrase\x12\r\n\x05value\x18\x01 \x01(\t\x12\r\n\x05\x62oost\x18\x02 \x01(\x02\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0b\n\x07\x44\x45LETED\x10\x04:h\xea\x41\x65\n\x1fspeech.googleapis.com/PhraseSet\x12?projects/{project}/locations/{location}/phraseSets/{phrase_set}R\x01\x01\"\xc5\x01\n\x18\x43reateCustomClassRequest\x12>\n\x0c\x63ustom_class\x18\x01 \x01(\x0b\x32#.google.cloud.speech.v2.CustomClassB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x17\n\x0f\x63ustom_class_id\x18\x03 \x01(\t\x12\x39\n\x06parent\x18\x04 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!speech.googleapis.com/CustomClass\"\x92\x01\n\x18ListCustomClassesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"q\n\x19ListCustomClassesResponse\x12;\n\x0e\x63ustom_classes\x18\x01 \x03(\x0b\x32#.google.cloud.speech.v2.CustomClass\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"P\n\x15GetCustomClassRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!speech.googleapis.com/CustomClass\"\xa2\x01\n\x18UpdateCustomClassRequest\x12>\n\x0c\x63ustom_class\x18\x01 \x01(\x0b\x32#.google.cloud.speech.v2.CustomClassB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x8f\x01\n\x18\x44\x65leteCustomClassRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!speech.googleapis.com/CustomClass\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x15\n\rallow_missing\x18\x04 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"z\n\x1aUndeleteCustomClassRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!speech.googleapis.com/CustomClass\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x04 \x01(\t\"\xbb\x01\n\x16\x43reatePhraseSetRequest\x12:\n\nphrase_set\x18\x01 \x01(\x0b\x32!.google.cloud.speech.v2.PhraseSetB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x15\n\rphrase_set_id\x18\x03 \x01(\t\x12\x37\n\x06parent\x18\x04 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1fspeech.googleapis.com/PhraseSet\"\x8f\x01\n\x15ListPhraseSetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"i\n\x16ListPhraseSetsResponse\x12\x36\n\x0bphrase_sets\x18\x01 \x03(\x0b\x32!.google.cloud.speech.v2.PhraseSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"L\n\x13GetPhraseSetRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspeech.googleapis.com/PhraseSet\"\x9c\x01\n\x16UpdatePhraseSetRequest\x12:\n\nphrase_set\x18\x01 \x01(\x0b\x32!.google.cloud.speech.v2.PhraseSetB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x8b\x01\n\x16\x44\x65letePhraseSetRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspeech.googleapis.com/PhraseSet\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x15\n\rallow_missing\x18\x04 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"v\n\x18UndeletePhraseSetRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspeech.googleapis.com/PhraseSet\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x04 \x01(\t2\xbf%\n\x06Speech\x12\xec\x01\n\x10\x43reateRecognizer\x12/.google.cloud.speech.v2.CreateRecognizerRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\x82\xd3\xe4\x93\x02=\"//v2/{parent=projects/*/locations/*}/recognizers:\nrecognizer\xda\x41\x1fparent,recognizer,recognizer_id\xca\x41\x1f\n\nRecognizer\x12\x11OperationMetadata\x12\xb4\x01\n\x0fListRecognizers\x12..google.cloud.speech.v2.ListRecognizersRequest\x1a/.google.cloud.speech.v2.ListRecognizersResponse\"@\x82\xd3\xe4\x93\x02\x31\x12//v2/{parent=projects/*/locations/*}/recognizers\xda\x41\x06parent\x12\xa1\x01\n\rGetRecognizer\x12,.google.cloud.speech.v2.GetRecognizerRequest\x1a\".google.cloud.speech.v2.Recognizer\">\x82\xd3\xe4\x93\x02\x31\x12//v2/{name=projects/*/locations/*/recognizers/*}\xda\x41\x04name\x12\xee\x01\n\x10UpdateRecognizer\x12/.google.cloud.speech.v2.UpdateRecognizerRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\x82\xd3\xe4\x93\x02H2:/v2/{recognizer.name=projects/*/locations/*/recognizers/*}:\nrecognizer\xda\x41\x16recognizer,update_mask\xca\x41\x1f\n\nRecognizer\x12\x11OperationMetadata\x12\xc4\x01\n\x10\x44\x65leteRecognizer\x12/.google.cloud.speech.v2.DeleteRecognizerRequest\x1a\x1d.google.longrunning.Operation\"`\x82\xd3\xe4\x93\x02\x31*//v2/{name=projects/*/locations/*/recognizers/*}\xda\x41\x04name\xca\x41\x1f\n\nRecognizer\x12\x11OperationMetadata\x12\xd4\x01\n\x12UndeleteRecognizer\x12\x31.google.cloud.speech.v2.UndeleteRecognizerRequest\x1a\x1d.google.longrunning.Operation\"l\x82\xd3\xe4\x93\x02=\"8/v2/{name=projects/*/locations/*/recognizers/*}:undelete:\x01*\xda\x41\x04name\xca\x41\x1f\n\nRecognizer\x12\x11OperationMetadata\x12\xf9\x01\n\tRecognize\x12(.google.cloud.speech.v2.RecognizeRequest\x1a).google.cloud.speech.v2.RecognizeResponse\"\x96\x01\x82\xd3\xe4\x93\x02\x44\"?/v2/{recognizer=projects/*/locations/*/recognizers/*}:recognize:\x01*\xda\x41%recognizer,config,config_mask,content\xda\x41!recognizer,config,config_mask,uri\x12\x81\x01\n\x12StreamingRecognize\x12\x31.google.cloud.speech.v2.StreamingRecognizeRequest\x1a\x32.google.cloud.speech.v2.StreamingRecognizeResponse\"\x00(\x01\x30\x01\x12\x84\x02\n\x0e\x42\x61tchRecognize\x12-.google.cloud.speech.v2.BatchRecognizeRequest\x1a\x1d.google.longrunning.Operation\"\xa3\x01\x82\xd3\xe4\x93\x02I\"D/v2/{recognizer=projects/*/locations/*/recognizers/*}:batchRecognize:\x01*\xda\x41#recognizer,config,config_mask,files\xca\x41+\n\x16\x42\x61tchRecognizeResponse\x12\x11OperationMetadata\x12\x8e\x01\n\tGetConfig\x12(.google.cloud.speech.v2.GetConfigRequest\x1a\x1e.google.cloud.speech.v2.Config\"7\x82\xd3\xe4\x93\x02*\x12(/v2/{name=projects/*/locations/*/config}\xda\x41\x04name\x12\xb1\x01\n\x0cUpdateConfig\x12+.google.cloud.speech.v2.UpdateConfigRequest\x1a\x1e.google.cloud.speech.v2.Config\"T\x82\xd3\xe4\x93\x02\x39\x32//v2/{config.name=projects/*/locations/*/config}:\x06\x63onfig\xda\x41\x12\x63onfig,update_mask\x12\xf7\x01\n\x11\x43reateCustomClass\x12\x30.google.cloud.speech.v2.CreateCustomClassRequest\x1a\x1d.google.longrunning.Operation\"\x90\x01\x82\xd3\xe4\x93\x02\x41\"1/v2/{parent=projects/*/locations/*}/customClasses:\x0c\x63ustom_class\xda\x41#parent,custom_class,custom_class_id\xca\x41 \n\x0b\x43ustomClass\x12\x11OperationMetadata\x12\xbc\x01\n\x11ListCustomClasses\x12\x30.google.cloud.speech.v2.ListCustomClassesRequest\x1a\x31.google.cloud.speech.v2.ListCustomClassesResponse\"B\x82\xd3\xe4\x93\x02\x33\x12\x31/v2/{parent=projects/*/locations/*}/customClasses\xda\x41\x06parent\x12\xa6\x01\n\x0eGetCustomClass\x12-.google.cloud.speech.v2.GetCustomClassRequest\x1a#.google.cloud.speech.v2.CustomClass\"@\x82\xd3\xe4\x93\x02\x33\x12\x31/v2/{name=projects/*/locations/*/customClasses/*}\xda\x41\x04name\x12\xf9\x01\n\x11UpdateCustomClass\x12\x30.google.cloud.speech.v2.UpdateCustomClassRequest\x1a\x1d.google.longrunning.Operation\"\x92\x01\x82\xd3\xe4\x93\x02N2>/v2/{custom_class.name=projects/*/locations/*/customClasses/*}:\x0c\x63ustom_class\xda\x41\x18\x63ustom_class,update_mask\xca\x41 \n\x0b\x43ustomClass\x12\x11OperationMetadata\x12\xc9\x01\n\x11\x44\x65leteCustomClass\x12\x30.google.cloud.speech.v2.DeleteCustomClassRequest\x1a\x1d.google.longrunning.Operation\"c\x82\xd3\xe4\x93\x02\x33*1/v2/{name=projects/*/locations/*/customClasses/*}\xda\x41\x04name\xca\x41 \n\x0b\x43ustomClass\x12\x11OperationMetadata\x12\xd9\x01\n\x13UndeleteCustomClass\x12\x32.google.cloud.speech.v2.UndeleteCustomClassRequest\x1a\x1d.google.longrunning.Operation\"o\x82\xd3\xe4\x93\x02?\":/v2/{name=projects/*/locations/*/customClasses/*}:undelete:\x01*\xda\x41\x04name\xca\x41 \n\x0b\x43ustomClass\x12\x11OperationMetadata\x12\xe8\x01\n\x0f\x43reatePhraseSet\x12..google.cloud.speech.v2.CreatePhraseSetRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\x82\xd3\xe4\x93\x02<\"./v2/{parent=projects/*/locations/*}/phraseSets:\nphrase_set\xda\x41\x1fparent,phrase_set,phrase_set_id\xca\x41\x1e\n\tPhraseSet\x12\x11OperationMetadata\x12\xb0\x01\n\x0eListPhraseSets\x12-.google.cloud.speech.v2.ListPhraseSetsRequest\x1a..google.cloud.speech.v2.ListPhraseSetsResponse\"?\x82\xd3\xe4\x93\x02\x30\x12./v2/{parent=projects/*/locations/*}/phraseSets\xda\x41\x06parent\x12\x9d\x01\n\x0cGetPhraseSet\x12+.google.cloud.speech.v2.GetPhraseSetRequest\x1a!.google.cloud.speech.v2.PhraseSet\"=\x82\xd3\xe4\x93\x02\x30\x12./v2/{name=projects/*/locations/*/phraseSets/*}\xda\x41\x04name\x12\xea\x01\n\x0fUpdatePhraseSet\x12..google.cloud.speech.v2.UpdatePhraseSetRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\x82\xd3\xe4\x93\x02G29/v2/{phrase_set.name=projects/*/locations/*/phraseSets/*}:\nphrase_set\xda\x41\x16phrase_set,update_mask\xca\x41\x1e\n\tPhraseSet\x12\x11OperationMetadata\x12\xc0\x01\n\x0f\x44\x65letePhraseSet\x12..google.cloud.speech.v2.DeletePhraseSetRequest\x1a\x1d.google.longrunning.Operation\"^\x82\xd3\xe4\x93\x02\x30*./v2/{name=projects/*/locations/*/phraseSets/*}\xda\x41\x04name\xca\x41\x1e\n\tPhraseSet\x12\x11OperationMetadata\x12\xd0\x01\n\x11UndeletePhraseSet\x12\x30.google.cloud.speech.v2.UndeletePhraseSetRequest\x1a\x1d.google.longrunning.Operation\"j\x82\xd3\xe4\x93\x02<\"7/v2/{name=projects/*/locations/*/phraseSets/*}:undelete:\x01*\xda\x41\x04name\xca\x41\x1e\n\tPhraseSet\x12\x11OperationMetadata\x1aI\xca\x41\x15speech.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x89\x03\n\x1a\x63om.google.cloud.speech.v2B\x10\x43loudSpeechProtoP\x01Z2cloud.google.com/go/speech/apiv2/speechpb;speechpb\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3"
|
18
|
+
descriptor_data = "\n)google/cloud/speech/v2/cloud_speech.proto\x12\x16google.cloud.speech.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xbe\x01\n\x17\x43reateRecognizerRequest\x12;\n\nrecognizer\x18\x01 \x01(\x0b\x32\".google.cloud.speech.v2.RecognizerB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x15\n\rrecognizer_id\x18\x03 \x01(\t\x12\x38\n\x06parent\x18\x04 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 speech.googleapis.com/Recognizer\"\xe7\x0c\n\x11OperationMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08resource\x18\x03 \x01(\t\x12\x0e\n\x06method\x18\x04 \x01(\t\x12<\n\x0ckms_key_name\x18\x06 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12K\n\x14kms_key_version_name\x18\x07 \x01(\tB-\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\x12P\n\x17\x62\x61tch_recognize_request\x18\x08 \x01(\x0b\x32-.google.cloud.speech.v2.BatchRecognizeRequestH\x00\x12T\n\x19\x63reate_recognizer_request\x18\t \x01(\x0b\x32/.google.cloud.speech.v2.CreateRecognizerRequestH\x00\x12T\n\x19update_recognizer_request\x18\n \x01(\x0b\x32/.google.cloud.speech.v2.UpdateRecognizerRequestH\x00\x12T\n\x19\x64\x65lete_recognizer_request\x18\x0b \x01(\x0b\x32/.google.cloud.speech.v2.DeleteRecognizerRequestH\x00\x12X\n\x1bundelete_recognizer_request\x18\x0c \x01(\x0b\x32\x31.google.cloud.speech.v2.UndeleteRecognizerRequestH\x00\x12W\n\x1b\x63reate_custom_class_request\x18\r \x01(\x0b\x32\x30.google.cloud.speech.v2.CreateCustomClassRequestH\x00\x12W\n\x1bupdate_custom_class_request\x18\x0e \x01(\x0b\x32\x30.google.cloud.speech.v2.UpdateCustomClassRequestH\x00\x12W\n\x1b\x64\x65lete_custom_class_request\x18\x0f \x01(\x0b\x32\x30.google.cloud.speech.v2.DeleteCustomClassRequestH\x00\x12[\n\x1dundelete_custom_class_request\x18\x10 \x01(\x0b\x32\x32.google.cloud.speech.v2.UndeleteCustomClassRequestH\x00\x12S\n\x19\x63reate_phrase_set_request\x18\x11 \x01(\x0b\x32..google.cloud.speech.v2.CreatePhraseSetRequestH\x00\x12S\n\x19update_phrase_set_request\x18\x12 \x01(\x0b\x32..google.cloud.speech.v2.UpdatePhraseSetRequestH\x00\x12S\n\x19\x64\x65lete_phrase_set_request\x18\x13 \x01(\x0b\x32..google.cloud.speech.v2.DeletePhraseSetRequestH\x00\x12W\n\x1bundelete_phrase_set_request\x18\x14 \x01(\x0b\x32\x30.google.cloud.speech.v2.UndeletePhraseSetRequestH\x00\x12P\n\x15update_config_request\x18\x15 \x01(\x0b\x32+.google.cloud.speech.v2.UpdateConfigRequestB\x02\x18\x01H\x00\x12\x18\n\x10progress_percent\x18\x16 \x01(\x05\x12R\n\x18\x62\x61tch_recognize_metadata\x18\x17 \x01(\x0b\x32..google.cloud.speech.v2.BatchRecognizeMetadataH\x01\x42\t\n\x07requestB\n\n\x08metadata\"\x90\x01\n\x16ListRecognizersRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"k\n\x17ListRecognizersResponse\x12\x37\n\x0brecognizers\x18\x01 \x03(\x0b\x32\".google.cloud.speech.v2.Recognizer\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"N\n\x14GetRecognizerRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n speech.googleapis.com/Recognizer\"\x9e\x01\n\x17UpdateRecognizerRequest\x12;\n\nrecognizer\x18\x01 \x01(\x0b\x32\".google.cloud.speech.v2.RecognizerB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x8d\x01\n\x17\x44\x65leteRecognizerRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n speech.googleapis.com/Recognizer\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x15\n\rallow_missing\x18\x04 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"x\n\x19UndeleteRecognizerRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n speech.googleapis.com/Recognizer\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x04 \x01(\t\"\xc2\x07\n\nRecognizer\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x14\n\x05model\x18\x04 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12\x1d\n\x0elanguage_codes\x18\x11 \x03(\tB\x05\x18\x01\xe0\x41\x01\x12M\n\x1a\x64\x65\x66\x61ult_recognition_config\x18\x06 \x01(\x0b\x32).google.cloud.speech.v2.RecognitionConfig\x12H\n\x0b\x61nnotations\x18\x07 \x03(\x0b\x32\x33.google.cloud.speech.v2.Recognizer.AnnotationsEntry\x12<\n\x05state\x18\x08 \x01(\x0e\x32(.google.cloud.speech.v2.Recognizer.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\r \x01(\x08\x42\x03\xe0\x41\x03\x12?\n\x0ckms_key_name\x18\x0f \x01(\tB)\xe0\x41\x03\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12N\n\x14kms_key_version_name\x18\x10 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0b\n\x07\x44\x45LETED\x10\x04:j\xea\x41g\n speech.googleapis.com/Recognizer\x12@projects/{project}/locations/{location}/recognizers/{recognizer}R\x01\x01\"\x1a\n\x18\x41utoDetectDecodingConfig\"\xf9\x01\n\x16\x45xplicitDecodingConfig\x12S\n\x08\x65ncoding\x18\x01 \x01(\x0e\x32<.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncodingB\x03\xe0\x41\x02\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12\x1b\n\x13\x61udio_channel_count\x18\x03 \x01(\x05\"R\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\t\n\x05MULAW\x10\x02\x12\x08\n\x04\x41LAW\x10\x03\"Z\n\x18SpeakerDiarizationConfig\x12\x1e\n\x11min_speaker_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1e\n\x11max_speaker_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\"\xf8\x03\n\x13RecognitionFeatures\x12\x18\n\x10profanity_filter\x18\x01 \x01(\x08\x12 \n\x18\x65nable_word_time_offsets\x18\x02 \x01(\x08\x12\x1e\n\x16\x65nable_word_confidence\x18\x03 \x01(\x08\x12$\n\x1c\x65nable_automatic_punctuation\x18\x04 \x01(\x08\x12!\n\x19\x65nable_spoken_punctuation\x18\x0e \x01(\x08\x12\x1c\n\x14\x65nable_spoken_emojis\x18\x0f \x01(\x08\x12X\n\x12multi_channel_mode\x18\x11 \x01(\x0e\x32<.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode\x12L\n\x12\x64iarization_config\x18\t \x01(\x0b\x32\x30.google.cloud.speech.v2.SpeakerDiarizationConfig\x12\x18\n\x10max_alternatives\x18\x10 \x01(\x05\"\\\n\x10MultiChannelMode\x12\"\n\x1eMULTI_CHANNEL_MODE_UNSPECIFIED\x10\x00\x12$\n SEPARATE_RECOGNITION_PER_CHANNEL\x10\x01\"\xbf\x02\n\x10SpeechAdaptation\x12Q\n\x0bphrase_sets\x18\x01 \x03(\x0b\x32<.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet\x12;\n\x0e\x63ustom_classes\x18\x02 \x03(\x0b\x32#.google.cloud.speech.v2.CustomClass\x1a\x9a\x01\n\x13\x41\x64\x61ptationPhraseSet\x12:\n\nphrase_set\x18\x01 \x01(\tB$\xfa\x41!\n\x1fspeech.googleapis.com/PhraseSetH\x00\x12>\n\x11inline_phrase_set\x18\x02 \x01(\x0b\x32!.google.cloud.speech.v2.PhraseSetH\x00\x42\x07\n\x05value\"\xfa\x02\n\x11RecognitionConfig\x12P\n\x14\x61uto_decoding_config\x18\x07 \x01(\x0b\x32\x30.google.cloud.speech.v2.AutoDetectDecodingConfigH\x00\x12R\n\x18\x65xplicit_decoding_config\x18\x08 \x01(\x0b\x32..google.cloud.speech.v2.ExplicitDecodingConfigH\x00\x12\x12\n\x05model\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0elanguage_codes\x18\n \x03(\tB\x03\xe0\x41\x01\x12=\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0b\x32+.google.cloud.speech.v2.RecognitionFeatures\x12<\n\nadaptation\x18\x06 \x01(\x0b\x32(.google.cloud.speech.v2.SpeechAdaptationB\x11\n\x0f\x64\x65\x63oding_config\"\xee\x01\n\x10RecognizeRequest\x12<\n\nrecognizer\x18\x03 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n speech.googleapis.com/Recognizer\x12\x39\n\x06\x63onfig\x18\x01 \x01(\x0b\x32).google.cloud.speech.v2.RecognitionConfig\x12/\n\x0b\x63onfig_mask\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x11\n\x07\x63ontent\x18\x05 \x01(\x0cH\x00\x12\r\n\x03uri\x18\x06 \x01(\tH\x00\x42\x0e\n\x0c\x61udio_source\"W\n\x1bRecognitionResponseMetadata\x12\x38\n\x15total_billed_duration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\"w\n\x1cSpeechRecognitionAlternative\x12\x12\n\ntranscript\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12/\n\x05words\x18\x03 \x03(\x0b\x32 .google.cloud.speech.v2.WordInfo\"\xa3\x01\n\x08WordInfo\x12/\n\x0cstart_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\nend_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0c\n\x04word\x18\x03 \x01(\t\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12\x15\n\rspeaker_label\x18\x06 \x01(\t\"\xcc\x01\n\x17SpeechRecognitionResult\x12J\n\x0c\x61lternatives\x18\x01 \x03(\x0b\x32\x34.google.cloud.speech.v2.SpeechRecognitionAlternative\x12\x13\n\x0b\x63hannel_tag\x18\x02 \x01(\x05\x12\x34\n\x11result_end_offset\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1a\n\rlanguage_code\x18\x05 \x01(\tB\x03\xe0\x41\x03\"\x9c\x01\n\x11RecognizeResponse\x12@\n\x07results\x18\x03 \x03(\x0b\x32/.google.cloud.speech.v2.SpeechRecognitionResult\x12\x45\n\x08metadata\x18\x02 \x01(\x0b\x32\x33.google.cloud.speech.v2.RecognitionResponseMetadata\"\xd1\x02\n\x1cStreamingRecognitionFeatures\x12$\n\x1c\x65nable_voice_activity_events\x18\x01 \x01(\x08\x12\x17\n\x0finterim_results\x18\x02 \x01(\x08\x12i\n\x16voice_activity_timeout\x18\x03 \x01(\x0b\x32I.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout\x1a\x86\x01\n\x14VoiceActivityTimeout\x12\x37\n\x14speech_start_timeout\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x35\n\x12speech_end_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xdf\x01\n\x1aStreamingRecognitionConfig\x12>\n\x06\x63onfig\x18\x01 \x01(\x0b\x32).google.cloud.speech.v2.RecognitionConfigB\x03\xe0\x41\x02\x12/\n\x0b\x63onfig_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12P\n\x12streaming_features\x18\x02 \x01(\x0b\x32\x34.google.cloud.speech.v2.StreamingRecognitionFeatures\"\xcf\x01\n\x19StreamingRecognizeRequest\x12<\n\nrecognizer\x18\x03 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n speech.googleapis.com/Recognizer\x12N\n\x10streaming_config\x18\x06 \x01(\x0b\x32\x32.google.cloud.speech.v2.StreamingRecognitionConfigH\x00\x12\x0f\n\x05\x61udio\x18\x05 \x01(\x0cH\x00\x42\x13\n\x11streaming_request\"\x88\x04\n\x15\x42\x61tchRecognizeRequest\x12<\n\nrecognizer\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n speech.googleapis.com/Recognizer\x12\x39\n\x06\x63onfig\x18\x04 \x01(\x0b\x32).google.cloud.speech.v2.RecognitionConfig\x12/\n\x0b\x63onfig_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x41\n\x05\x66iles\x18\x03 \x03(\x0b\x32\x32.google.cloud.speech.v2.BatchRecognizeFileMetadata\x12R\n\x19recognition_output_config\x18\x06 \x01(\x0b\x32/.google.cloud.speech.v2.RecognitionOutputConfig\x12]\n\x13processing_strategy\x18\x07 \x01(\x0e\x32@.google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy\"O\n\x12ProcessingStrategy\x12#\n\x1fPROCESSING_STRATEGY_UNSPECIFIED\x10\x00\x12\x14\n\x10\x44YNAMIC_BATCHING\x10\x01\"\x1e\n\x0fGcsOutputConfig\x12\x0b\n\x03uri\x18\x01 \x01(\t\"\x14\n\x12InlineOutputConfig\"\xb7\x01\n\x17RecognitionOutputConfig\x12\x44\n\x11gcs_output_config\x18\x01 \x01(\x0b\x32\'.google.cloud.speech.v2.GcsOutputConfigH\x00\x12L\n\x16inline_response_config\x18\x02 \x01(\x0b\x32*.google.cloud.speech.v2.InlineOutputConfigH\x00\x42\x08\n\x06output\"\x82\x02\n\x16\x42\x61tchRecognizeResponse\x12L\n\x07results\x18\x01 \x03(\x0b\x32;.google.cloud.speech.v2.BatchRecognizeResponse.ResultsEntry\x12\x38\n\x15total_billed_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a`\n\x0cResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12?\n\x05value\x18\x02 \x01(\x0b\x32\x30.google.cloud.speech.v2.BatchRecognizeFileResult:\x02\x38\x01\"\xa0\x01\n\x15\x42\x61tchRecognizeResults\x12@\n\x07results\x18\x01 \x03(\x0b\x32/.google.cloud.speech.v2.SpeechRecognitionResult\x12\x45\n\x08metadata\x18\x02 \x01(\x0b\x32\x33.google.cloud.speech.v2.RecognitionResponseMetadata\"\xd4\x01\n\x18\x42\x61tchRecognizeFileResult\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12!\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12\x45\n\x08metadata\x18\x03 \x01(\x0b\x32\x33.google.cloud.speech.v2.RecognitionResponseMetadata\x12\x41\n\ntranscript\x18\x04 \x01(\x0b\x32-.google.cloud.speech.v2.BatchRecognizeResults\"o\n#BatchRecognizeTranscriptionMetadata\x12\x18\n\x10progress_percent\x18\x01 \x01(\x05\x12!\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12\x0b\n\x03uri\x18\x03 \x01(\t\"\xfe\x01\n\x16\x42\x61tchRecognizeMetadata\x12i\n\x16transcription_metadata\x18\x01 \x03(\x0b\x32I.google.cloud.speech.v2.BatchRecognizeMetadata.TranscriptionMetadataEntry\x1ay\n\x1aTranscriptionMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12J\n\x05value\x18\x02 \x01(\x0b\x32;.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata:\x02\x38\x01\"\xa7\x01\n\x1a\x42\x61tchRecognizeFileMetadata\x12\r\n\x03uri\x18\x01 \x01(\tH\x00\x12\x39\n\x06\x63onfig\x18\x04 \x01(\x0b\x32).google.cloud.speech.v2.RecognitionConfig\x12/\n\x0b\x63onfig_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x0e\n\x0c\x61udio_source\"\xf4\x01\n\x1aStreamingRecognitionResult\x12J\n\x0c\x61lternatives\x18\x01 \x03(\x0b\x32\x34.google.cloud.speech.v2.SpeechRecognitionAlternative\x12\x10\n\x08is_final\x18\x02 \x01(\x08\x12\x11\n\tstability\x18\x03 \x01(\x02\x12\x34\n\x11result_end_offset\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x63hannel_tag\x18\x05 \x01(\x05\x12\x1a\n\rlanguage_code\x18\x06 \x01(\tB\x03\xe0\x41\x03\"\xc7\x03\n\x1aStreamingRecognizeResponse\x12\x43\n\x07results\x18\x06 \x03(\x0b\x32\x32.google.cloud.speech.v2.StreamingRecognitionResult\x12]\n\x11speech_event_type\x18\x03 \x01(\x0e\x32\x42.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType\x12\x36\n\x13speech_event_offset\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x08metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.speech.v2.RecognitionResponseMetadata\"\x85\x01\n\x0fSpeechEventType\x12!\n\x1dSPEECH_EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x45ND_OF_SINGLE_UTTERANCE\x10\x01\x12\x19\n\x15SPEECH_ACTIVITY_BEGIN\x10\x02\x12\x17\n\x13SPEECH_ACTIVITY_END\x10\x03\"\xe5\x01\n\x06\x43onfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12?\n\x0ckms_key_name\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:Q\xea\x41N\n\x1cspeech.googleapis.com/Config\x12.projects/{project}/locations/{location}/config\"F\n\x10GetConfigRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cspeech.googleapis.com/Config\"{\n\x13UpdateConfigRequest\x12\x33\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1e.google.cloud.speech.v2.ConfigB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xa0\x07\n\x0b\x43ustomClass\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\t\x12<\n\x05items\x18\x05 \x03(\x0b\x32-.google.cloud.speech.v2.CustomClass.ClassItem\x12=\n\x05state\x18\x0f \x01(\x0e\x32).google.cloud.speech.v2.CustomClass.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12I\n\x0b\x61nnotations\x18\n \x03(\x0b\x32\x34.google.cloud.speech.v2.CustomClass.AnnotationsEntry\x12\x11\n\x04\x65tag\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x0c \x01(\x08\x42\x03\xe0\x41\x03\x12?\n\x0ckms_key_name\x18\r \x01(\tB)\xe0\x41\x03\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12N\n\x14kms_key_version_name\x18\x0e \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\x1a\x1a\n\tClassItem\x12\r\n\x05value\x18\x01 \x01(\t\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0b\n\x07\x44\x45LETED\x10\x04:o\xea\x41l\n!speech.googleapis.com/CustomClass\x12\x44projects/{project}/locations/{location}/customClasses/{custom_class}R\x01\x01\"\xab\x07\n\tPhraseSet\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x07phrases\x18\x03 \x03(\x0b\x32(.google.cloud.speech.v2.PhraseSet.Phrase\x12\r\n\x05\x62oost\x18\x04 \x01(\x02\x12\x14\n\x0c\x64isplay_name\x18\x05 \x01(\t\x12;\n\x05state\x18\x0f \x01(\x0e\x32\'.google.cloud.speech.v2.PhraseSet.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12G\n\x0b\x61nnotations\x18\n \x03(\x0b\x32\x32.google.cloud.speech.v2.PhraseSet.AnnotationsEntry\x12\x11\n\x04\x65tag\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x0c \x01(\x08\x42\x03\xe0\x41\x03\x12?\n\x0ckms_key_name\x18\r \x01(\tB)\xe0\x41\x03\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12N\n\x14kms_key_version_name\x18\x0e \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\x1a&\n\x06Phrase\x12\r\n\x05value\x18\x01 \x01(\t\x12\r\n\x05\x62oost\x18\x02 \x01(\x02\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0b\n\x07\x44\x45LETED\x10\x04:h\xea\x41\x65\n\x1fspeech.googleapis.com/PhraseSet\x12?projects/{project}/locations/{location}/phraseSets/{phrase_set}R\x01\x01\"\xc5\x01\n\x18\x43reateCustomClassRequest\x12>\n\x0c\x63ustom_class\x18\x01 \x01(\x0b\x32#.google.cloud.speech.v2.CustomClassB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x17\n\x0f\x63ustom_class_id\x18\x03 \x01(\t\x12\x39\n\x06parent\x18\x04 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!speech.googleapis.com/CustomClass\"\x92\x01\n\x18ListCustomClassesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"q\n\x19ListCustomClassesResponse\x12;\n\x0e\x63ustom_classes\x18\x01 \x03(\x0b\x32#.google.cloud.speech.v2.CustomClass\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"P\n\x15GetCustomClassRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!speech.googleapis.com/CustomClass\"\xa2\x01\n\x18UpdateCustomClassRequest\x12>\n\x0c\x63ustom_class\x18\x01 \x01(\x0b\x32#.google.cloud.speech.v2.CustomClassB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x8f\x01\n\x18\x44\x65leteCustomClassRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!speech.googleapis.com/CustomClass\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x15\n\rallow_missing\x18\x04 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"z\n\x1aUndeleteCustomClassRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!speech.googleapis.com/CustomClass\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x04 \x01(\t\"\xbb\x01\n\x16\x43reatePhraseSetRequest\x12:\n\nphrase_set\x18\x01 \x01(\x0b\x32!.google.cloud.speech.v2.PhraseSetB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x15\n\rphrase_set_id\x18\x03 \x01(\t\x12\x37\n\x06parent\x18\x04 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1fspeech.googleapis.com/PhraseSet\"\x8f\x01\n\x15ListPhraseSetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"i\n\x16ListPhraseSetsResponse\x12\x36\n\x0bphrase_sets\x18\x01 \x03(\x0b\x32!.google.cloud.speech.v2.PhraseSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"L\n\x13GetPhraseSetRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspeech.googleapis.com/PhraseSet\"\x9c\x01\n\x16UpdatePhraseSetRequest\x12:\n\nphrase_set\x18\x01 \x01(\x0b\x32!.google.cloud.speech.v2.PhraseSetB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x8b\x01\n\x16\x44\x65letePhraseSetRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspeech.googleapis.com/PhraseSet\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x15\n\rallow_missing\x18\x04 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"v\n\x18UndeletePhraseSetRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspeech.googleapis.com/PhraseSet\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x04 \x01(\t2\xbf%\n\x06Speech\x12\xec\x01\n\x10\x43reateRecognizer\x12/.google.cloud.speech.v2.CreateRecognizerRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\x82\xd3\xe4\x93\x02=\"//v2/{parent=projects/*/locations/*}/recognizers:\nrecognizer\xda\x41\x1fparent,recognizer,recognizer_id\xca\x41\x1f\n\nRecognizer\x12\x11OperationMetadata\x12\xb4\x01\n\x0fListRecognizers\x12..google.cloud.speech.v2.ListRecognizersRequest\x1a/.google.cloud.speech.v2.ListRecognizersResponse\"@\x82\xd3\xe4\x93\x02\x31\x12//v2/{parent=projects/*/locations/*}/recognizers\xda\x41\x06parent\x12\xa1\x01\n\rGetRecognizer\x12,.google.cloud.speech.v2.GetRecognizerRequest\x1a\".google.cloud.speech.v2.Recognizer\">\x82\xd3\xe4\x93\x02\x31\x12//v2/{name=projects/*/locations/*/recognizers/*}\xda\x41\x04name\x12\xee\x01\n\x10UpdateRecognizer\x12/.google.cloud.speech.v2.UpdateRecognizerRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\x82\xd3\xe4\x93\x02H2:/v2/{recognizer.name=projects/*/locations/*/recognizers/*}:\nrecognizer\xda\x41\x16recognizer,update_mask\xca\x41\x1f\n\nRecognizer\x12\x11OperationMetadata\x12\xc4\x01\n\x10\x44\x65leteRecognizer\x12/.google.cloud.speech.v2.DeleteRecognizerRequest\x1a\x1d.google.longrunning.Operation\"`\x82\xd3\xe4\x93\x02\x31*//v2/{name=projects/*/locations/*/recognizers/*}\xda\x41\x04name\xca\x41\x1f\n\nRecognizer\x12\x11OperationMetadata\x12\xd4\x01\n\x12UndeleteRecognizer\x12\x31.google.cloud.speech.v2.UndeleteRecognizerRequest\x1a\x1d.google.longrunning.Operation\"l\x82\xd3\xe4\x93\x02=\"8/v2/{name=projects/*/locations/*/recognizers/*}:undelete:\x01*\xda\x41\x04name\xca\x41\x1f\n\nRecognizer\x12\x11OperationMetadata\x12\xf9\x01\n\tRecognize\x12(.google.cloud.speech.v2.RecognizeRequest\x1a).google.cloud.speech.v2.RecognizeResponse\"\x96\x01\x82\xd3\xe4\x93\x02\x44\"?/v2/{recognizer=projects/*/locations/*/recognizers/*}:recognize:\x01*\xda\x41%recognizer,config,config_mask,content\xda\x41!recognizer,config,config_mask,uri\x12\x81\x01\n\x12StreamingRecognize\x12\x31.google.cloud.speech.v2.StreamingRecognizeRequest\x1a\x32.google.cloud.speech.v2.StreamingRecognizeResponse\"\x00(\x01\x30\x01\x12\x84\x02\n\x0e\x42\x61tchRecognize\x12-.google.cloud.speech.v2.BatchRecognizeRequest\x1a\x1d.google.longrunning.Operation\"\xa3\x01\x82\xd3\xe4\x93\x02I\"D/v2/{recognizer=projects/*/locations/*/recognizers/*}:batchRecognize:\x01*\xda\x41#recognizer,config,config_mask,files\xca\x41+\n\x16\x42\x61tchRecognizeResponse\x12\x11OperationMetadata\x12\x8e\x01\n\tGetConfig\x12(.google.cloud.speech.v2.GetConfigRequest\x1a\x1e.google.cloud.speech.v2.Config\"7\x82\xd3\xe4\x93\x02*\x12(/v2/{name=projects/*/locations/*/config}\xda\x41\x04name\x12\xb1\x01\n\x0cUpdateConfig\x12+.google.cloud.speech.v2.UpdateConfigRequest\x1a\x1e.google.cloud.speech.v2.Config\"T\x82\xd3\xe4\x93\x02\x39\x32//v2/{config.name=projects/*/locations/*/config}:\x06\x63onfig\xda\x41\x12\x63onfig,update_mask\x12\xf7\x01\n\x11\x43reateCustomClass\x12\x30.google.cloud.speech.v2.CreateCustomClassRequest\x1a\x1d.google.longrunning.Operation\"\x90\x01\x82\xd3\xe4\x93\x02\x41\"1/v2/{parent=projects/*/locations/*}/customClasses:\x0c\x63ustom_class\xda\x41#parent,custom_class,custom_class_id\xca\x41 \n\x0b\x43ustomClass\x12\x11OperationMetadata\x12\xbc\x01\n\x11ListCustomClasses\x12\x30.google.cloud.speech.v2.ListCustomClassesRequest\x1a\x31.google.cloud.speech.v2.ListCustomClassesResponse\"B\x82\xd3\xe4\x93\x02\x33\x12\x31/v2/{parent=projects/*/locations/*}/customClasses\xda\x41\x06parent\x12\xa6\x01\n\x0eGetCustomClass\x12-.google.cloud.speech.v2.GetCustomClassRequest\x1a#.google.cloud.speech.v2.CustomClass\"@\x82\xd3\xe4\x93\x02\x33\x12\x31/v2/{name=projects/*/locations/*/customClasses/*}\xda\x41\x04name\x12\xf9\x01\n\x11UpdateCustomClass\x12\x30.google.cloud.speech.v2.UpdateCustomClassRequest\x1a\x1d.google.longrunning.Operation\"\x92\x01\x82\xd3\xe4\x93\x02N2>/v2/{custom_class.name=projects/*/locations/*/customClasses/*}:\x0c\x63ustom_class\xda\x41\x18\x63ustom_class,update_mask\xca\x41 \n\x0b\x43ustomClass\x12\x11OperationMetadata\x12\xc9\x01\n\x11\x44\x65leteCustomClass\x12\x30.google.cloud.speech.v2.DeleteCustomClassRequest\x1a\x1d.google.longrunning.Operation\"c\x82\xd3\xe4\x93\x02\x33*1/v2/{name=projects/*/locations/*/customClasses/*}\xda\x41\x04name\xca\x41 \n\x0b\x43ustomClass\x12\x11OperationMetadata\x12\xd9\x01\n\x13UndeleteCustomClass\x12\x32.google.cloud.speech.v2.UndeleteCustomClassRequest\x1a\x1d.google.longrunning.Operation\"o\x82\xd3\xe4\x93\x02?\":/v2/{name=projects/*/locations/*/customClasses/*}:undelete:\x01*\xda\x41\x04name\xca\x41 \n\x0b\x43ustomClass\x12\x11OperationMetadata\x12\xe8\x01\n\x0f\x43reatePhraseSet\x12..google.cloud.speech.v2.CreatePhraseSetRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\x82\xd3\xe4\x93\x02<\"./v2/{parent=projects/*/locations/*}/phraseSets:\nphrase_set\xda\x41\x1fparent,phrase_set,phrase_set_id\xca\x41\x1e\n\tPhraseSet\x12\x11OperationMetadata\x12\xb0\x01\n\x0eListPhraseSets\x12-.google.cloud.speech.v2.ListPhraseSetsRequest\x1a..google.cloud.speech.v2.ListPhraseSetsResponse\"?\x82\xd3\xe4\x93\x02\x30\x12./v2/{parent=projects/*/locations/*}/phraseSets\xda\x41\x06parent\x12\x9d\x01\n\x0cGetPhraseSet\x12+.google.cloud.speech.v2.GetPhraseSetRequest\x1a!.google.cloud.speech.v2.PhraseSet\"=\x82\xd3\xe4\x93\x02\x30\x12./v2/{name=projects/*/locations/*/phraseSets/*}\xda\x41\x04name\x12\xea\x01\n\x0fUpdatePhraseSet\x12..google.cloud.speech.v2.UpdatePhraseSetRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\x82\xd3\xe4\x93\x02G29/v2/{phrase_set.name=projects/*/locations/*/phraseSets/*}:\nphrase_set\xda\x41\x16phrase_set,update_mask\xca\x41\x1e\n\tPhraseSet\x12\x11OperationMetadata\x12\xc0\x01\n\x0f\x44\x65letePhraseSet\x12..google.cloud.speech.v2.DeletePhraseSetRequest\x1a\x1d.google.longrunning.Operation\"^\x82\xd3\xe4\x93\x02\x30*./v2/{name=projects/*/locations/*/phraseSets/*}\xda\x41\x04name\xca\x41\x1e\n\tPhraseSet\x12\x11OperationMetadata\x12\xd0\x01\n\x11UndeletePhraseSet\x12\x30.google.cloud.speech.v2.UndeletePhraseSetRequest\x1a\x1d.google.longrunning.Operation\"j\x82\xd3\xe4\x93\x02<\"7/v2/{name=projects/*/locations/*/phraseSets/*}:undelete:\x01*\xda\x41\x04name\xca\x41\x1e\n\tPhraseSet\x12\x11OperationMetadata\x1aI\xca\x41\x15speech.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x89\x03\n\x1a\x63om.google.cloud.speech.v2B\x10\x43loudSpeechProtoP\x01Z2cloud.google.com/go/speech/apiv2/speechpb;speechpb\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3"
|
19
19
|
|
20
20
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
21
|
|
@@ -156,7 +156,8 @@ module Google
|
|
156
156
|
credentials: credentials,
|
157
157
|
endpoint: @config.endpoint,
|
158
158
|
channel_args: @config.channel_args,
|
159
|
-
interceptors: @config.interceptors
|
159
|
+
interceptors: @config.interceptors,
|
160
|
+
channel_pool_config: @config.channel_pool
|
160
161
|
)
|
161
162
|
end
|
162
163
|
|
@@ -804,7 +805,8 @@ module Google
|
|
804
805
|
# @param recognizer [::String]
|
805
806
|
# Required. The name of the Recognizer to use during recognition. The
|
806
807
|
# expected format is
|
807
|
-
# `projects/{project}/locations/{location}/recognizers/{recognizer}`.
|
808
|
+
# `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
|
809
|
+
# \\{recognizer} segment may be set to `_` to use an empty implicit Recognizer.
|
808
810
|
# @param config [::Google::Cloud::Speech::V2::RecognitionConfig, ::Hash]
|
809
811
|
# Features and audio metadata to use for the Automatic Speech Recognition.
|
810
812
|
# This field in combination with the
|
@@ -1005,7 +1007,10 @@ module Google
|
|
1005
1007
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1006
1008
|
#
|
1007
1009
|
# @param recognizer [::String]
|
1008
|
-
# Required.
|
1010
|
+
# Required. The name of the Recognizer to use during recognition. The
|
1011
|
+
# expected format is
|
1012
|
+
# `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
|
1013
|
+
# \\{recognizer} segment may be set to `_` to use an empty implicit Recognizer.
|
1009
1014
|
# @param config [::Google::Cloud::Speech::V2::RecognitionConfig, ::Hash]
|
1010
1015
|
# Features and audio metadata to use for the Automatic Speech Recognition.
|
1011
1016
|
# This field in combination with the
|
@@ -2615,6 +2620,14 @@ module Google
|
|
2615
2620
|
end
|
2616
2621
|
end
|
2617
2622
|
|
2623
|
+
##
|
2624
|
+
# Configuration for the channel pool
|
2625
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
2626
|
+
#
|
2627
|
+
def channel_pool
|
2628
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
2629
|
+
end
|
2630
|
+
|
2618
2631
|
##
|
2619
2632
|
# Configuration RPC class for the Speech API.
|
2620
2633
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -207,6 +207,29 @@ module Google
|
|
207
207
|
# @return [::Gapic::Operation]
|
208
208
|
#
|
209
209
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
210
|
+
#
|
211
|
+
# @example Basic example
|
212
|
+
# require "google/cloud/speech/v2"
|
213
|
+
#
|
214
|
+
# # Create a client object. The client can be reused for multiple calls.
|
215
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
216
|
+
#
|
217
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
218
|
+
# request = Google::Cloud::Speech::V2::CreateRecognizerRequest.new
|
219
|
+
#
|
220
|
+
# # Call the create_recognizer method.
|
221
|
+
# result = client.create_recognizer request
|
222
|
+
#
|
223
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
224
|
+
# # check the status of an operation, cancel it, or wait for results.
|
225
|
+
# # Here is how to wait for a response.
|
226
|
+
# result.wait_until_done! timeout: 60
|
227
|
+
# if result.response?
|
228
|
+
# p result.response
|
229
|
+
# else
|
230
|
+
# puts "No response received."
|
231
|
+
# end
|
232
|
+
#
|
210
233
|
def create_recognizer request, options = nil
|
211
234
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
212
235
|
|
@@ -285,6 +308,26 @@ module Google
|
|
285
308
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Speech::V2::Recognizer>]
|
286
309
|
#
|
287
310
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
311
|
+
#
|
312
|
+
# @example Basic example
|
313
|
+
# require "google/cloud/speech/v2"
|
314
|
+
#
|
315
|
+
# # Create a client object. The client can be reused for multiple calls.
|
316
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
317
|
+
#
|
318
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
319
|
+
# request = Google::Cloud::Speech::V2::ListRecognizersRequest.new
|
320
|
+
#
|
321
|
+
# # Call the list_recognizers method.
|
322
|
+
# result = client.list_recognizers request
|
323
|
+
#
|
324
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
325
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
326
|
+
# result.each do |item|
|
327
|
+
# # Each element is of type ::Google::Cloud::Speech::V2::Recognizer.
|
328
|
+
# p item
|
329
|
+
# end
|
330
|
+
#
|
288
331
|
def list_recognizers request, options = nil
|
289
332
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
290
333
|
|
@@ -352,6 +395,22 @@ module Google
|
|
352
395
|
# @return [::Google::Cloud::Speech::V2::Recognizer]
|
353
396
|
#
|
354
397
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
398
|
+
#
|
399
|
+
# @example Basic example
|
400
|
+
# require "google/cloud/speech/v2"
|
401
|
+
#
|
402
|
+
# # Create a client object. The client can be reused for multiple calls.
|
403
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
404
|
+
#
|
405
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
406
|
+
# request = Google::Cloud::Speech::V2::GetRecognizerRequest.new
|
407
|
+
#
|
408
|
+
# # Call the get_recognizer method.
|
409
|
+
# result = client.get_recognizer request
|
410
|
+
#
|
411
|
+
# # The returned object is of type Google::Cloud::Speech::V2::Recognizer.
|
412
|
+
# p result
|
413
|
+
#
|
355
414
|
def get_recognizer request, options = nil
|
356
415
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
357
416
|
|
@@ -423,6 +482,29 @@ module Google
|
|
423
482
|
# @return [::Gapic::Operation]
|
424
483
|
#
|
425
484
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
485
|
+
#
|
486
|
+
# @example Basic example
|
487
|
+
# require "google/cloud/speech/v2"
|
488
|
+
#
|
489
|
+
# # Create a client object. The client can be reused for multiple calls.
|
490
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
491
|
+
#
|
492
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
493
|
+
# request = Google::Cloud::Speech::V2::UpdateRecognizerRequest.new
|
494
|
+
#
|
495
|
+
# # Call the update_recognizer method.
|
496
|
+
# result = client.update_recognizer request
|
497
|
+
#
|
498
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
499
|
+
# # check the status of an operation, cancel it, or wait for results.
|
500
|
+
# # Here is how to wait for a response.
|
501
|
+
# result.wait_until_done! timeout: 60
|
502
|
+
# if result.response?
|
503
|
+
# p result.response
|
504
|
+
# else
|
505
|
+
# puts "No response received."
|
506
|
+
# end
|
507
|
+
#
|
426
508
|
def update_recognizer request, options = nil
|
427
509
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
428
510
|
|
@@ -497,6 +579,29 @@ module Google
|
|
497
579
|
# @return [::Gapic::Operation]
|
498
580
|
#
|
499
581
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
582
|
+
#
|
583
|
+
# @example Basic example
|
584
|
+
# require "google/cloud/speech/v2"
|
585
|
+
#
|
586
|
+
# # Create a client object. The client can be reused for multiple calls.
|
587
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
588
|
+
#
|
589
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
590
|
+
# request = Google::Cloud::Speech::V2::DeleteRecognizerRequest.new
|
591
|
+
#
|
592
|
+
# # Call the delete_recognizer method.
|
593
|
+
# result = client.delete_recognizer request
|
594
|
+
#
|
595
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
596
|
+
# # check the status of an operation, cancel it, or wait for results.
|
597
|
+
# # Here is how to wait for a response.
|
598
|
+
# result.wait_until_done! timeout: 60
|
599
|
+
# if result.response?
|
600
|
+
# p result.response
|
601
|
+
# else
|
602
|
+
# puts "No response received."
|
603
|
+
# end
|
604
|
+
#
|
500
605
|
def delete_recognizer request, options = nil
|
501
606
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
502
607
|
|
@@ -568,6 +673,29 @@ module Google
|
|
568
673
|
# @return [::Gapic::Operation]
|
569
674
|
#
|
570
675
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
676
|
+
#
|
677
|
+
# @example Basic example
|
678
|
+
# require "google/cloud/speech/v2"
|
679
|
+
#
|
680
|
+
# # Create a client object. The client can be reused for multiple calls.
|
681
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
682
|
+
#
|
683
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
684
|
+
# request = Google::Cloud::Speech::V2::UndeleteRecognizerRequest.new
|
685
|
+
#
|
686
|
+
# # Call the undelete_recognizer method.
|
687
|
+
# result = client.undelete_recognizer request
|
688
|
+
#
|
689
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
690
|
+
# # check the status of an operation, cancel it, or wait for results.
|
691
|
+
# # Here is how to wait for a response.
|
692
|
+
# result.wait_until_done! timeout: 60
|
693
|
+
# if result.response?
|
694
|
+
# p result.response
|
695
|
+
# else
|
696
|
+
# puts "No response received."
|
697
|
+
# end
|
698
|
+
#
|
571
699
|
def undelete_recognizer request, options = nil
|
572
700
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
573
701
|
|
@@ -626,7 +754,8 @@ module Google
|
|
626
754
|
# @param recognizer [::String]
|
627
755
|
# Required. The name of the Recognizer to use during recognition. The
|
628
756
|
# expected format is
|
629
|
-
# `projects/{project}/locations/{location}/recognizers/{recognizer}`.
|
757
|
+
# `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
|
758
|
+
# \\{recognizer} segment may be set to `_` to use an empty implicit Recognizer.
|
630
759
|
# @param config [::Google::Cloud::Speech::V2::RecognitionConfig, ::Hash]
|
631
760
|
# Features and audio metadata to use for the Automatic Speech Recognition.
|
632
761
|
# This field in combination with the
|
@@ -669,6 +798,22 @@ module Google
|
|
669
798
|
# @return [::Google::Cloud::Speech::V2::RecognizeResponse]
|
670
799
|
#
|
671
800
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
801
|
+
#
|
802
|
+
# @example Basic example
|
803
|
+
# require "google/cloud/speech/v2"
|
804
|
+
#
|
805
|
+
# # Create a client object. The client can be reused for multiple calls.
|
806
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
807
|
+
#
|
808
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
809
|
+
# request = Google::Cloud::Speech::V2::RecognizeRequest.new
|
810
|
+
#
|
811
|
+
# # Call the recognize method.
|
812
|
+
# result = client.recognize request
|
813
|
+
#
|
814
|
+
# # The returned object is of type Google::Cloud::Speech::V2::RecognizeResponse.
|
815
|
+
# p result
|
816
|
+
#
|
672
817
|
def recognize request, options = nil
|
673
818
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
674
819
|
|
@@ -725,7 +870,10 @@ module Google
|
|
725
870
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
726
871
|
#
|
727
872
|
# @param recognizer [::String]
|
728
|
-
# Required.
|
873
|
+
# Required. The name of the Recognizer to use during recognition. The
|
874
|
+
# expected format is
|
875
|
+
# `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
|
876
|
+
# \\{recognizer} segment may be set to `_` to use an empty implicit Recognizer.
|
729
877
|
# @param config [::Google::Cloud::Speech::V2::RecognitionConfig, ::Hash]
|
730
878
|
# Features and audio metadata to use for the Automatic Speech Recognition.
|
731
879
|
# This field in combination with the
|
@@ -761,6 +909,29 @@ module Google
|
|
761
909
|
# @return [::Gapic::Operation]
|
762
910
|
#
|
763
911
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
912
|
+
#
|
913
|
+
# @example Basic example
|
914
|
+
# require "google/cloud/speech/v2"
|
915
|
+
#
|
916
|
+
# # Create a client object. The client can be reused for multiple calls.
|
917
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
918
|
+
#
|
919
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
920
|
+
# request = Google::Cloud::Speech::V2::BatchRecognizeRequest.new
|
921
|
+
#
|
922
|
+
# # Call the batch_recognize method.
|
923
|
+
# result = client.batch_recognize request
|
924
|
+
#
|
925
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
926
|
+
# # check the status of an operation, cancel it, or wait for results.
|
927
|
+
# # Here is how to wait for a response.
|
928
|
+
# result.wait_until_done! timeout: 60
|
929
|
+
# if result.response?
|
930
|
+
# p result.response
|
931
|
+
# else
|
932
|
+
# puts "No response received."
|
933
|
+
# end
|
934
|
+
#
|
764
935
|
def batch_recognize request, options = nil
|
765
936
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
766
937
|
|
@@ -826,6 +997,22 @@ module Google
|
|
826
997
|
# @return [::Google::Cloud::Speech::V2::Config]
|
827
998
|
#
|
828
999
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1000
|
+
#
|
1001
|
+
# @example Basic example
|
1002
|
+
# require "google/cloud/speech/v2"
|
1003
|
+
#
|
1004
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1005
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
1006
|
+
#
|
1007
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1008
|
+
# request = Google::Cloud::Speech::V2::GetConfigRequest.new
|
1009
|
+
#
|
1010
|
+
# # Call the get_config method.
|
1011
|
+
# result = client.get_config request
|
1012
|
+
#
|
1013
|
+
# # The returned object is of type Google::Cloud::Speech::V2::Config.
|
1014
|
+
# p result
|
1015
|
+
#
|
829
1016
|
def get_config request, options = nil
|
830
1017
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
831
1018
|
|
@@ -893,6 +1080,22 @@ module Google
|
|
893
1080
|
# @return [::Google::Cloud::Speech::V2::Config]
|
894
1081
|
#
|
895
1082
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1083
|
+
#
|
1084
|
+
# @example Basic example
|
1085
|
+
# require "google/cloud/speech/v2"
|
1086
|
+
#
|
1087
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1088
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
1089
|
+
#
|
1090
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1091
|
+
# request = Google::Cloud::Speech::V2::UpdateConfigRequest.new
|
1092
|
+
#
|
1093
|
+
# # Call the update_config method.
|
1094
|
+
# result = client.update_config request
|
1095
|
+
#
|
1096
|
+
# # The returned object is of type Google::Cloud::Speech::V2::Config.
|
1097
|
+
# p result
|
1098
|
+
#
|
896
1099
|
def update_config request, options = nil
|
897
1100
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
898
1101
|
|
@@ -967,6 +1170,29 @@ module Google
|
|
967
1170
|
# @return [::Gapic::Operation]
|
968
1171
|
#
|
969
1172
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1173
|
+
#
|
1174
|
+
# @example Basic example
|
1175
|
+
# require "google/cloud/speech/v2"
|
1176
|
+
#
|
1177
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1178
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
1179
|
+
#
|
1180
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1181
|
+
# request = Google::Cloud::Speech::V2::CreateCustomClassRequest.new
|
1182
|
+
#
|
1183
|
+
# # Call the create_custom_class method.
|
1184
|
+
# result = client.create_custom_class request
|
1185
|
+
#
|
1186
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1187
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1188
|
+
# # Here is how to wait for a response.
|
1189
|
+
# result.wait_until_done! timeout: 60
|
1190
|
+
# if result.response?
|
1191
|
+
# p result.response
|
1192
|
+
# else
|
1193
|
+
# puts "No response received."
|
1194
|
+
# end
|
1195
|
+
#
|
970
1196
|
def create_custom_class request, options = nil
|
971
1197
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
972
1198
|
|
@@ -1046,6 +1272,26 @@ module Google
|
|
1046
1272
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Speech::V2::CustomClass>]
|
1047
1273
|
#
|
1048
1274
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1275
|
+
#
|
1276
|
+
# @example Basic example
|
1277
|
+
# require "google/cloud/speech/v2"
|
1278
|
+
#
|
1279
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1280
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
1281
|
+
#
|
1282
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1283
|
+
# request = Google::Cloud::Speech::V2::ListCustomClassesRequest.new
|
1284
|
+
#
|
1285
|
+
# # Call the list_custom_classes method.
|
1286
|
+
# result = client.list_custom_classes request
|
1287
|
+
#
|
1288
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1289
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1290
|
+
# result.each do |item|
|
1291
|
+
# # Each element is of type ::Google::Cloud::Speech::V2::CustomClass.
|
1292
|
+
# p item
|
1293
|
+
# end
|
1294
|
+
#
|
1049
1295
|
def list_custom_classes request, options = nil
|
1050
1296
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1051
1297
|
|
@@ -1111,6 +1357,22 @@ module Google
|
|
1111
1357
|
# @return [::Google::Cloud::Speech::V2::CustomClass]
|
1112
1358
|
#
|
1113
1359
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1360
|
+
#
|
1361
|
+
# @example Basic example
|
1362
|
+
# require "google/cloud/speech/v2"
|
1363
|
+
#
|
1364
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1365
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
1366
|
+
#
|
1367
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1368
|
+
# request = Google::Cloud::Speech::V2::GetCustomClassRequest.new
|
1369
|
+
#
|
1370
|
+
# # Call the get_custom_class method.
|
1371
|
+
# result = client.get_custom_class request
|
1372
|
+
#
|
1373
|
+
# # The returned object is of type Google::Cloud::Speech::V2::CustomClass.
|
1374
|
+
# p result
|
1375
|
+
#
|
1114
1376
|
def get_custom_class request, options = nil
|
1115
1377
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1116
1378
|
|
@@ -1183,6 +1445,29 @@ module Google
|
|
1183
1445
|
# @return [::Gapic::Operation]
|
1184
1446
|
#
|
1185
1447
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1448
|
+
#
|
1449
|
+
# @example Basic example
|
1450
|
+
# require "google/cloud/speech/v2"
|
1451
|
+
#
|
1452
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1453
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
1454
|
+
#
|
1455
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1456
|
+
# request = Google::Cloud::Speech::V2::UpdateCustomClassRequest.new
|
1457
|
+
#
|
1458
|
+
# # Call the update_custom_class method.
|
1459
|
+
# result = client.update_custom_class request
|
1460
|
+
#
|
1461
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1462
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1463
|
+
# # Here is how to wait for a response.
|
1464
|
+
# result.wait_until_done! timeout: 60
|
1465
|
+
# if result.response?
|
1466
|
+
# p result.response
|
1467
|
+
# else
|
1468
|
+
# puts "No response received."
|
1469
|
+
# end
|
1470
|
+
#
|
1186
1471
|
def update_custom_class request, options = nil
|
1187
1472
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1188
1473
|
|
@@ -1258,6 +1543,29 @@ module Google
|
|
1258
1543
|
# @return [::Gapic::Operation]
|
1259
1544
|
#
|
1260
1545
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1546
|
+
#
|
1547
|
+
# @example Basic example
|
1548
|
+
# require "google/cloud/speech/v2"
|
1549
|
+
#
|
1550
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1551
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
1552
|
+
#
|
1553
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1554
|
+
# request = Google::Cloud::Speech::V2::DeleteCustomClassRequest.new
|
1555
|
+
#
|
1556
|
+
# # Call the delete_custom_class method.
|
1557
|
+
# result = client.delete_custom_class request
|
1558
|
+
#
|
1559
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1560
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1561
|
+
# # Here is how to wait for a response.
|
1562
|
+
# result.wait_until_done! timeout: 60
|
1563
|
+
# if result.response?
|
1564
|
+
# p result.response
|
1565
|
+
# else
|
1566
|
+
# puts "No response received."
|
1567
|
+
# end
|
1568
|
+
#
|
1261
1569
|
def delete_custom_class request, options = nil
|
1262
1570
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1263
1571
|
|
@@ -1330,6 +1638,29 @@ module Google
|
|
1330
1638
|
# @return [::Gapic::Operation]
|
1331
1639
|
#
|
1332
1640
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1641
|
+
#
|
1642
|
+
# @example Basic example
|
1643
|
+
# require "google/cloud/speech/v2"
|
1644
|
+
#
|
1645
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1646
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
1647
|
+
#
|
1648
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1649
|
+
# request = Google::Cloud::Speech::V2::UndeleteCustomClassRequest.new
|
1650
|
+
#
|
1651
|
+
# # Call the undelete_custom_class method.
|
1652
|
+
# result = client.undelete_custom_class request
|
1653
|
+
#
|
1654
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1655
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1656
|
+
# # Here is how to wait for a response.
|
1657
|
+
# result.wait_until_done! timeout: 60
|
1658
|
+
# if result.response?
|
1659
|
+
# p result.response
|
1660
|
+
# else
|
1661
|
+
# puts "No response received."
|
1662
|
+
# end
|
1663
|
+
#
|
1333
1664
|
def undelete_custom_class request, options = nil
|
1334
1665
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1335
1666
|
|
@@ -1405,6 +1736,29 @@ module Google
|
|
1405
1736
|
# @return [::Gapic::Operation]
|
1406
1737
|
#
|
1407
1738
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1739
|
+
#
|
1740
|
+
# @example Basic example
|
1741
|
+
# require "google/cloud/speech/v2"
|
1742
|
+
#
|
1743
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1744
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
1745
|
+
#
|
1746
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1747
|
+
# request = Google::Cloud::Speech::V2::CreatePhraseSetRequest.new
|
1748
|
+
#
|
1749
|
+
# # Call the create_phrase_set method.
|
1750
|
+
# result = client.create_phrase_set request
|
1751
|
+
#
|
1752
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1753
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1754
|
+
# # Here is how to wait for a response.
|
1755
|
+
# result.wait_until_done! timeout: 60
|
1756
|
+
# if result.response?
|
1757
|
+
# p result.response
|
1758
|
+
# else
|
1759
|
+
# puts "No response received."
|
1760
|
+
# end
|
1761
|
+
#
|
1408
1762
|
def create_phrase_set request, options = nil
|
1409
1763
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1410
1764
|
|
@@ -1483,6 +1837,26 @@ module Google
|
|
1483
1837
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Speech::V2::PhraseSet>]
|
1484
1838
|
#
|
1485
1839
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1840
|
+
#
|
1841
|
+
# @example Basic example
|
1842
|
+
# require "google/cloud/speech/v2"
|
1843
|
+
#
|
1844
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1845
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
1846
|
+
#
|
1847
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1848
|
+
# request = Google::Cloud::Speech::V2::ListPhraseSetsRequest.new
|
1849
|
+
#
|
1850
|
+
# # Call the list_phrase_sets method.
|
1851
|
+
# result = client.list_phrase_sets request
|
1852
|
+
#
|
1853
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1854
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1855
|
+
# result.each do |item|
|
1856
|
+
# # Each element is of type ::Google::Cloud::Speech::V2::PhraseSet.
|
1857
|
+
# p item
|
1858
|
+
# end
|
1859
|
+
#
|
1486
1860
|
def list_phrase_sets request, options = nil
|
1487
1861
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1488
1862
|
|
@@ -1548,6 +1922,22 @@ module Google
|
|
1548
1922
|
# @return [::Google::Cloud::Speech::V2::PhraseSet]
|
1549
1923
|
#
|
1550
1924
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1925
|
+
#
|
1926
|
+
# @example Basic example
|
1927
|
+
# require "google/cloud/speech/v2"
|
1928
|
+
#
|
1929
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1930
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
1931
|
+
#
|
1932
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1933
|
+
# request = Google::Cloud::Speech::V2::GetPhraseSetRequest.new
|
1934
|
+
#
|
1935
|
+
# # Call the get_phrase_set method.
|
1936
|
+
# result = client.get_phrase_set request
|
1937
|
+
#
|
1938
|
+
# # The returned object is of type Google::Cloud::Speech::V2::PhraseSet.
|
1939
|
+
# p result
|
1940
|
+
#
|
1551
1941
|
def get_phrase_set request, options = nil
|
1552
1942
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1553
1943
|
|
@@ -1619,6 +2009,29 @@ module Google
|
|
1619
2009
|
# @return [::Gapic::Operation]
|
1620
2010
|
#
|
1621
2011
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2012
|
+
#
|
2013
|
+
# @example Basic example
|
2014
|
+
# require "google/cloud/speech/v2"
|
2015
|
+
#
|
2016
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2017
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
2018
|
+
#
|
2019
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2020
|
+
# request = Google::Cloud::Speech::V2::UpdatePhraseSetRequest.new
|
2021
|
+
#
|
2022
|
+
# # Call the update_phrase_set method.
|
2023
|
+
# result = client.update_phrase_set request
|
2024
|
+
#
|
2025
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2026
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2027
|
+
# # Here is how to wait for a response.
|
2028
|
+
# result.wait_until_done! timeout: 60
|
2029
|
+
# if result.response?
|
2030
|
+
# p result.response
|
2031
|
+
# else
|
2032
|
+
# puts "No response received."
|
2033
|
+
# end
|
2034
|
+
#
|
1622
2035
|
def update_phrase_set request, options = nil
|
1623
2036
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1624
2037
|
|
@@ -1693,6 +2106,29 @@ module Google
|
|
1693
2106
|
# @return [::Gapic::Operation]
|
1694
2107
|
#
|
1695
2108
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2109
|
+
#
|
2110
|
+
# @example Basic example
|
2111
|
+
# require "google/cloud/speech/v2"
|
2112
|
+
#
|
2113
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2114
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
2115
|
+
#
|
2116
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2117
|
+
# request = Google::Cloud::Speech::V2::DeletePhraseSetRequest.new
|
2118
|
+
#
|
2119
|
+
# # Call the delete_phrase_set method.
|
2120
|
+
# result = client.delete_phrase_set request
|
2121
|
+
#
|
2122
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2123
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2124
|
+
# # Here is how to wait for a response.
|
2125
|
+
# result.wait_until_done! timeout: 60
|
2126
|
+
# if result.response?
|
2127
|
+
# p result.response
|
2128
|
+
# else
|
2129
|
+
# puts "No response received."
|
2130
|
+
# end
|
2131
|
+
#
|
1696
2132
|
def delete_phrase_set request, options = nil
|
1697
2133
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1698
2134
|
|
@@ -1764,6 +2200,29 @@ module Google
|
|
1764
2200
|
# @return [::Gapic::Operation]
|
1765
2201
|
#
|
1766
2202
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2203
|
+
#
|
2204
|
+
# @example Basic example
|
2205
|
+
# require "google/cloud/speech/v2"
|
2206
|
+
#
|
2207
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2208
|
+
# client = Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
2209
|
+
#
|
2210
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2211
|
+
# request = Google::Cloud::Speech::V2::UndeletePhraseSetRequest.new
|
2212
|
+
#
|
2213
|
+
# # Call the undelete_phrase_set method.
|
2214
|
+
# result = client.undelete_phrase_set request
|
2215
|
+
#
|
2216
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2217
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2218
|
+
# # Here is how to wait for a response.
|
2219
|
+
# result.wait_until_done! timeout: 60
|
2220
|
+
# if result.response?
|
2221
|
+
# p result.response
|
2222
|
+
# else
|
2223
|
+
# puts "No response received."
|
2224
|
+
# end
|
2225
|
+
#
|
1767
2226
|
def undelete_phrase_set request, options = nil
|
1768
2227
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1769
2228
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
@@ -260,7 +260,7 @@ module Google
|
|
260
260
|
# characters or less.
|
261
261
|
# @!attribute [rw] model
|
262
262
|
# @return [::String]
|
263
|
-
#
|
263
|
+
# Optional. Which model to use for recognition requests. Select the model
|
264
264
|
# best suited to your domain to get best results.
|
265
265
|
#
|
266
266
|
# Guidance for choosing which model to use can be found in the [Transcription
|
@@ -271,7 +271,7 @@ module Google
|
|
271
271
|
# Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
|
272
272
|
# @!attribute [rw] language_codes
|
273
273
|
# @return [::Array<::String>]
|
274
|
-
#
|
274
|
+
# Optional. The language of the supplied audio as a
|
275
275
|
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
|
276
276
|
#
|
277
277
|
# Supported languages for each model are listed in the [Table of Supported
|
@@ -561,6 +561,30 @@ module Google
|
|
561
561
|
# @return [::Google::Cloud::Speech::V2::ExplicitDecodingConfig]
|
562
562
|
# Explicitly specified decoding parameters.
|
563
563
|
# Required if using headerless PCM audio (linear16, mulaw, alaw).
|
564
|
+
# @!attribute [rw] model
|
565
|
+
# @return [::String]
|
566
|
+
# Optional. Which model to use for recognition requests. Select the model
|
567
|
+
# best suited to your domain to get best results.
|
568
|
+
#
|
569
|
+
# Guidance for choosing which model to use can be found in the [Transcription
|
570
|
+
# Models
|
571
|
+
# Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model)
|
572
|
+
# and the models supported in each region can be found in the [Table Of
|
573
|
+
# Supported
|
574
|
+
# Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
|
575
|
+
# @!attribute [rw] language_codes
|
576
|
+
# @return [::Array<::String>]
|
577
|
+
# Optional. The language of the supplied audio as a
|
578
|
+
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
|
579
|
+
# Language tags are normalized to BCP-47 before they are used eg "en-us"
|
580
|
+
# becomes "en-US".
|
581
|
+
#
|
582
|
+
# Supported languages for each model are listed in the [Table of Supported
|
583
|
+
# Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).
|
584
|
+
#
|
585
|
+
# If additional languages are provided, recognition result will contain
|
586
|
+
# recognition in the most likely language detected. The recognition result
|
587
|
+
# will include the language tag of the language detected in the audio.
|
564
588
|
# @!attribute [rw] features
|
565
589
|
# @return [::Google::Cloud::Speech::V2::RecognitionFeatures]
|
566
590
|
# Speech recognition features to enable.
|
@@ -582,7 +606,8 @@ module Google
|
|
582
606
|
# @return [::String]
|
583
607
|
# Required. The name of the Recognizer to use during recognition. The
|
584
608
|
# expected format is
|
585
|
-
# `projects/{project}/locations/{location}/recognizers/{recognizer}`.
|
609
|
+
# `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
|
610
|
+
# \\{recognizer} segment may be set to `_` to use an empty implicit Recognizer.
|
586
611
|
# @!attribute [rw] config
|
587
612
|
# @return [::Google::Cloud::Speech::V2::RecognitionConfig]
|
588
613
|
# Features and audio metadata to use for the Automatic Speech Recognition.
|
@@ -816,25 +841,28 @@ module Google
|
|
816
841
|
# {::Google::Cloud::Speech::V2::Speech::Client#streaming_recognize StreamingRecognize}
|
817
842
|
# method. Multiple
|
818
843
|
# {::Google::Cloud::Speech::V2::StreamingRecognizeRequest StreamingRecognizeRequest}
|
819
|
-
# messages are sent
|
844
|
+
# messages are sent in one call.
|
845
|
+
#
|
846
|
+
# If the {::Google::Cloud::Speech::V2::Recognizer Recognizer} referenced by
|
847
|
+
# {::Google::Cloud::Speech::V2::StreamingRecognizeRequest#recognizer recognizer}
|
848
|
+
# contains a fully specified request configuration then the stream may only
|
849
|
+
# contain messages with only
|
850
|
+
# {::Google::Cloud::Speech::V2::StreamingRecognizeRequest#audio audio} set.
|
851
|
+
#
|
852
|
+
# Otherwise the first message must contain a
|
820
853
|
# {::Google::Cloud::Speech::V2::StreamingRecognizeRequest#recognizer recognizer} and
|
821
|
-
#
|
822
|
-
# {::Google::Cloud::Speech::V2::StreamingRecognizeRequest#streaming_config streaming_config}
|
823
|
-
# message and must not contain
|
824
|
-
# {::Google::Cloud::Speech::V2::StreamingRecognizeRequest#audio audio}. All
|
825
|
-
# subsequent messages must contain
|
826
|
-
# {::Google::Cloud::Speech::V2::StreamingRecognizeRequest#audio audio} and must not
|
827
|
-
# contain a
|
854
|
+
# a
|
828
855
|
# {::Google::Cloud::Speech::V2::StreamingRecognizeRequest#streaming_config streaming_config}
|
829
|
-
# message
|
856
|
+
# message that together fully specify the request configuration and must not
|
857
|
+
# contain {::Google::Cloud::Speech::V2::StreamingRecognizeRequest#audio audio}. All
|
858
|
+
# subsequent messages must only have
|
859
|
+
# {::Google::Cloud::Speech::V2::StreamingRecognizeRequest#audio audio} set.
|
830
860
|
# @!attribute [rw] recognizer
|
831
861
|
# @return [::String]
|
832
|
-
# Required.
|
833
|
-
#
|
834
|
-
#
|
835
|
-
#
|
836
|
-
# being used has a
|
837
|
-
# {::Google::Cloud::Speech::V2::Recognizer#default_recognition_config default_recognition_config}.
|
862
|
+
# Required. The name of the Recognizer to use during recognition. The
|
863
|
+
# expected format is
|
864
|
+
# `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
|
865
|
+
# \\{recognizer} segment may be set to `_` to use an empty implicit Recognizer.
|
838
866
|
# @!attribute [rw] streaming_config
|
839
867
|
# @return [::Google::Cloud::Speech::V2::StreamingRecognitionConfig]
|
840
868
|
# StreamingRecognitionConfig to be used in this recognition attempt.
|
@@ -854,7 +882,10 @@ module Google
|
|
854
882
|
# method.
|
855
883
|
# @!attribute [rw] recognizer
|
856
884
|
# @return [::String]
|
857
|
-
# Required.
|
885
|
+
# Required. The name of the Recognizer to use during recognition. The
|
886
|
+
# expected format is
|
887
|
+
# `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
|
888
|
+
# \\{recognizer} segment may be set to `_` to use an empty implicit Recognizer.
|
858
889
|
# @!attribute [rw] config
|
859
890
|
# @return [::Google::Cloud::Speech::V2::RecognitionConfig]
|
860
891
|
# Features and audio metadata to use for the Automatic Speech Recognition.
|
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.7.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: 2023-
|
11
|
+
date: 2023-09-12 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.20.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.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
241
|
- !ruby/object:Gem::Version
|
242
242
|
version: '0'
|
243
243
|
requirements: []
|
244
|
-
rubygems_version: 3.4.
|
244
|
+
rubygems_version: 3.4.19
|
245
245
|
signing_key:
|
246
246
|
specification_version: 4
|
247
247
|
summary: Converts audio to text by applying powerful neural network models.
|