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);
});
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