Skip to content

Commit

Permalink
Update samples to match new Speech API (#342)
Browse files Browse the repository at this point in the history
Update samples to match new Speech API
  • Loading branch information
Ace Nassri authored Apr 11, 2017
1 parent 2b712cb commit 9772d8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-speech/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test": "cd ..; npm run st -- --verbose speech/system-test/*.test.js"
},
"dependencies": {
"@google-cloud/speech": "0.6.0",
"@google-cloud/speech": "0.9.0",
"@google-cloud/storage": "0.7.0",
"node-record-lpcm16": "0.2.0",
"yargs": "6.6.0"
Expand Down
5 changes: 3 additions & 2 deletions packages/google-cloud-speech/samples/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ const speechClient = Speech({
// The name of the audio file to transcribe
const fileName = './resources/audio.raw';

// The audio file's encoding and sample rate
// The audio file's encoding, sample rate in hertz, and BCP-47 language code
const options = {
encoding: 'LINEAR16',
sampleRate: 16000
sampleRateHertz: 16000,
languageCode: 'en-US'
};

// Detects speech in the audio file
Expand Down

0 comments on commit 9772d8c

Please sign in to comment.