From ad7c5e02083c40a7beab19f0d5c8dd793daef2a2 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Thu, 8 Nov 2018 10:59:29 -0800 Subject: [PATCH] [CHANGE ME] Re-generated Speech to pick up changes in the API or client library generator. --- Speech/metadata/V1P1Beta1/CloudSpeech.php | 312 +++++++++--------- Speech/src/V1p1beta1/RecognitionAudio.php | 11 +- Speech/src/V1p1beta1/RecognitionConfig.php | 196 ++++++----- Speech/src/V1p1beta1/SpeechContext.php | 8 +- Speech/src/V1p1beta1/SpeechGrpcClient.php | 3 +- .../SpeechRecognitionAlternative.php | 8 +- .../V1p1beta1/StreamingRecognitionResult.php | 38 +++ .../V1p1beta1/StreamingRecognizeRequest.php | 6 +- .../resources/speech_rest_client_config.php | 22 +- 9 files changed, 349 insertions(+), 255 deletions(-) diff --git a/Speech/metadata/V1P1Beta1/CloudSpeech.php b/Speech/metadata/V1P1Beta1/CloudSpeech.php index 82f63bfc9f39..bc2ce9893bb3 100644 --- a/Speech/metadata/V1P1Beta1/CloudSpeech.php +++ b/Speech/metadata/V1P1Beta1/CloudSpeech.php @@ -18,170 +18,174 @@ public static function initOnce() { \GPBMetadata\Google\Longrunning\Operations::initOnce(); \GPBMetadata\Google\Protobuf\Any::initOnce(); \GPBMetadata\Google\Protobuf\Duration::initOnce(); + \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); \GPBMetadata\Google\Rpc\Status::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0acf250a30676f6f676c652f636c6f75642f7370656563682f7631703162" . + "0aa2260a30676f6f676c652f636c6f75642f7370656563682f7631703162" . "657461312f636c6f75645f7370656563682e70726f746f121d676f6f676c" . "652e636c6f75642e7370656563682e7631703162657461311a23676f6f67" . "6c652f6c6f6e6772756e6e696e672f6f7065726174696f6e732e70726f74" . "6f1a19676f6f676c652f70726f746f6275662f616e792e70726f746f1a1e" . "676f6f676c652f70726f746f6275662f6475726174696f6e2e70726f746f" . - "1a1f676f6f676c652f70726f746f6275662f74696d657374616d702e7072" . - "6f746f1a17676f6f676c652f7270632f7374617475732e70726f746f2294" . - "010a105265636f676e697a655265717565737412400a06636f6e66696718" . - "012001280b32302e676f6f676c652e636c6f75642e7370656563682e7631" . - "703162657461312e5265636f676e6974696f6e436f6e666967123e0a0561" . - "7564696f18022001280b322f2e676f6f676c652e636c6f75642e73706565" . - "63682e7631703162657461312e5265636f676e6974696f6e417564696f22" . - "9f010a1b4c6f6e6752756e6e696e675265636f676e697a65526571756573" . - "7412400a06636f6e66696718012001280b32302e676f6f676c652e636c6f" . - "75642e7370656563682e7631703162657461312e5265636f676e6974696f" . - "6e436f6e666967123e0a05617564696f18022001280b322f2e676f6f676c" . + "1a1b676f6f676c652f70726f746f6275662f656d7074792e70726f746f1a" . + "1f676f6f676c652f70726f746f6275662f74696d657374616d702e70726f" . + "746f1a17676f6f676c652f7270632f7374617475732e70726f746f229401" . + "0a105265636f676e697a655265717565737412400a06636f6e6669671801" . + "2001280b32302e676f6f676c652e636c6f75642e7370656563682e763170" . + "3162657461312e5265636f676e6974696f6e436f6e666967123e0a056175" . + "64696f18022001280b322f2e676f6f676c652e636c6f75642e7370656563" . + "682e7631703162657461312e5265636f676e6974696f6e417564696f229f" . + "010a1b4c6f6e6752756e6e696e675265636f676e697a6552657175657374" . + "12400a06636f6e66696718012001280b32302e676f6f676c652e636c6f75" . + "642e7370656563682e7631703162657461312e5265636f676e6974696f6e" . + "436f6e666967123e0a05617564696f18022001280b322f2e676f6f676c65" . + "2e636c6f75642e7370656563682e7631703162657461312e5265636f676e" . + "6974696f6e417564696f22a0010a1953747265616d696e675265636f676e" . + "697a655265717565737412550a1073747265616d696e675f636f6e666967" . + "18012001280b32392e676f6f676c652e636c6f75642e7370656563682e76" . + "31703162657461312e53747265616d696e675265636f676e6974696f6e43" . + "6f6e666967480012170a0d617564696f5f636f6e74656e7418022001280c" . + "480042130a1173747265616d696e675f726571756573742291010a1a5374" . + "7265616d696e675265636f676e6974696f6e436f6e66696712400a06636f" . + "6e66696718012001280b32302e676f6f676c652e636c6f75642e73706565" . + "63682e7631703162657461312e5265636f676e6974696f6e436f6e666967" . + "12180a1073696e676c655f7574746572616e636518022001280812170a0f" . + "696e746572696d5f726573756c747318032001280822ac060a115265636f" . + "676e6974696f6e436f6e66696712500a08656e636f64696e671801200128" . + "0e323e2e676f6f676c652e636c6f75642e7370656563682e763170316265" . + "7461312e5265636f676e6974696f6e436f6e6669672e417564696f456e63" . + "6f64696e6712190a1173616d706c655f726174655f686572747a18022001" . + "2805121b0a13617564696f5f6368616e6e656c5f636f756e741807200128" . + "05122f0a27656e61626c655f73657061726174655f7265636f676e697469" . + "6f6e5f7065725f6368616e6e656c180c2001280812150a0d6c616e677561" . + "67655f636f646518032001280912220a1a616c7465726e61746976655f6c" . + "616e67756167655f636f64657318122003280912180a106d61785f616c74" . + "65726e61746976657318042001280512180a1070726f66616e6974795f66" . + "696c74657218052001280812450a0f7370656563685f636f6e7465787473" . + "18062003280b322c2e676f6f676c652e636c6f75642e7370656563682e76" . + "31703162657461312e537065656368436f6e7465787412200a18656e6162" . + "6c655f776f72645f74696d655f6f666673657473180820012808121e0a16" . + "656e61626c655f776f72645f636f6e666964656e6365180f200128081224" . + "0a1c656e61626c655f6175746f6d617469635f70756e6374756174696f6e" . + "180b2001280812220a1a656e61626c655f737065616b65725f6469617269" . + "7a6174696f6e18102001280812210a1964696172697a6174696f6e5f7370" . + "65616b65725f636f756e7418112001280512440a086d6574616461746118" . + "092001280b32322e676f6f676c652e636c6f75642e7370656563682e7631" . + "703162657461312e5265636f676e6974696f6e4d65746164617461120d0a" . + "056d6f64656c180d2001280912140a0c7573655f656e68616e636564180e" . + "20012808228b010a0d417564696f456e636f64696e6712180a14454e434f" . + "44494e475f554e5350454349464945441000120c0a084c494e4541523136" . + "100112080a04464c4143100212090a054d554c4157100312070a03414d52" . + "1004120a0a06414d525f57421005120c0a084f47475f4f5055531006121a" . + "0a1653504545585f574954485f4845414445525f42595445100722d3080a" . + "135265636f676e6974696f6e4d65746164617461125c0a10696e74657261" . + "6374696f6e5f7479706518012001280e32422e676f6f676c652e636c6f75" . + "642e7370656563682e7631703162657461312e5265636f676e6974696f6e" . + "4d657461646174612e496e746572616374696f6e5479706512240a1c696e" . + "6475737472795f6e616963735f636f64655f6f665f617564696f18032001" . + "280d12620a136d6963726f70686f6e655f64697374616e63651804200128" . + "0e32452e676f6f676c652e636c6f75642e7370656563682e763170316265" . + "7461312e5265636f676e6974696f6e4d657461646174612e4d6963726f70" . + "686f6e6544697374616e636512610a136f726967696e616c5f6d65646961" . + "5f7479706518052001280e32442e676f6f676c652e636c6f75642e737065" . + "6563682e7631703162657461312e5265636f676e6974696f6e4d65746164" . + "6174612e4f726967696e616c4d656469615479706512650a157265636f72" . + "64696e675f6465766963655f7479706518062001280e32462e676f6f676c" . "652e636c6f75642e7370656563682e7631703162657461312e5265636f67" . - "6e6974696f6e417564696f22a0010a1953747265616d696e675265636f67" . - "6e697a655265717565737412550a1073747265616d696e675f636f6e6669" . - "6718012001280b32392e676f6f676c652e636c6f75642e7370656563682e" . - "7631703162657461312e53747265616d696e675265636f676e6974696f6e" . - "436f6e666967480012170a0d617564696f5f636f6e74656e741802200128" . - "0c480042130a1173747265616d696e675f726571756573742291010a1a53" . - "747265616d696e675265636f676e6974696f6e436f6e66696712400a0663" . - "6f6e66696718012001280b32302e676f6f676c652e636c6f75642e737065" . - "6563682e7631703162657461312e5265636f676e6974696f6e436f6e6669" . - "6712180a1073696e676c655f7574746572616e636518022001280812170a" . - "0f696e746572696d5f726573756c747318032001280822ac060a11526563" . - "6f676e6974696f6e436f6e66696712500a08656e636f64696e6718012001" . - "280e323e2e676f6f676c652e636c6f75642e7370656563682e7631703162" . - "657461312e5265636f676e6974696f6e436f6e6669672e417564696f456e" . - "636f64696e6712190a1173616d706c655f726174655f686572747a180220" . - "012805121b0a13617564696f5f6368616e6e656c5f636f756e7418072001" . - "2805122f0a27656e61626c655f73657061726174655f7265636f676e6974" . - "696f6e5f7065725f6368616e6e656c180c2001280812150a0d6c616e6775" . - "6167655f636f646518032001280912220a1a616c7465726e61746976655f" . - "6c616e67756167655f636f64657318122003280912180a106d61785f616c" . - "7465726e61746976657318042001280512180a1070726f66616e6974795f" . - "66696c74657218052001280812450a0f7370656563685f636f6e74657874" . - "7318062003280b322c2e676f6f676c652e636c6f75642e7370656563682e" . - "7631703162657461312e537065656368436f6e7465787412200a18656e61" . - "626c655f776f72645f74696d655f6f666673657473180820012808121e0a" . - "16656e61626c655f776f72645f636f6e666964656e6365180f2001280812" . - "240a1c656e61626c655f6175746f6d617469635f70756e6374756174696f" . - "6e180b2001280812220a1a656e61626c655f737065616b65725f64696172" . - "697a6174696f6e18102001280812210a1964696172697a6174696f6e5f73" . - "7065616b65725f636f756e7418112001280512440a086d65746164617461" . - "18092001280b32322e676f6f676c652e636c6f75642e7370656563682e76" . - "31703162657461312e5265636f676e6974696f6e4d65746164617461120d" . - "0a056d6f64656c180d2001280912140a0c7573655f656e68616e63656418" . - "0e20012808228b010a0d417564696f456e636f64696e6712180a14454e43" . - "4f44494e475f554e5350454349464945441000120c0a084c494e45415231" . - "36100112080a04464c4143100212090a054d554c4157100312070a03414d" . - "521004120a0a06414d525f57421005120c0a084f47475f4f505553100612" . - "1a0a1653504545585f574954485f4845414445525f42595445100722d308" . - "0a135265636f676e6974696f6e4d65746164617461125c0a10696e746572" . - "616374696f6e5f7479706518012001280e32422e676f6f676c652e636c6f" . - "75642e7370656563682e7631703162657461312e5265636f676e6974696f" . - "6e4d657461646174612e496e746572616374696f6e5479706512240a1c69" . - "6e6475737472795f6e616963735f636f64655f6f665f617564696f180320" . - "01280d12620a136d6963726f70686f6e655f64697374616e636518042001" . - "280e32452e676f6f676c652e636c6f75642e7370656563682e7631703162" . - "657461312e5265636f676e6974696f6e4d657461646174612e4d6963726f" . - "70686f6e6544697374616e636512610a136f726967696e616c5f6d656469" . - "615f7479706518052001280e32442e676f6f676c652e636c6f75642e7370" . - "656563682e7631703162657461312e5265636f676e6974696f6e4d657461" . - "646174612e4f726967696e616c4d656469615479706512650a157265636f" . - "7264696e675f6465766963655f7479706518062001280e32462e676f6f67" . - "6c652e636c6f75642e7370656563682e7631703162657461312e5265636f" . - "676e6974696f6e4d657461646174612e5265636f7264696e674465766963" . - "6554797065121d0a157265636f7264696e675f6465766963655f6e616d65" . - "180720012809121a0a126f726967696e616c5f6d696d655f747970651808" . - "2001280912150a0d6f6266757363617465645f696418092001280312130a" . - "0b617564696f5f746f706963180a2001280922c5010a0f496e7465726163" . - "74696f6e5479706512200a1c494e544552414354494f4e5f545950455f55" . - "4e5350454349464945441000120e0a0a44495343555353494f4e10011210" . - "0a0c50524553454e544154494f4e1002120e0a0a50484f4e455f43414c4c" . - "1003120d0a09564f4943454d41494c1004121b0a1750524f46455353494f" . - "4e414c4c595f50524f4455434544100512100a0c564f4943455f53454152" . - "4348100612110a0d564f4943455f434f4d4d414e441007120d0a09444943" . - "544154494f4e100822640a124d6963726f70686f6e6544697374616e6365" . - "12230a1f4d4943524f50484f4e455f44495354414e43455f554e53504543" . - "49464945441000120d0a094e4541524649454c441001120c0a084d494446" . - "49454c441002120c0a084641524649454c441003224e0a114f726967696e" . - "616c4d656469615479706512230a1f4f524947494e414c5f4d454449415f" . - "545950455f554e535045434946494544100012090a05415544494f100112" . - "090a05564944454f100222a4010a135265636f7264696e67446576696365" . - "5479706512250a215245434f5244494e475f4445564943455f545950455f" . - "554e5350454349464945441000120e0a0a534d41525450484f4e45100112" . - "060a0250431002120e0a0a50484f4e455f4c494e451003120b0a07564548" . - "49434c45100412180a144f544845525f4f5554444f4f525f444556494345" . - "100512170a134f544845525f494e444f4f525f444556494345100622200a" . - "0d537065656368436f6e74657874120f0a07706872617365731801200328" . - "0922440a105265636f676e6974696f6e417564696f12110a07636f6e7465" . - "6e7418012001280c4800120d0a037572691802200128094800420e0a0c61" . - "7564696f5f736f75726365225c0a115265636f676e697a65526573706f6e" . - "736512470a07726573756c747318022003280b32362e676f6f676c652e63" . - "6c6f75642e7370656563682e7631703162657461312e5370656563685265" . - "636f676e6974696f6e526573756c7422670a1c4c6f6e6752756e6e696e67" . - "5265636f676e697a65526573706f6e736512470a07726573756c74731802" . - "2003280b32362e676f6f676c652e636c6f75642e7370656563682e763170" . - "3162657461312e5370656563685265636f676e6974696f6e526573756c74" . - "229e010a1c4c6f6e6752756e6e696e675265636f676e697a654d65746164" . - "61746112180a1070726f67726573735f70657263656e7418012001280512" . - "2e0a0a73746172745f74696d6518022001280b321a2e676f6f676c652e70" . - "726f746f6275662e54696d657374616d7012340a106c6173745f75706461" . - "74655f74696d6518032001280b321a2e676f6f676c652e70726f746f6275" . - "662e54696d657374616d7022bf020a1a53747265616d696e675265636f67" . - "6e697a65526573706f6e736512210a056572726f7218012001280b32122e" . - "676f6f676c652e7270632e537461747573124a0a07726573756c74731802" . - "2003280b32392e676f6f676c652e636c6f75642e7370656563682e763170" . - "3162657461312e53747265616d696e675265636f676e6974696f6e526573" . - "756c7412640a117370656563685f6576656e745f7479706518042001280e" . - "32492e676f6f676c652e636c6f75642e7370656563682e76317031626574" . - "61312e53747265616d696e675265636f676e697a65526573706f6e73652e" . - "5370656563684576656e7454797065224c0a0f5370656563684576656e74" . - "54797065121c0a185350454543485f4556454e545f554e53504543494649" . - "45441000121b0a17454e445f4f465f53494e474c455f5554544552414e43" . - "45100122c0010a1a53747265616d696e675265636f676e6974696f6e5265" . - "73756c7412510a0c616c7465726e61746976657318012003280b323b2e67" . + "6e6974696f6e4d657461646174612e5265636f7264696e67446576696365" . + "54797065121d0a157265636f7264696e675f6465766963655f6e616d6518" . + "0720012809121a0a126f726967696e616c5f6d696d655f74797065180820" . + "01280912150a0d6f6266757363617465645f696418092001280312130a0b" . + "617564696f5f746f706963180a2001280922c5010a0f496e746572616374" . + "696f6e5479706512200a1c494e544552414354494f4e5f545950455f554e" . + "5350454349464945441000120e0a0a44495343555353494f4e100112100a" . + "0c50524553454e544154494f4e1002120e0a0a50484f4e455f43414c4c10" . + "03120d0a09564f4943454d41494c1004121b0a1750524f46455353494f4e" . + "414c4c595f50524f4455434544100512100a0c564f4943455f5345415243" . + "48100612110a0d564f4943455f434f4d4d414e441007120d0a0944494354" . + "4154494f4e100822640a124d6963726f70686f6e6544697374616e636512" . + "230a1f4d4943524f50484f4e455f44495354414e43455f554e5350454349" . + "464945441000120d0a094e4541524649454c441001120c0a084d49444649" . + "454c441002120c0a084641524649454c441003224e0a114f726967696e61" . + "6c4d656469615479706512230a1f4f524947494e414c5f4d454449415f54" . + "5950455f554e535045434946494544100012090a05415544494f10011209" . + "0a05564944454f100222a4010a135265636f7264696e6744657669636554" . + "79706512250a215245434f5244494e475f4445564943455f545950455f55" . + "4e5350454349464945441000120e0a0a534d41525450484f4e4510011206" . + "0a0250431002120e0a0a50484f4e455f4c494e451003120b0a0756454849" . + "434c45100412180a144f544845525f4f5554444f4f525f44455649434510" . + "0512170a134f544845525f494e444f4f525f444556494345100622200a0d" . + "537065656368436f6e74657874120f0a0770687261736573180120032809" . + "22440a105265636f676e6974696f6e417564696f12110a07636f6e74656e" . + "7418012001280c4800120d0a037572691802200128094800420e0a0c6175" . + "64696f5f736f75726365225c0a115265636f676e697a65526573706f6e73" . + "6512470a07726573756c747318022003280b32362e676f6f676c652e636c" . + "6f75642e7370656563682e7631703162657461312e537065656368526563" . + "6f676e6974696f6e526573756c7422670a1c4c6f6e6752756e6e696e6752" . + "65636f676e697a65526573706f6e736512470a07726573756c7473180220" . + "03280b32362e676f6f676c652e636c6f75642e7370656563682e76317031" . + "62657461312e5370656563685265636f676e6974696f6e526573756c7422" . + "9e010a1c4c6f6e6752756e6e696e675265636f676e697a654d6574616461" . + "746112180a1070726f67726573735f70657263656e74180120012805122e" . + "0a0a73746172745f74696d6518022001280b321a2e676f6f676c652e7072" . + "6f746f6275662e54696d657374616d7012340a106c6173745f7570646174" . + "655f74696d6518032001280b321a2e676f6f676c652e70726f746f627566" . + "2e54696d657374616d7022bf020a1a53747265616d696e675265636f676e" . + "697a65526573706f6e736512210a056572726f7218012001280b32122e67" . + "6f6f676c652e7270632e537461747573124a0a07726573756c7473180220" . + "03280b32392e676f6f676c652e636c6f75642e7370656563682e76317031" . + "62657461312e53747265616d696e675265636f676e6974696f6e52657375" . + "6c7412640a117370656563685f6576656e745f7479706518042001280e32" . + "492e676f6f676c652e636c6f75642e7370656563682e7631703162657461" . + "312e53747265616d696e675265636f676e697a65526573706f6e73652e53" . + "70656563684576656e7454797065224c0a0f5370656563684576656e7454" . + "797065121c0a185350454543485f4556454e545f554e5350454349464945" . + "441000121b0a17454e445f4f465f53494e474c455f5554544552414e4345" . + "100122f4010a1a53747265616d696e675265636f676e6974696f6e526573" . + "756c7412510a0c616c7465726e61746976657318012003280b323b2e676f" . + "6f676c652e636c6f75642e7370656563682e7631703162657461312e5370" . + "656563685265636f676e6974696f6e416c7465726e617469766512100a08" . + "69735f66696e616c18022001280812110a0973746162696c697479180320" . + "01280212320a0f726573756c745f656e645f74696d6518042001280b3219" . + "2e676f6f676c652e70726f746f6275662e4475726174696f6e12130a0b63" . + "68616e6e656c5f74616718052001280512150a0d6c616e67756167655f63" . + "6f64651806200128092298010a175370656563685265636f676e6974696f" . + "6e526573756c7412510a0c616c7465726e61746976657318012003280b32" . + "3b2e676f6f676c652e636c6f75642e7370656563682e7631703162657461" . + "312e5370656563685265636f676e6974696f6e416c7465726e6174697665" . + "12130a0b6368616e6e656c5f74616718022001280512150a0d6c616e6775" . + "6167655f636f6465180520012809227e0a1c5370656563685265636f676e" . + "6974696f6e416c7465726e617469766512120a0a7472616e736372697074" . + "18012001280912120a0a636f6e666964656e636518022001280212360a05" . + "776f72647318032003280b32272e676f6f676c652e636c6f75642e737065" . + "6563682e7631703162657461312e576f7264496e666f229d010a08576f72" . + "64496e666f122d0a0a73746172745f74696d6518012001280b32192e676f" . + "6f676c652e70726f746f6275662e4475726174696f6e122b0a08656e645f" . + "74696d6518022001280b32192e676f6f676c652e70726f746f6275662e44" . + "75726174696f6e120c0a04776f726418032001280912120a0a636f6e6669" . + "64656e636518042001280212130a0b737065616b65725f74616718052001" . + "280532da030a065370656563681296010a095265636f676e697a65122f2e" . + "676f6f676c652e636c6f75642e7370656563682e7631703162657461312e" . + "5265636f676e697a65526571756573741a302e676f6f676c652e636c6f75" . + "642e7370656563682e7631703162657461312e5265636f676e697a655265" . + "73706f6e7365222682d3e4930220221b2f7631703162657461312f737065" . + "6563683a7265636f676e697a653a012a12a4010a144c6f6e6752756e6e69" . + "6e675265636f676e697a65123a2e676f6f676c652e636c6f75642e737065" . + "6563682e7631703162657461312e4c6f6e6752756e6e696e675265636f67" . + "6e697a65526571756573741a1d2e676f6f676c652e6c6f6e6772756e6e69" . + "6e672e4f7065726174696f6e223182d3e493022b22262f76317031626574" . + "61312f7370656563683a6c6f6e6772756e6e696e677265636f676e697a65" . + "3a012a128f010a1253747265616d696e675265636f676e697a6512382e67" . "6f6f676c652e636c6f75642e7370656563682e7631703162657461312e53" . - "70656563685265636f676e6974696f6e416c7465726e617469766512100a" . - "0869735f66696e616c18022001280812110a0973746162696c6974791803" . - "2001280212130a0b6368616e6e656c5f74616718052001280512150a0d6c" . - "616e67756167655f636f64651806200128092298010a1753706565636852" . - "65636f676e6974696f6e526573756c7412510a0c616c7465726e61746976" . - "657318012003280b323b2e676f6f676c652e636c6f75642e737065656368" . - "2e7631703162657461312e5370656563685265636f676e6974696f6e416c" . - "7465726e617469766512130a0b6368616e6e656c5f746167180220012805" . - "12150a0d6c616e67756167655f636f6465180520012809227e0a1c537065" . - "6563685265636f676e6974696f6e416c7465726e617469766512120a0a74" . - "72616e73637269707418012001280912120a0a636f6e666964656e636518" . - "022001280212360a05776f72647318032003280b32272e676f6f676c652e" . - "636c6f75642e7370656563682e7631703162657461312e576f7264496e66" . - "6f229d010a08576f7264496e666f122d0a0a73746172745f74696d651801" . - "2001280b32192e676f6f676c652e70726f746f6275662e4475726174696f" . - "6e122b0a08656e645f74696d6518022001280b32192e676f6f676c652e70" . - "726f746f6275662e4475726174696f6e120c0a04776f7264180320012809" . - "12120a0a636f6e666964656e636518042001280212130a0b737065616b65" . - "725f74616718052001280532d8030a065370656563681296010a09526563" . - "6f676e697a65122f2e676f6f676c652e636c6f75642e7370656563682e76" . - "31703162657461312e5265636f676e697a65526571756573741a302e676f" . - "6f676c652e636c6f75642e7370656563682e7631703162657461312e5265" . - "636f676e697a65526573706f6e7365222682d3e4930220221b2f76317031" . - "62657461312f7370656563683a7265636f676e697a653a012a12a4010a14" . - "4c6f6e6752756e6e696e675265636f676e697a65123a2e676f6f676c652e" . - "636c6f75642e7370656563682e7631703162657461312e4c6f6e6752756e" . - "6e696e675265636f676e697a65526571756573741a1d2e676f6f676c652e" . - "6c6f6e6772756e6e696e672e4f7065726174696f6e223182d3e493022b22" . - "262f7631703162657461312f7370656563683a6c6f6e6772756e6e696e67" . - "7265636f676e697a653a012a128d010a1253747265616d696e675265636f" . - "676e697a6512382e676f6f676c652e636c6f75642e7370656563682e7631" . - "703162657461312e53747265616d696e675265636f676e697a6552657175" . - "6573741a392e676f6f676c652e636c6f75642e7370656563682e76317031" . - "62657461312e53747265616d696e675265636f676e697a65526573706f6e" . - "736528013001427a0a21636f6d2e676f6f676c652e636c6f75642e737065" . - "6563682e763170316265746131420b53706565636850726f746f50015a43" . - "676f6f676c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f" . - "676c65617069732f636c6f75642f7370656563682f763170316265746131" . - "3b737065656368f80101620670726f746f33" + "747265616d696e675265636f676e697a65526571756573741a392e676f6f" . + "676c652e636c6f75642e7370656563682e7631703162657461312e537472" . + "65616d696e675265636f676e697a65526573706f6e736522002801300142" . + "7a0a21636f6d2e676f6f676c652e636c6f75642e7370656563682e763170" . + "316265746131420b53706565636850726f746f50015a43676f6f676c652e" . + "676f6c616e672e6f72672f67656e70726f746f2f676f6f676c6561706973" . + "2f636c6f75642f7370656563682f7631703162657461313b737065656368" . + "f80101620670726f746f33" )); static::$is_initialized = true; diff --git a/Speech/src/V1p1beta1/RecognitionAudio.php b/Speech/src/V1p1beta1/RecognitionAudio.php index e92be4ba3e91..72c4233eb66a 100644 --- a/Speech/src/V1p1beta1/RecognitionAudio.php +++ b/Speech/src/V1p1beta1/RecognitionAudio.php @@ -12,7 +12,7 @@ * Contains audio data in the encoding specified in the `RecognitionConfig`. * Either `content` or `uri` must be supplied. Supplying both or neither * returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See - * [audio limits](https://cloud.google.com/speech/limits#content). + * [content limits](/speech-to-text/quotas#content). * * Generated from protobuf message google.cloud.speech.v1p1beta1.RecognitionAudio */ @@ -32,7 +32,8 @@ class RecognitionAudio extends \Google\Protobuf\Internal\Message * pure binary representation, whereas JSON representations use base64. * @type string $uri * URI that points to a file that contains audio data bytes as specified in - * `RecognitionConfig`. Currently, only Google Cloud Storage URIs are + * `RecognitionConfig`. The file must not be compressed (for example, gzip). + * Currently, only Google Cloud Storage URIs are * supported, which must be specified in the following format: * `gs://bucket_name/object_name` (other URI formats return * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see @@ -76,7 +77,8 @@ public function setContent($var) /** * URI that points to a file that contains audio data bytes as specified in - * `RecognitionConfig`. Currently, only Google Cloud Storage URIs are + * `RecognitionConfig`. The file must not be compressed (for example, gzip). + * Currently, only Google Cloud Storage URIs are * supported, which must be specified in the following format: * `gs://bucket_name/object_name` (other URI formats return * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see @@ -92,7 +94,8 @@ public function getUri() /** * URI that points to a file that contains audio data bytes as specified in - * `RecognitionConfig`. Currently, only Google Cloud Storage URIs are + * `RecognitionConfig`. The file must not be compressed (for example, gzip). + * Currently, only Google Cloud Storage URIs are * supported, which must be specified in the following format: * `gs://bucket_name/object_name` (other URI formats return * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see diff --git a/Speech/src/V1p1beta1/RecognitionConfig.php b/Speech/src/V1p1beta1/RecognitionConfig.php index d43f7426ddbc..2d2effe06fa8 100644 --- a/Speech/src/V1p1beta1/RecognitionConfig.php +++ b/Speech/src/V1p1beta1/RecognitionConfig.php @@ -43,20 +43,20 @@ class RecognitionConfig extends \Google\Protobuf\Internal\Message * Valid values for OGG_OPUS are '1'-'254'. * Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`. * If `0` or omitted, defaults to one channel (mono). - * NOTE: We only recognize the first channel by default. + * Note: We only recognize the first channel by default. * To perform independent recognition on each channel set - * enable_separate_recognition_per_channel to 'true'. + * `enable_separate_recognition_per_channel` to 'true'. * * Generated from protobuf field int32 audio_channel_count = 7; */ private $audio_channel_count = 0; /** - * This needs to be set to ‘true’ explicitly and audio_channel_count > 1 + * This needs to be set to ‘true’ explicitly and `audio_channel_count` > 1 * to get each channel recognized separately. The recognition result will - * contain a channel_tag field to state which channel that result belongs to. - * If this is not ‘true’, we will only recognize the first channel. - * NOTE: The request is also billed cumulatively for all channels recognized: - * (audio_channel_count times the audio length) + * contain a `channel_tag` field to state which channel that result belongs + * to. If this is not true, we will only recognize the first channel. The + * request is billed cumulatively for all channels recognized: + * `audio_channel_count` multiplied by the length of the audio. * * Generated from protobuf field bool enable_separate_recognition_per_channel = 12; */ @@ -65,7 +65,7 @@ class RecognitionConfig extends \Google\Protobuf\Internal\Message * *Required* The language of the supplied audio as a * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. * Example: "en-US". - * See [Language Support](https://cloud.google.com/speech/docs/languages) + * See [Language Support](/speech-to-text/docs/languages) * for a list of the currently supported language codes. * * Generated from protobuf field string language_code = 3; @@ -75,13 +75,13 @@ class RecognitionConfig extends \Google\Protobuf\Internal\Message * *Optional* A list of up to 3 additional * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags, * listing possible alternative languages of the supplied audio. - * See [Language Support](https://cloud.google.com/speech/docs/languages) + * See [Language Support](/speech-to-text/docs/languages) * for a list of the currently supported language codes. * If alternative languages are listed, recognition result will contain * recognition in the most likely language detected including the main * language_code. The recognition result will include the language tag * of the language detected in the audio. - * NOTE: This feature is only supported for Voice Command and Voice Search + * Note: This feature is only supported for Voice Command and Voice Search * use cases and performance may vary for other use cases (e.g., phone call * transcription). * @@ -109,7 +109,9 @@ class RecognitionConfig extends \Google\Protobuf\Internal\Message */ private $profanity_filter = false; /** - * *Optional* A means to provide context to assist the speech recognition. + * *Optional* array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext]. + * A means to provide context to assist the speech recognition. For more + * information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints). * * Generated from protobuf field repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6; */ @@ -136,9 +138,9 @@ class RecognitionConfig extends \Google\Protobuf\Internal\Message * This feature is only available in select languages. Setting this for * requests in other languages has no effect at all. * The default 'false' value does not add punctuation to result hypotheses. - * NOTE: "This is currently offered as an experimental service, complimentary + * Note: This is currently offered as an experimental service, complimentary * to all users. In the future this may be exclusively available as a - * premium feature." + * premium feature. * * Generated from protobuf field bool enable_automatic_punctuation = 11; */ @@ -148,9 +150,11 @@ class RecognitionConfig extends \Google\Protobuf\Internal\Message * the top alternative of the recognition result using a speaker_tag provided * in the WordInfo. * Note: When this is true, we send all the words from the beginning of the - * audio for the top alternative in every consecutive responses. + * audio for the top alternative in every consecutive STREAMING responses. * This is done in order to improve our speaker tags as our models learn to * identify the speakers in the conversation over time. + * For non-streaming requests, the diarization results will be provided only + * in the top alternative of the FINAL SpeechRecognitionResult. * * Generated from protobuf field bool enable_speaker_diarization = 16; */ @@ -209,13 +213,16 @@ class RecognitionConfig extends \Google\Protobuf\Internal\Message private $model = ''; /** * *Optional* Set to true to use an enhanced model for speech recognition. - * You must also set the `model` field to a valid, enhanced model. If - * `use_enhanced` is set to true and the `model` field is not set, then - * `use_enhanced` is ignored. If `use_enhanced` is true and an enhanced - * version of the specified model does not exist, then the speech is - * recognized using the standard version of the specified model. - * Enhanced speech models require that you opt-in to the audio logging using - * instructions in the [alpha documentation](/speech/data-sharing). If you set + * If `use_enhanced` is set to true and the `model` field is not set, then + * an appropriate enhanced model is chosen if: + * 1. project is eligible for requesting enhanced models + * 2. an enhanced model exists for the audio + * If `use_enhanced` is true and an enhanced version of the specified model + * does not exist, then the speech is recognized using the standard version + * of the specified model. + * Enhanced speech models require that you opt-in to data logging using + * instructions in the + * [documentation](/speech-to-text/docs/enable-data-logging). If you set * `use_enhanced` to true and you have not enabled audio logging, then you * will receive an error. * @@ -248,33 +255,33 @@ class RecognitionConfig extends \Google\Protobuf\Internal\Message * Valid values for OGG_OPUS are '1'-'254'. * Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`. * If `0` or omitted, defaults to one channel (mono). - * NOTE: We only recognize the first channel by default. + * Note: We only recognize the first channel by default. * To perform independent recognition on each channel set - * enable_separate_recognition_per_channel to 'true'. + * `enable_separate_recognition_per_channel` to 'true'. * @type bool $enable_separate_recognition_per_channel - * This needs to be set to ‘true’ explicitly and audio_channel_count > 1 + * This needs to be set to ‘true’ explicitly and `audio_channel_count` > 1 * to get each channel recognized separately. The recognition result will - * contain a channel_tag field to state which channel that result belongs to. - * If this is not ‘true’, we will only recognize the first channel. - * NOTE: The request is also billed cumulatively for all channels recognized: - * (audio_channel_count times the audio length) + * contain a `channel_tag` field to state which channel that result belongs + * to. If this is not true, we will only recognize the first channel. The + * request is billed cumulatively for all channels recognized: + * `audio_channel_count` multiplied by the length of the audio. * @type string $language_code * *Required* The language of the supplied audio as a * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. * Example: "en-US". - * See [Language Support](https://cloud.google.com/speech/docs/languages) + * See [Language Support](/speech-to-text/docs/languages) * for a list of the currently supported language codes. * @type string[]|\Google\Protobuf\Internal\RepeatedField $alternative_language_codes * *Optional* A list of up to 3 additional * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags, * listing possible alternative languages of the supplied audio. - * See [Language Support](https://cloud.google.com/speech/docs/languages) + * See [Language Support](/speech-to-text/docs/languages) * for a list of the currently supported language codes. * If alternative languages are listed, recognition result will contain * recognition in the most likely language detected including the main * language_code. The recognition result will include the language tag * of the language detected in the audio. - * NOTE: This feature is only supported for Voice Command and Voice Search + * Note: This feature is only supported for Voice Command and Voice Search * use cases and performance may vary for other use cases (e.g., phone call * transcription). * @type int $max_alternatives @@ -290,7 +297,9 @@ class RecognitionConfig extends \Google\Protobuf\Internal\Message * with asterisks, e.g. "f***". If set to `false` or omitted, profanities * won't be filtered out. * @type \Google\Cloud\Speech\V1p1beta1\SpeechContext[]|\Google\Protobuf\Internal\RepeatedField $speech_contexts - * *Optional* A means to provide context to assist the speech recognition. + * *Optional* array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext]. + * A means to provide context to assist the speech recognition. For more + * information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints). * @type bool $enable_word_time_offsets * *Optional* If `true`, the top result includes a list of words and * the start and end time offsets (timestamps) for those words. If @@ -305,17 +314,19 @@ class RecognitionConfig extends \Google\Protobuf\Internal\Message * This feature is only available in select languages. Setting this for * requests in other languages has no effect at all. * The default 'false' value does not add punctuation to result hypotheses. - * NOTE: "This is currently offered as an experimental service, complimentary + * Note: This is currently offered as an experimental service, complimentary * to all users. In the future this may be exclusively available as a - * premium feature." + * premium feature. * @type bool $enable_speaker_diarization * *Optional* If 'true', enables speaker detection for each recognized word in * the top alternative of the recognition result using a speaker_tag provided * in the WordInfo. * Note: When this is true, we send all the words from the beginning of the - * audio for the top alternative in every consecutive responses. + * audio for the top alternative in every consecutive STREAMING responses. * This is done in order to improve our speaker tags as our models learn to * identify the speakers in the conversation over time. + * For non-streaming requests, the diarization results will be provided only + * in the top alternative of the FINAL SpeechRecognitionResult. * @type int $diarization_speaker_count * *Optional* * If set, specifies the estimated number of speakers in the conversation. @@ -358,13 +369,16 @@ class RecognitionConfig extends \Google\Protobuf\Internal\Message * * @type bool $use_enhanced * *Optional* Set to true to use an enhanced model for speech recognition. - * You must also set the `model` field to a valid, enhanced model. If - * `use_enhanced` is set to true and the `model` field is not set, then - * `use_enhanced` is ignored. If `use_enhanced` is true and an enhanced - * version of the specified model does not exist, then the speech is - * recognized using the standard version of the specified model. - * Enhanced speech models require that you opt-in to the audio logging using - * instructions in the [alpha documentation](/speech/data-sharing). If you set + * If `use_enhanced` is set to true and the `model` field is not set, then + * an appropriate enhanced model is chosen if: + * 1. project is eligible for requesting enhanced models + * 2. an enhanced model exists for the audio + * If `use_enhanced` is true and an enhanced version of the specified model + * does not exist, then the speech is recognized using the standard version + * of the specified model. + * Enhanced speech models require that you opt-in to data logging using + * instructions in the + * [documentation](/speech-to-text/docs/enable-data-logging). If you set * `use_enhanced` to true and you have not enabled audio logging, then you * will receive an error. * } @@ -449,9 +463,9 @@ public function setSampleRateHertz($var) * Valid values for OGG_OPUS are '1'-'254'. * Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`. * If `0` or omitted, defaults to one channel (mono). - * NOTE: We only recognize the first channel by default. + * Note: We only recognize the first channel by default. * To perform independent recognition on each channel set - * enable_separate_recognition_per_channel to 'true'. + * `enable_separate_recognition_per_channel` to 'true'. * * Generated from protobuf field int32 audio_channel_count = 7; * @return int @@ -468,9 +482,9 @@ public function getAudioChannelCount() * Valid values for OGG_OPUS are '1'-'254'. * Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`. * If `0` or omitted, defaults to one channel (mono). - * NOTE: We only recognize the first channel by default. + * Note: We only recognize the first channel by default. * To perform independent recognition on each channel set - * enable_separate_recognition_per_channel to 'true'. + * `enable_separate_recognition_per_channel` to 'true'. * * Generated from protobuf field int32 audio_channel_count = 7; * @param int $var @@ -485,12 +499,12 @@ public function setAudioChannelCount($var) } /** - * This needs to be set to ‘true’ explicitly and audio_channel_count > 1 + * This needs to be set to ‘true’ explicitly and `audio_channel_count` > 1 * to get each channel recognized separately. The recognition result will - * contain a channel_tag field to state which channel that result belongs to. - * If this is not ‘true’, we will only recognize the first channel. - * NOTE: The request is also billed cumulatively for all channels recognized: - * (audio_channel_count times the audio length) + * contain a `channel_tag` field to state which channel that result belongs + * to. If this is not true, we will only recognize the first channel. The + * request is billed cumulatively for all channels recognized: + * `audio_channel_count` multiplied by the length of the audio. * * Generated from protobuf field bool enable_separate_recognition_per_channel = 12; * @return bool @@ -501,12 +515,12 @@ public function getEnableSeparateRecognitionPerChannel() } /** - * This needs to be set to ‘true’ explicitly and audio_channel_count > 1 + * This needs to be set to ‘true’ explicitly and `audio_channel_count` > 1 * to get each channel recognized separately. The recognition result will - * contain a channel_tag field to state which channel that result belongs to. - * If this is not ‘true’, we will only recognize the first channel. - * NOTE: The request is also billed cumulatively for all channels recognized: - * (audio_channel_count times the audio length) + * contain a `channel_tag` field to state which channel that result belongs + * to. If this is not true, we will only recognize the first channel. The + * request is billed cumulatively for all channels recognized: + * `audio_channel_count` multiplied by the length of the audio. * * Generated from protobuf field bool enable_separate_recognition_per_channel = 12; * @param bool $var @@ -524,7 +538,7 @@ public function setEnableSeparateRecognitionPerChannel($var) * *Required* The language of the supplied audio as a * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. * Example: "en-US". - * See [Language Support](https://cloud.google.com/speech/docs/languages) + * See [Language Support](/speech-to-text/docs/languages) * for a list of the currently supported language codes. * * Generated from protobuf field string language_code = 3; @@ -539,7 +553,7 @@ public function getLanguageCode() * *Required* The language of the supplied audio as a * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. * Example: "en-US". - * See [Language Support](https://cloud.google.com/speech/docs/languages) + * See [Language Support](/speech-to-text/docs/languages) * for a list of the currently supported language codes. * * Generated from protobuf field string language_code = 3; @@ -558,13 +572,13 @@ public function setLanguageCode($var) * *Optional* A list of up to 3 additional * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags, * listing possible alternative languages of the supplied audio. - * See [Language Support](https://cloud.google.com/speech/docs/languages) + * See [Language Support](/speech-to-text/docs/languages) * for a list of the currently supported language codes. * If alternative languages are listed, recognition result will contain * recognition in the most likely language detected including the main * language_code. The recognition result will include the language tag * of the language detected in the audio. - * NOTE: This feature is only supported for Voice Command and Voice Search + * Note: This feature is only supported for Voice Command and Voice Search * use cases and performance may vary for other use cases (e.g., phone call * transcription). * @@ -580,13 +594,13 @@ public function getAlternativeLanguageCodes() * *Optional* A list of up to 3 additional * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags, * listing possible alternative languages of the supplied audio. - * See [Language Support](https://cloud.google.com/speech/docs/languages) + * See [Language Support](/speech-to-text/docs/languages) * for a list of the currently supported language codes. * If alternative languages are listed, recognition result will contain * recognition in the most likely language detected including the main * language_code. The recognition result will include the language tag * of the language detected in the audio. - * NOTE: This feature is only supported for Voice Command and Voice Search + * Note: This feature is only supported for Voice Command and Voice Search * use cases and performance may vary for other use cases (e.g., phone call * transcription). * @@ -671,7 +685,9 @@ public function setProfanityFilter($var) } /** - * *Optional* A means to provide context to assist the speech recognition. + * *Optional* array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext]. + * A means to provide context to assist the speech recognition. For more + * information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints). * * Generated from protobuf field repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6; * @return \Google\Protobuf\Internal\RepeatedField @@ -682,7 +698,9 @@ public function getSpeechContexts() } /** - * *Optional* A means to provide context to assist the speech recognition. + * *Optional* array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext]. + * A means to provide context to assist the speech recognition. For more + * information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints). * * Generated from protobuf field repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6; * @param \Google\Cloud\Speech\V1p1beta1\SpeechContext[]|\Google\Protobuf\Internal\RepeatedField $var @@ -763,9 +781,9 @@ public function setEnableWordConfidence($var) * This feature is only available in select languages. Setting this for * requests in other languages has no effect at all. * The default 'false' value does not add punctuation to result hypotheses. - * NOTE: "This is currently offered as an experimental service, complimentary + * Note: This is currently offered as an experimental service, complimentary * to all users. In the future this may be exclusively available as a - * premium feature." + * premium feature. * * Generated from protobuf field bool enable_automatic_punctuation = 11; * @return bool @@ -780,9 +798,9 @@ public function getEnableAutomaticPunctuation() * This feature is only available in select languages. Setting this for * requests in other languages has no effect at all. * The default 'false' value does not add punctuation to result hypotheses. - * NOTE: "This is currently offered as an experimental service, complimentary + * Note: This is currently offered as an experimental service, complimentary * to all users. In the future this may be exclusively available as a - * premium feature." + * premium feature. * * Generated from protobuf field bool enable_automatic_punctuation = 11; * @param bool $var @@ -801,9 +819,11 @@ public function setEnableAutomaticPunctuation($var) * the top alternative of the recognition result using a speaker_tag provided * in the WordInfo. * Note: When this is true, we send all the words from the beginning of the - * audio for the top alternative in every consecutive responses. + * audio for the top alternative in every consecutive STREAMING responses. * This is done in order to improve our speaker tags as our models learn to * identify the speakers in the conversation over time. + * For non-streaming requests, the diarization results will be provided only + * in the top alternative of the FINAL SpeechRecognitionResult. * * Generated from protobuf field bool enable_speaker_diarization = 16; * @return bool @@ -818,9 +838,11 @@ public function getEnableSpeakerDiarization() * the top alternative of the recognition result using a speaker_tag provided * in the WordInfo. * Note: When this is true, we send all the words from the beginning of the - * audio for the top alternative in every consecutive responses. + * audio for the top alternative in every consecutive STREAMING responses. * This is done in order to improve our speaker tags as our models learn to * identify the speakers in the conversation over time. + * For non-streaming requests, the diarization results will be provided only + * in the top alternative of the FINAL SpeechRecognitionResult. * * Generated from protobuf field bool enable_speaker_diarization = 16; * @param bool $var @@ -982,13 +1004,16 @@ public function setModel($var) /** * *Optional* Set to true to use an enhanced model for speech recognition. - * You must also set the `model` field to a valid, enhanced model. If - * `use_enhanced` is set to true and the `model` field is not set, then - * `use_enhanced` is ignored. If `use_enhanced` is true and an enhanced - * version of the specified model does not exist, then the speech is - * recognized using the standard version of the specified model. - * Enhanced speech models require that you opt-in to the audio logging using - * instructions in the [alpha documentation](/speech/data-sharing). If you set + * If `use_enhanced` is set to true and the `model` field is not set, then + * an appropriate enhanced model is chosen if: + * 1. project is eligible for requesting enhanced models + * 2. an enhanced model exists for the audio + * If `use_enhanced` is true and an enhanced version of the specified model + * does not exist, then the speech is recognized using the standard version + * of the specified model. + * Enhanced speech models require that you opt-in to data logging using + * instructions in the + * [documentation](/speech-to-text/docs/enable-data-logging). If you set * `use_enhanced` to true and you have not enabled audio logging, then you * will receive an error. * @@ -1002,13 +1027,16 @@ public function getUseEnhanced() /** * *Optional* Set to true to use an enhanced model for speech recognition. - * You must also set the `model` field to a valid, enhanced model. If - * `use_enhanced` is set to true and the `model` field is not set, then - * `use_enhanced` is ignored. If `use_enhanced` is true and an enhanced - * version of the specified model does not exist, then the speech is - * recognized using the standard version of the specified model. - * Enhanced speech models require that you opt-in to the audio logging using - * instructions in the [alpha documentation](/speech/data-sharing). If you set + * If `use_enhanced` is set to true and the `model` field is not set, then + * an appropriate enhanced model is chosen if: + * 1. project is eligible for requesting enhanced models + * 2. an enhanced model exists for the audio + * If `use_enhanced` is true and an enhanced version of the specified model + * does not exist, then the speech is recognized using the standard version + * of the specified model. + * Enhanced speech models require that you opt-in to data logging using + * instructions in the + * [documentation](/speech-to-text/docs/enable-data-logging). If you set * `use_enhanced` to true and you have not enabled audio logging, then you * will receive an error. * diff --git a/Speech/src/V1p1beta1/SpeechContext.php b/Speech/src/V1p1beta1/SpeechContext.php index 53d7c770748f..4428c281b888 100644 --- a/Speech/src/V1p1beta1/SpeechContext.php +++ b/Speech/src/V1p1beta1/SpeechContext.php @@ -22,7 +22,7 @@ class SpeechContext extends \Google\Protobuf\Internal\Message * to improve the accuracy for specific words and phrases, for example, if * specific commands are typically spoken by the user. This can also be used * to add additional words to the vocabulary of the recognizer. See - * [usage limits](https://cloud.google.com/speech/limits#content). + * [usage limits](/speech-to-text/quotas#content). * * Generated from protobuf field repeated string phrases = 1; */ @@ -40,7 +40,7 @@ class SpeechContext extends \Google\Protobuf\Internal\Message * to improve the accuracy for specific words and phrases, for example, if * specific commands are typically spoken by the user. This can also be used * to add additional words to the vocabulary of the recognizer. See - * [usage limits](https://cloud.google.com/speech/limits#content). + * [usage limits](/speech-to-text/quotas#content). * } */ public function __construct($data = NULL) { @@ -54,7 +54,7 @@ public function __construct($data = NULL) { * to improve the accuracy for specific words and phrases, for example, if * specific commands are typically spoken by the user. This can also be used * to add additional words to the vocabulary of the recognizer. See - * [usage limits](https://cloud.google.com/speech/limits#content). + * [usage limits](/speech-to-text/quotas#content). * * Generated from protobuf field repeated string phrases = 1; * @return \Google\Protobuf\Internal\RepeatedField @@ -70,7 +70,7 @@ public function getPhrases() * to improve the accuracy for specific words and phrases, for example, if * specific commands are typically spoken by the user. This can also be used * to add additional words to the vocabulary of the recognizer. See - * [usage limits](https://cloud.google.com/speech/limits#content). + * [usage limits](/speech-to-text/quotas#content). * * Generated from protobuf field repeated string phrases = 1; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var diff --git a/Speech/src/V1p1beta1/SpeechGrpcClient.php b/Speech/src/V1p1beta1/SpeechGrpcClient.php index cb2cf8f628d7..8b861a850127 100644 --- a/Speech/src/V1p1beta1/SpeechGrpcClient.php +++ b/Speech/src/V1p1beta1/SpeechGrpcClient.php @@ -2,7 +2,7 @@ // GENERATED CODE -- DO NOT EDIT! // Original file comments: -// Copyright 2018 Google Inc. +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ // See the License for the specific language governing permissions and // limitations under the License. // +// namespace Google\Cloud\Speech\V1p1beta1; /** diff --git a/Speech/src/V1p1beta1/SpeechRecognitionAlternative.php b/Speech/src/V1p1beta1/SpeechRecognitionAlternative.php index fb494d7746bd..27a5af5851bd 100644 --- a/Speech/src/V1p1beta1/SpeechRecognitionAlternative.php +++ b/Speech/src/V1p1beta1/SpeechRecognitionAlternative.php @@ -35,7 +35,7 @@ class SpeechRecognitionAlternative extends \Google\Protobuf\Internal\Message private $confidence = 0.0; /** * Output only. A list of word-specific information for each recognized word. - * Note: When enable_speaker_diarization is true, you will see all the words + * Note: When `enable_speaker_diarization` is true, you will see all the words * from the beginning of the audio. * * Generated from protobuf field repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3; @@ -60,7 +60,7 @@ class SpeechRecognitionAlternative extends \Google\Protobuf\Internal\Message * The default of 0.0 is a sentinel value indicating `confidence` was not set. * @type \Google\Cloud\Speech\V1p1beta1\WordInfo[]|\Google\Protobuf\Internal\RepeatedField $words * Output only. A list of word-specific information for each recognized word. - * Note: When enable_speaker_diarization is true, you will see all the words + * Note: When `enable_speaker_diarization` is true, you will see all the words * from the beginning of the audio. * } */ @@ -135,7 +135,7 @@ public function setConfidence($var) /** * Output only. A list of word-specific information for each recognized word. - * Note: When enable_speaker_diarization is true, you will see all the words + * Note: When `enable_speaker_diarization` is true, you will see all the words * from the beginning of the audio. * * Generated from protobuf field repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3; @@ -148,7 +148,7 @@ public function getWords() /** * Output only. A list of word-specific information for each recognized word. - * Note: When enable_speaker_diarization is true, you will see all the words + * Note: When `enable_speaker_diarization` is true, you will see all the words * from the beginning of the audio. * * Generated from protobuf field repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3; diff --git a/Speech/src/V1p1beta1/StreamingRecognitionResult.php b/Speech/src/V1p1beta1/StreamingRecognitionResult.php index 53d41e5d2e8b..8653a5c91f8a 100644 --- a/Speech/src/V1p1beta1/StreamingRecognitionResult.php +++ b/Speech/src/V1p1beta1/StreamingRecognitionResult.php @@ -45,6 +45,13 @@ class StreamingRecognitionResult extends \Google\Protobuf\Internal\Message * Generated from protobuf field float stability = 3; */ private $stability = 0.0; + /** + * Output only. Time offset of the end of this result relative to the + * beginning of the audio. + * + * Generated from protobuf field .google.protobuf.Duration result_end_time = 4; + */ + private $result_end_time = null; /** * For multi-channel audio, this is the channel number corresponding to the * recognized result for the audio from that channel. @@ -86,6 +93,9 @@ class StreamingRecognitionResult extends \Google\Protobuf\Internal\Message * (completely unstable) to 1.0 (completely stable). * This field is only provided for interim results (`is_final=false`). * The default of 0.0 is a sentinel value indicating `stability` was not set. + * @type \Google\Protobuf\Duration $result_end_time + * Output only. Time offset of the end of this result relative to the + * beginning of the audio. * @type int $channel_tag * For multi-channel audio, this is the channel number corresponding to the * recognized result for the audio from that channel. @@ -202,6 +212,34 @@ public function setStability($var) return $this; } + /** + * Output only. Time offset of the end of this result relative to the + * beginning of the audio. + * + * Generated from protobuf field .google.protobuf.Duration result_end_time = 4; + * @return \Google\Protobuf\Duration + */ + public function getResultEndTime() + { + return $this->result_end_time; + } + + /** + * Output only. Time offset of the end of this result relative to the + * beginning of the audio. + * + * Generated from protobuf field .google.protobuf.Duration result_end_time = 4; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setResultEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->result_end_time = $var; + + return $this; + } + /** * For multi-channel audio, this is the channel number corresponding to the * recognized result for the audio from that channel. diff --git a/Speech/src/V1p1beta1/StreamingRecognizeRequest.php b/Speech/src/V1p1beta1/StreamingRecognizeRequest.php index 3244eabc3fbb..4d7bbcfdbc74 100644 --- a/Speech/src/V1p1beta1/StreamingRecognizeRequest.php +++ b/Speech/src/V1p1beta1/StreamingRecognizeRequest.php @@ -39,7 +39,7 @@ class StreamingRecognizeRequest extends \Google\Protobuf\Internal\Message * `audio_content` data. The audio bytes must be encoded as specified in * `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a * pure binary representation (not base64). See - * [audio limits](https://cloud.google.com/speech/limits#content). + * [content limits](/speech-to-text/quotas#content). * } */ public function __construct($data = NULL) { @@ -85,7 +85,7 @@ public function setStreamingConfig($var) * `audio_content` data. The audio bytes must be encoded as specified in * `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a * pure binary representation (not base64). See - * [audio limits](https://cloud.google.com/speech/limits#content). + * [content limits](/speech-to-text/quotas#content). * * Generated from protobuf field bytes audio_content = 2; * @return string @@ -103,7 +103,7 @@ public function getAudioContent() * `audio_content` data. The audio bytes must be encoded as specified in * `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a * pure binary representation (not base64). See - * [audio limits](https://cloud.google.com/speech/limits#content). + * [content limits](/speech-to-text/quotas#content). * * Generated from protobuf field bytes audio_content = 2; * @param string $var diff --git a/Speech/src/V1p1beta1/resources/speech_rest_client_config.php b/Speech/src/V1p1beta1/resources/speech_rest_client_config.php index 955eaa6bca99..de830065cb5a 100644 --- a/Speech/src/V1p1beta1/resources/speech_rest_client_config.php +++ b/Speech/src/V1p1beta1/resources/speech_rest_client_config.php @@ -15,9 +15,29 @@ ], ], 'google.longrunning.Operations' => [ + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/operations', + ], + ], + ], 'GetOperation' => [ 'method' => 'get', - 'uriTemplate' => '/v1p1beta1/operations/{name=*}', + 'uriTemplate' => '/v1/operations/{name=*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/operations/{name=*}', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1p1beta1/operations/{name=*}', + ], + ], 'placeholders' => [ 'name' => [ 'getters' => [