Skip to content

Google Cloud Speech NodeJS veneer: Examples in comments don't illustrate needed parameters #1926

@pbogle

Description

@pbogle

The examples in the comments in the NodeJS veneer won't work because they don't include needed parameters: e.g. the {} values in:
https://github.com/GoogleCloudPlatform/google-cloud-node/blob/master/packages/speech/src/v1beta1/speech_client.js#L158

 var client = speechV1beta1.speechClient();
  var config = {};
  var audio = {};
  var request = {
      config: config,
      audio: audio
  };
  client.syncRecognize(request).then(function(responses) {
      var response = responses[0];
      // doThingsWith(response)
  }).catch(function(err) {
      console.error(err);
  });


Metadata

Metadata

Labels

api: speechIssues related to the Speech-to-Text API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions