diff --git a/Speech/metadata/V1/CloudSpeech.php b/Speech/metadata/V1/CloudSpeech.php
index 548a634d7774..842c3d4fa21e 100644
--- a/Speech/metadata/V1/CloudSpeech.php
+++ b/Speech/metadata/V1/CloudSpeech.php
@@ -20,7 +20,7 @@ public static function initOnce() {
\GPBMetadata\Google\Protobuf\Timestamp::initOnce();
\GPBMetadata\Google\Rpc\Status::initOnce();
$pool->internalAddGeneratedFile(hex2bin(
- "0aad220a29676f6f676c652f636c6f75642f7370656563682f76312f636c" .
+ "0a87240a29676f6f676c652f636c6f75642f7370656563682f76312f636c" .
"6f75645f7370656563682e70726f746f1216676f6f676c652e636c6f7564" .
"2e7370656563682e76311a23676f6f676c652f6c6f6e6772756e6e696e67" .
"2f6f7065726174696f6e732e70726f746f1a1e676f6f676c652f70726f74" .
@@ -46,7 +46,7 @@ public static function initOnce() {
"6f676c652e636c6f75642e7370656563682e76312e5265636f676e697469" .
"6f6e436f6e66696712180a1073696e676c655f7574746572616e63651802" .
"2001280812170a0f696e746572696d5f726573756c747318032001280822" .
- "8c050a115265636f676e6974696f6e436f6e66696712490a08656e636f64" .
+ "da050a115265636f676e6974696f6e436f6e66696712490a08656e636f64" .
"696e6718012001280e32372e676f6f676c652e636c6f75642e7370656563" .
"682e76312e5265636f676e6974696f6e436f6e6669672e417564696f456e" .
"636f64696e6712190a1173616d706c655f726174655f686572747a180220" .
@@ -59,114 +59,121 @@ public static function initOnce() {
"0b32252e676f6f676c652e636c6f75642e7370656563682e76312e537065" .
"656368436f6e7465787412200a18656e61626c655f776f72645f74696d65" .
"5f6f66667365747318082001280812240a1c656e61626c655f6175746f6d" .
- "617469635f70756e6374756174696f6e180b20012808123d0a086d657461" .
- "6461746118092001280b322b2e676f6f676c652e636c6f75642e73706565" .
- "63682e76312e5265636f676e6974696f6e4d65746164617461120d0a056d" .
- "6f64656c180d2001280912140a0c7573655f656e68616e636564180e2001" .
- "2808228b010a0d417564696f456e636f64696e6712180a14454e434f4449" .
- "4e475f554e5350454349464945441000120c0a084c494e45415231361001" .
- "12080a04464c4143100212090a054d554c4157100312070a03414d521004" .
- "120a0a06414d525f57421005120c0a084f47475f4f5055531006121a0a16" .
- "53504545585f574954485f4845414445525f42595445100722a0080a1352" .
- "65636f676e6974696f6e4d6574616461746112550a10696e746572616374" .
- "696f6e5f7479706518012001280e323b2e676f6f676c652e636c6f75642e" .
- "7370656563682e76312e5265636f676e6974696f6e4d657461646174612e" .
- "496e746572616374696f6e5479706512240a1c696e6475737472795f6e61" .
- "6963735f636f64655f6f665f617564696f18032001280d125b0a136d6963" .
- "726f70686f6e655f64697374616e636518042001280e323e2e676f6f676c" .
+ "617469635f70756e6374756174696f6e180b20012808124c0a1264696172" .
+ "697a6174696f6e5f636f6e66696718132001280b32302e676f6f676c652e" .
+ "636c6f75642e7370656563682e76312e537065616b657244696172697a61" .
+ "74696f6e436f6e666967123d0a086d6574616461746118092001280b322b" .
+ "2e676f6f676c652e636c6f75642e7370656563682e76312e5265636f676e" .
+ "6974696f6e4d65746164617461120d0a056d6f64656c180d200128091214" .
+ "0a0c7573655f656e68616e636564180e20012808228b010a0d417564696f" .
+ "456e636f64696e6712180a14454e434f44494e475f554e53504543494649" .
+ "45441000120c0a084c494e4541523136100112080a04464c414310021209" .
+ "0a054d554c4157100312070a03414d521004120a0a06414d525f57421005" .
+ "120c0a084f47475f4f5055531006121a0a1653504545585f574954485f48" .
+ "45414445525f4259544510072289010a18537065616b657244696172697a" .
+ "6174696f6e436f6e66696712220a1a656e61626c655f737065616b65725f" .
+ "64696172697a6174696f6e18012001280812190a116d696e5f737065616b" .
+ "65725f636f756e7418022001280512190a116d61785f737065616b65725f" .
+ "636f756e7418032001280512130a0b737065616b65725f74616718052001" .
+ "280522a0080a135265636f676e6974696f6e4d6574616461746112550a10" .
+ "696e746572616374696f6e5f7479706518012001280e323b2e676f6f676c" .
"652e636c6f75642e7370656563682e76312e5265636f676e6974696f6e4d" .
- "657461646174612e4d6963726f70686f6e6544697374616e6365125a0a13" .
- "6f726967696e616c5f6d656469615f7479706518052001280e323d2e676f" .
- "6f676c652e636c6f75642e7370656563682e76312e5265636f676e697469" .
- "6f6e4d657461646174612e4f726967696e616c4d6564696154797065125e" .
- "0a157265636f7264696e675f6465766963655f7479706518062001280e32" .
- "3f2e676f6f676c652e636c6f75642e7370656563682e76312e5265636f67" .
- "6e6974696f6e4d657461646174612e5265636f7264696e67446576696365" .
- "54797065121d0a157265636f7264696e675f6465766963655f6e616d6518" .
- "0720012809121a0a126f726967696e616c5f6d696d655f74797065180820" .
- "01280912130a0b617564696f5f746f706963180a2001280922c5010a0f49" .
- "6e746572616374696f6e5479706512200a1c494e544552414354494f4e5f" .
- "545950455f554e5350454349464945441000120e0a0a4449534355535349" .
- "4f4e100112100a0c50524553454e544154494f4e1002120e0a0a50484f4e" .
- "455f43414c4c1003120d0a09564f4943454d41494c1004121b0a1750524f" .
- "46455353494f4e414c4c595f50524f4455434544100512100a0c564f4943" .
- "455f534541524348100612110a0d564f4943455f434f4d4d414e44100712" .
- "0d0a09444943544154494f4e100822640a124d6963726f70686f6e654469" .
- "7374616e636512230a1f4d4943524f50484f4e455f44495354414e43455f" .
- "554e5350454349464945441000120d0a094e4541524649454c441001120c" .
- "0a084d49444649454c441002120c0a084641524649454c441003224e0a11" .
- "4f726967696e616c4d656469615479706512230a1f4f524947494e414c5f" .
- "4d454449415f545950455f554e535045434946494544100012090a054155" .
- "44494f100112090a05564944454f100222a4010a135265636f7264696e67" .
- "4465766963655479706512250a215245434f5244494e475f444556494345" .
- "5f545950455f554e5350454349464945441000120e0a0a534d4152545048" .
- "4f4e45100112060a0250431002120e0a0a50484f4e455f4c494e45100312" .
- "0b0a0756454849434c45100412180a144f544845525f4f5554444f4f525f" .
- "444556494345100512170a134f544845525f494e444f4f525f4445564943" .
- "45100622200a0d537065656368436f6e74657874120f0a07706872617365" .
- "7318012003280922440a105265636f676e6974696f6e417564696f12110a" .
- "07636f6e74656e7418012001280c4800120d0a0375726918022001280948" .
- "00420e0a0c617564696f5f736f7572636522550a115265636f676e697a65" .
- "526573706f6e736512400a07726573756c747318022003280b322f2e676f" .
- "6f676c652e636c6f75642e7370656563682e76312e537065656368526563" .
- "6f676e6974696f6e526573756c7422600a1c4c6f6e6752756e6e696e6752" .
+ "657461646174612e496e746572616374696f6e5479706512240a1c696e64" .
+ "75737472795f6e616963735f636f64655f6f665f617564696f1803200128" .
+ "0d125b0a136d6963726f70686f6e655f64697374616e636518042001280e" .
+ "323e2e676f6f676c652e636c6f75642e7370656563682e76312e5265636f" .
+ "676e6974696f6e4d657461646174612e4d6963726f70686f6e6544697374" .
+ "616e6365125a0a136f726967696e616c5f6d656469615f74797065180520" .
+ "01280e323d2e676f6f676c652e636c6f75642e7370656563682e76312e52" .
+ "65636f676e6974696f6e4d657461646174612e4f726967696e616c4d6564" .
+ "696154797065125e0a157265636f7264696e675f6465766963655f747970" .
+ "6518062001280e323f2e676f6f676c652e636c6f75642e7370656563682e" .
+ "76312e5265636f676e6974696f6e4d657461646174612e5265636f726469" .
+ "6e6744657669636554797065121d0a157265636f7264696e675f64657669" .
+ "63655f6e616d65180720012809121a0a126f726967696e616c5f6d696d65" .
+ "5f7479706518082001280912130a0b617564696f5f746f706963180a2001" .
+ "280922c5010a0f496e746572616374696f6e5479706512200a1c494e5445" .
+ "52414354494f4e5f545950455f554e5350454349464945441000120e0a0a" .
+ "44495343555353494f4e100112100a0c50524553454e544154494f4e1002" .
+ "120e0a0a50484f4e455f43414c4c1003120d0a09564f4943454d41494c10" .
+ "04121b0a1750524f46455353494f4e414c4c595f50524f44554345441005" .
+ "12100a0c564f4943455f534541524348100612110a0d564f4943455f434f" .
+ "4d4d414e441007120d0a09444943544154494f4e100822640a124d696372" .
+ "6f70686f6e6544697374616e636512230a1f4d4943524f50484f4e455f44" .
+ "495354414e43455f554e5350454349464945441000120d0a094e45415246" .
+ "49454c441001120c0a084d49444649454c441002120c0a08464152464945" .
+ "4c441003224e0a114f726967696e616c4d656469615479706512230a1f4f" .
+ "524947494e414c5f4d454449415f545950455f554e535045434946494544" .
+ "100012090a05415544494f100112090a05564944454f100222a4010a1352" .
+ "65636f7264696e674465766963655479706512250a215245434f5244494e" .
+ "475f4445564943455f545950455f554e5350454349464945441000120e0a" .
+ "0a534d41525450484f4e45100112060a0250431002120e0a0a50484f4e45" .
+ "5f4c494e451003120b0a0756454849434c45100412180a144f544845525f" .
+ "4f5554444f4f525f444556494345100512170a134f544845525f494e444f" .
+ "4f525f444556494345100622200a0d537065656368436f6e74657874120f" .
+ "0a077068726173657318012003280922440a105265636f676e6974696f6e" .
+ "417564696f12110a07636f6e74656e7418012001280c4800120d0a037572" .
+ "691802200128094800420e0a0c617564696f5f736f7572636522550a1152" .
"65636f676e697a65526573706f6e736512400a07726573756c7473180220" .
"03280b322f2e676f6f676c652e636c6f75642e7370656563682e76312e53" .
- "70656563685265636f676e6974696f6e526573756c74229e010a1c4c6f6e" .
- "6752756e6e696e675265636f676e697a654d6574616461746112180a1070" .
- "726f67726573735f70657263656e74180120012805122e0a0a7374617274" .
- "5f74696d6518022001280b321a2e676f6f676c652e70726f746f6275662e" .
- "54696d657374616d7012340a106c6173745f7570646174655f74696d6518" .
- "032001280b321a2e676f6f676c652e70726f746f6275662e54696d657374" .
- "616d7022b1020a1a53747265616d696e675265636f676e697a6552657370" .
- "6f6e736512210a056572726f7218012001280b32122e676f6f676c652e72" .
- "70632e53746174757312430a07726573756c747318022003280b32322e67" .
- "6f6f676c652e636c6f75642e7370656563682e76312e53747265616d696e" .
- "675265636f676e6974696f6e526573756c74125d0a117370656563685f65" .
- "76656e745f7479706518042001280e32422e676f6f676c652e636c6f7564" .
- "2e7370656563682e76312e53747265616d696e675265636f676e697a6552" .
- "6573706f6e73652e5370656563684576656e7454797065224c0a0f537065" .
- "6563684576656e7454797065121c0a185350454543485f4556454e545f55" .
- "4e5350454349464945441000121b0a17454e445f4f465f53494e474c455f" .
- "5554544552414e4345100122ed010a1a53747265616d696e675265636f67" .
- "6e6974696f6e526573756c74124a0a0c616c7465726e6174697665731801" .
- "2003280b32342e676f6f676c652e636c6f75642e7370656563682e76312e" .
- "5370656563685265636f676e6974696f6e416c7465726e61746976651210" .
- "0a0869735f66696e616c18022001280812110a0973746162696c69747918" .
- "032001280212320a0f726573756c745f656e645f74696d6518042001280b" .
- "32192e676f6f676c652e70726f746f6275662e4475726174696f6e12130a" .
- "0b6368616e6e656c5f74616718052001280512150a0d6c616e6775616765" .
- "5f636f6465180620012809227a0a175370656563685265636f676e697469" .
- "6f6e526573756c74124a0a0c616c7465726e61746976657318012003280b" .
- "32342e676f6f676c652e636c6f75642e7370656563682e76312e53706565" .
- "63685265636f676e6974696f6e416c7465726e617469766512130a0b6368" .
- "616e6e656c5f74616718022001280522770a1c5370656563685265636f67" .
- "6e6974696f6e416c7465726e617469766512120a0a7472616e7363726970" .
- "7418012001280912120a0a636f6e666964656e6365180220012802122f0a" .
- "05776f72647318032003280b32202e676f6f676c652e636c6f75642e7370" .
- "656563682e76312e576f7264496e666f22740a08576f7264496e666f122d" .
- "0a0a73746172745f74696d6518012001280b32192e676f6f676c652e7072" .
- "6f746f6275662e4475726174696f6e122b0a08656e645f74696d65180220" .
- "01280b32192e676f6f676c652e70726f746f6275662e4475726174696f6e" .
- "120c0a04776f726418032001280932a9030a065370656563681281010a09" .
- "5265636f676e697a6512282e676f6f676c652e636c6f75642e7370656563" .
- "682e76312e5265636f676e697a65526571756573741a292e676f6f676c65" .
- "2e636c6f75642e7370656563682e76312e5265636f676e697a6552657370" .
- "6f6e7365221f82d3e493021922142f76312f7370656563683a7265636f67" .
- "6e697a653a012a1296010a144c6f6e6752756e6e696e675265636f676e69" .
- "7a6512332e676f6f676c652e636c6f75642e7370656563682e76312e4c6f" .
- "6e6752756e6e696e675265636f676e697a65526571756573741a1d2e676f" .
- "6f676c652e6c6f6e6772756e6e696e672e4f7065726174696f6e222a82d3" .
- "e4930224221f2f76312f7370656563683a6c6f6e6772756e6e696e677265" .
- "636f676e697a653a012a1281010a1253747265616d696e675265636f676e" .
- "697a6512312e676f6f676c652e636c6f75642e7370656563682e76312e53" .
- "747265616d696e675265636f676e697a65526571756573741a322e676f6f" .
- "676c652e636c6f75642e7370656563682e76312e53747265616d696e6752" .
- "65636f676e697a65526573706f6e7365220028013001426c0a1a636f6d2e" .
- "676f6f676c652e636c6f75642e7370656563682e7631420b537065656368" .
- "50726f746f50015a3c676f6f676c652e676f6c616e672e6f72672f67656e" .
- "70726f746f2f676f6f676c65617069732f636c6f75642f7370656563682f" .
- "76313b737065656368f80101620670726f746f33"
+ "70656563685265636f676e6974696f6e526573756c7422600a1c4c6f6e67" .
+ "52756e6e696e675265636f676e697a65526573706f6e736512400a077265" .
+ "73756c747318022003280b322f2e676f6f676c652e636c6f75642e737065" .
+ "6563682e76312e5370656563685265636f676e6974696f6e526573756c74" .
+ "229e010a1c4c6f6e6752756e6e696e675265636f676e697a654d65746164" .
+ "61746112180a1070726f67726573735f70657263656e7418012001280512" .
+ "2e0a0a73746172745f74696d6518022001280b321a2e676f6f676c652e70" .
+ "726f746f6275662e54696d657374616d7012340a106c6173745f75706461" .
+ "74655f74696d6518032001280b321a2e676f6f676c652e70726f746f6275" .
+ "662e54696d657374616d7022b1020a1a53747265616d696e675265636f67" .
+ "6e697a65526573706f6e736512210a056572726f7218012001280b32122e" .
+ "676f6f676c652e7270632e53746174757312430a07726573756c74731802" .
+ "2003280b32322e676f6f676c652e636c6f75642e7370656563682e76312e" .
+ "53747265616d696e675265636f676e6974696f6e526573756c74125d0a11" .
+ "7370656563685f6576656e745f7479706518042001280e32422e676f6f67" .
+ "6c652e636c6f75642e7370656563682e76312e53747265616d696e675265" .
+ "636f676e697a65526573706f6e73652e5370656563684576656e74547970" .
+ "65224c0a0f5370656563684576656e7454797065121c0a18535045454348" .
+ "5f4556454e545f554e5350454349464945441000121b0a17454e445f4f46" .
+ "5f53494e474c455f5554544552414e4345100122ed010a1a53747265616d" .
+ "696e675265636f676e6974696f6e526573756c74124a0a0c616c7465726e" .
+ "61746976657318012003280b32342e676f6f676c652e636c6f75642e7370" .
+ "656563682e76312e5370656563685265636f676e6974696f6e416c746572" .
+ "6e617469766512100a0869735f66696e616c18022001280812110a097374" .
+ "6162696c69747918032001280212320a0f726573756c745f656e645f7469" .
+ "6d6518042001280b32192e676f6f676c652e70726f746f6275662e447572" .
+ "6174696f6e12130a0b6368616e6e656c5f74616718052001280512150a0d" .
+ "6c616e67756167655f636f6465180620012809227a0a1753706565636852" .
+ "65636f676e6974696f6e526573756c74124a0a0c616c7465726e61746976" .
+ "657318012003280b32342e676f6f676c652e636c6f75642e737065656368" .
+ "2e76312e5370656563685265636f676e6974696f6e416c7465726e617469" .
+ "766512130a0b6368616e6e656c5f74616718022001280522770a1c537065" .
+ "6563685265636f676e6974696f6e416c7465726e617469766512120a0a74" .
+ "72616e73637269707418012001280912120a0a636f6e666964656e636518" .
+ "0220012802122f0a05776f72647318032003280b32202e676f6f676c652e" .
+ "636c6f75642e7370656563682e76312e576f7264496e666f22740a08576f" .
+ "7264496e666f122d0a0a73746172745f74696d6518012001280b32192e67" .
+ "6f6f676c652e70726f746f6275662e4475726174696f6e122b0a08656e64" .
+ "5f74696d6518022001280b32192e676f6f676c652e70726f746f6275662e" .
+ "4475726174696f6e120c0a04776f726418032001280932a9030a06537065" .
+ "6563681281010a095265636f676e697a6512282e676f6f676c652e636c6f" .
+ "75642e7370656563682e76312e5265636f676e697a65526571756573741a" .
+ "292e676f6f676c652e636c6f75642e7370656563682e76312e5265636f67" .
+ "6e697a65526573706f6e7365221f82d3e493021922142f76312f73706565" .
+ "63683a7265636f676e697a653a012a1296010a144c6f6e6752756e6e696e" .
+ "675265636f676e697a6512332e676f6f676c652e636c6f75642e73706565" .
+ "63682e76312e4c6f6e6752756e6e696e675265636f676e697a6552657175" .
+ "6573741a1d2e676f6f676c652e6c6f6e6772756e6e696e672e4f70657261" .
+ "74696f6e222a82d3e4930224221f2f76312f7370656563683a6c6f6e6772" .
+ "756e6e696e677265636f676e697a653a012a1281010a1253747265616d69" .
+ "6e675265636f676e697a6512312e676f6f676c652e636c6f75642e737065" .
+ "6563682e76312e53747265616d696e675265636f676e697a655265717565" .
+ "73741a322e676f6f676c652e636c6f75642e7370656563682e76312e5374" .
+ "7265616d696e675265636f676e697a65526573706f6e7365220028013001" .
+ "426c0a1a636f6d2e676f6f676c652e636c6f75642e7370656563682e7631" .
+ "420b53706565636850726f746f50015a3c676f6f676c652e676f6c616e67" .
+ "2e6f72672f67656e70726f746f2f676f6f676c65617069732f636c6f7564" .
+ "2f7370656563682f76313b737065656368f80101620670726f746f33"
), true);
static::$is_initialized = true;
diff --git a/Speech/src/V1/RecognitionConfig.php b/Speech/src/V1/RecognitionConfig.php
index 0729c7ee7abc..1b1d9a6b9248 100644
--- a/Speech/src/V1/RecognitionConfig.php
+++ b/Speech/src/V1/RecognitionConfig.php
@@ -122,6 +122,19 @@ class RecognitionConfig extends \Google\Protobuf\Internal\Message
* Generated from protobuf field bool enable_automatic_punctuation = 11;
*/
private $enable_automatic_punctuation = false;
+ /**
+ * *Optional* Config to enable speaker diarization and set additional
+ * parameters to make diarization better suited for your application.
+ * Note: When this is enabled, we send all the words from the beginning of the
+ * 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 .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
+ */
+ private $diarization_config = null;
/**
* *Optional* Metadata regarding this request.
*
@@ -250,6 +263,15 @@ class RecognitionConfig extends \Google\Protobuf\Internal\Message
* 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.
+ * @type \Google\Cloud\Speech\V1\SpeakerDiarizationConfig $diarization_config
+ * *Optional* Config to enable speaker diarization and set additional
+ * parameters to make diarization better suited for your application.
+ * Note: When this is enabled, we send all the words from the beginning of the
+ * 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 \Google\Cloud\Speech\V1\RecognitionMetadata $metadata
* *Optional* Metadata regarding this request.
* @type string $model
@@ -652,6 +674,46 @@ public function setEnableAutomaticPunctuation($var)
return $this;
}
+ /**
+ * *Optional* Config to enable speaker diarization and set additional
+ * parameters to make diarization better suited for your application.
+ * Note: When this is enabled, we send all the words from the beginning of the
+ * 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 .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
+ * @return \Google\Cloud\Speech\V1\SpeakerDiarizationConfig
+ */
+ public function getDiarizationConfig()
+ {
+ return $this->diarization_config;
+ }
+
+ /**
+ * *Optional* Config to enable speaker diarization and set additional
+ * parameters to make diarization better suited for your application.
+ * Note: When this is enabled, we send all the words from the beginning of the
+ * 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 .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
+ * @param \Google\Cloud\Speech\V1\SpeakerDiarizationConfig $var
+ * @return $this
+ */
+ public function setDiarizationConfig($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Speech\V1\SpeakerDiarizationConfig::class);
+ $this->diarization_config = $var;
+
+ return $this;
+ }
+
/**
* *Optional* Metadata regarding this request.
*
diff --git a/Speech/src/V1/SpeakerDiarizationConfig.php b/Speech/src/V1/SpeakerDiarizationConfig.php
new file mode 100644
index 000000000000..4a83b88c5edf
--- /dev/null
+++ b/Speech/src/V1/SpeakerDiarizationConfig.php
@@ -0,0 +1,217 @@
+google.cloud.speech.v1.SpeakerDiarizationConfig
+ */
+class SpeakerDiarizationConfig extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * *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.
+ *
+ * Generated from protobuf field bool enable_speaker_diarization = 1;
+ */
+ private $enable_speaker_diarization = false;
+ /**
+ * *Optional*
+ * Minimum number of speakers in the conversation. This range gives you more
+ * flexibility by allowing the system to automatically determine the correct
+ * number of speakers. If not set, the default value is 2.
+ *
+ * Generated from protobuf field int32 min_speaker_count = 2;
+ */
+ private $min_speaker_count = 0;
+ /**
+ * *Optional*
+ * Maximum number of speakers in the conversation. This range gives you more
+ * flexibility by allowing the system to automatically determine the correct
+ * number of speakers. If not set, the default value is 6.
+ *
+ * Generated from protobuf field int32 max_speaker_count = 3;
+ */
+ private $max_speaker_count = 0;
+ /**
+ * Output only. A distinct integer value is assigned for every speaker within
+ * the audio. This field specifies which one of those speakers was detected to
+ * have spoken this word. Value ranges from '1' to diarization_speaker_count.
+ * speaker_tag is set if enable_speaker_diarization = 'true' and only in the
+ * top alternative.
+ *
+ * Generated from protobuf field int32 speaker_tag = 5;
+ */
+ private $speaker_tag = 0;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @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.
+ * @type int $min_speaker_count
+ * *Optional*
+ * Minimum number of speakers in the conversation. This range gives you more
+ * flexibility by allowing the system to automatically determine the correct
+ * number of speakers. If not set, the default value is 2.
+ * @type int $max_speaker_count
+ * *Optional*
+ * Maximum number of speakers in the conversation. This range gives you more
+ * flexibility by allowing the system to automatically determine the correct
+ * number of speakers. If not set, the default value is 6.
+ * @type int $speaker_tag
+ * Output only. A distinct integer value is assigned for every speaker within
+ * the audio. This field specifies which one of those speakers was detected to
+ * have spoken this word. Value ranges from '1' to diarization_speaker_count.
+ * speaker_tag is set if enable_speaker_diarization = 'true' and only in the
+ * top alternative.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Speech\V1\CloudSpeech::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * *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.
+ *
+ * Generated from protobuf field bool enable_speaker_diarization = 1;
+ * @return bool
+ */
+ public function getEnableSpeakerDiarization()
+ {
+ return $this->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.
+ *
+ * Generated from protobuf field bool enable_speaker_diarization = 1;
+ * @param bool $var
+ * @return $this
+ */
+ public function setEnableSpeakerDiarization($var)
+ {
+ GPBUtil::checkBool($var);
+ $this->enable_speaker_diarization = $var;
+
+ return $this;
+ }
+
+ /**
+ * *Optional*
+ * Minimum number of speakers in the conversation. This range gives you more
+ * flexibility by allowing the system to automatically determine the correct
+ * number of speakers. If not set, the default value is 2.
+ *
+ * Generated from protobuf field int32 min_speaker_count = 2;
+ * @return int
+ */
+ public function getMinSpeakerCount()
+ {
+ return $this->min_speaker_count;
+ }
+
+ /**
+ * *Optional*
+ * Minimum number of speakers in the conversation. This range gives you more
+ * flexibility by allowing the system to automatically determine the correct
+ * number of speakers. If not set, the default value is 2.
+ *
+ * Generated from protobuf field int32 min_speaker_count = 2;
+ * @param int $var
+ * @return $this
+ */
+ public function setMinSpeakerCount($var)
+ {
+ GPBUtil::checkInt32($var);
+ $this->min_speaker_count = $var;
+
+ return $this;
+ }
+
+ /**
+ * *Optional*
+ * Maximum number of speakers in the conversation. This range gives you more
+ * flexibility by allowing the system to automatically determine the correct
+ * number of speakers. If not set, the default value is 6.
+ *
+ * Generated from protobuf field int32 max_speaker_count = 3;
+ * @return int
+ */
+ public function getMaxSpeakerCount()
+ {
+ return $this->max_speaker_count;
+ }
+
+ /**
+ * *Optional*
+ * Maximum number of speakers in the conversation. This range gives you more
+ * flexibility by allowing the system to automatically determine the correct
+ * number of speakers. If not set, the default value is 6.
+ *
+ * Generated from protobuf field int32 max_speaker_count = 3;
+ * @param int $var
+ * @return $this
+ */
+ public function setMaxSpeakerCount($var)
+ {
+ GPBUtil::checkInt32($var);
+ $this->max_speaker_count = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. A distinct integer value is assigned for every speaker within
+ * the audio. This field specifies which one of those speakers was detected to
+ * have spoken this word. Value ranges from '1' to diarization_speaker_count.
+ * speaker_tag is set if enable_speaker_diarization = 'true' and only in the
+ * top alternative.
+ *
+ * Generated from protobuf field int32 speaker_tag = 5;
+ * @return int
+ */
+ public function getSpeakerTag()
+ {
+ return $this->speaker_tag;
+ }
+
+ /**
+ * Output only. A distinct integer value is assigned for every speaker within
+ * the audio. This field specifies which one of those speakers was detected to
+ * have spoken this word. Value ranges from '1' to diarization_speaker_count.
+ * speaker_tag is set if enable_speaker_diarization = 'true' and only in the
+ * top alternative.
+ *
+ * Generated from protobuf field int32 speaker_tag = 5;
+ * @param int $var
+ * @return $this
+ */
+ public function setSpeakerTag($var)
+ {
+ GPBUtil::checkInt32($var);
+ $this->speaker_tag = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/Speech/synth.metadata b/Speech/synth.metadata
index 6524a28d9d61..f0084466dbe3 100644
--- a/Speech/synth.metadata
+++ b/Speech/synth.metadata
@@ -1,19 +1,19 @@
{
- "updateTime": "2019-08-07T18:04:55.643625Z",
+ "updateTime": "2019-09-05T10:03:25.911771Z",
"sources": [
{
"generator": {
"name": "artman",
- "version": "0.29.1",
- "dockerImage": "googleapis/artman@sha256:b2a73f4dda03ef8fcaa973e3ba26d0cf34091f6c22c70add663af325931aef4d"
+ "version": "0.36.2",
+ "dockerImage": "googleapis/artman@sha256:0e6f3a668cd68afc768ecbe08817cf6e56a0e64fcbdb1c58c3b97492d12418a1"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "3a1b46a6668194a527e532a2c355b404c79b0e6a",
- "internalRef": "262167956"
+ "sha": "0930bdac6369674ed7460d3de230a6b9193600b7",
+ "internalRef": "267282771"
}
}
],