Skip to content

Commit 2c5c68c

Browse files
authored
feat: expand types for streamingRecognize (#6254)
1 parent 5dc6342 commit 2c5c68c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/google-cloud-speech/src/helpers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export class ImprovedStreamingClient {
5858
*/
5959
streamingRecognize(
6060
streamingConfig?:
61+
| protosTypes.google.cloud.speech.v2.IStreamingRecognitionConfig
6162
| protosTypes.google.cloud.speech.v1.IStreamingRecognitionConfig
6263
| protosTypes.google.cloud.speech.v1p1beta1.IStreamingRecognitionConfig,
6364
options?: gax.CallOptions
@@ -78,6 +79,7 @@ export class ImprovedStreamingClient {
7879
'response',
7980
(
8081
response:
82+
| protosTypes.google.cloud.speech.v2.StreamingRecognizeResponse
8183
| protosTypes.google.cloud.speech.v1.StreamingRecognizeResponse
8284
| protosTypes.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse
8385
) => {

0 commit comments

Comments
 (0)