diff --git a/packages/google-cloud-speech/samples/README.md b/packages/google-cloud-speech/samples/README.md index e568e3f053c..f4d546fd929 100644 --- a/packages/google-cloud-speech/samples/README.md +++ b/packages/google-cloud-speech/samples/README.md @@ -42,9 +42,10 @@ Commands: listen Detects speech in a microphone input stream. Options: - --help Show help [boolean] + --help Show help [boolean] --encoding, -e [string] [default: "LINEAR16"] - --sampleRate, -r [number] [default: 16000] + --sampleRateHertz, -r [number] [default: 16000] + --languageCode, -l [string] [default: "en-US"] Examples: node recognize.js sync ./resources/audio.raw -e LINEAR16 -r 16000 diff --git a/packages/google-cloud-speech/samples/package.json b/packages/google-cloud-speech/samples/package.json index e0902234332..282fbcb85f8 100644 --- a/packages/google-cloud-speech/samples/package.json +++ b/packages/google-cloud-speech/samples/package.json @@ -9,9 +9,9 @@ }, "dependencies": { "@google-cloud/speech": "0.9.0", - "@google-cloud/storage": "0.7.0", - "node-record-lpcm16": "0.2.0", - "yargs": "6.6.0" + "@google-cloud/storage": "1.0.0", + "node-record-lpcm16": "0.3.0", + "yargs": "7.0.2" }, "engines": { "node": ">=4.3.2" diff --git a/packages/google-cloud-speech/samples/quickstart.js b/packages/google-cloud-speech/samples/quickstart.js index 48c58b2c1d6..a2501407e69 100644 --- a/packages/google-cloud-speech/samples/quickstart.js +++ b/packages/google-cloud-speech/samples/quickstart.js @@ -42,5 +42,8 @@ speechClient.recognize(fileName, options) .then((results) => { const transcription = results[0]; console.log(`Transcription: ${transcription}`); + }) + .catch((err) => { + console.error('ERROR:', err); }); // [END speech_quickstart]