We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f97b80 commit 7f2ddc7Copy full SHA for 7f2ddc7
speech-to-text/v1.ts
@@ -484,7 +484,7 @@ class SpeechToTextV1 extends GeneratedSpeechToTextV1 {
484
}
485
486
recognize(params, callback) {
487
- if (isStream(params.audio) && !params.content_type) {
+ if (params && params.audio && isStream(params.audio) && !params.content_type) {
488
callback(new Error('If providing `audio` as a Stream, `content_type` is required.'));
489
return;
490
0 commit comments