You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: speech-to-text/v1.ts
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -301,7 +301,7 @@ class SpeechToTextV1 extends GeneratedSpeechToTextV1 {
301
301
* Sets 'Transfer-Encoding': 'chunked' and prepare the connection to send
302
302
* chunk data.
303
303
*
304
-
* @deprecated use createRecognizeStream instead
304
+
* @deprecated use recognizeUsingWebSocket instead
305
305
*
306
306
* @param {Object} params The parameters
307
307
* @param {String} [params.content_type] - The Content-type e.g. audio/l16; rate=48000
@@ -373,7 +373,7 @@ class SpeechToTextV1 extends GeneratedSpeechToTextV1 {
373
373
* This request has to be started before POST on recognize finishes,
374
374
* otherwise it waits for the next recognition.
375
375
*
376
-
* @deprecated use createRecognizeStream instead
376
+
* @deprecated use recognizeUsingWebSocket instead
377
377
*
378
378
* @param {Object} params The parameters
379
379
* @param {String} [params.session_id] - Session used in the recognition
@@ -440,8 +440,20 @@ class SpeechToTextV1 extends GeneratedSpeechToTextV1 {
440
440
*
441
441
* @param {Object} params The parameters
442
442
* @return {RecognizeStream}
443
+
* @deprecated
443
444
*/
444
445
createRecognizeStream(params){
446
+
console.warn("WARNING: createRecognizeStream() was renamed to recognizeUsingWebSocket(). Support for createRecognizeStream() will be removed in the next major release");
447
+
returnthis.recognizeUsingWebSocket(params);
448
+
}
449
+
450
+
/**
451
+
* Use the recognize function with a single 2-way stream over websockets
0 commit comments