Skip to content

Commit

Permalink
Bring ML APIs up to standard. (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry authored Apr 12, 2017
1 parent 9772d8c commit 9b79f59
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions packages/google-cloud-speech/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions packages/google-cloud-speech/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions packages/google-cloud-speech/samples/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 9b79f59

Please sign in to comment.