Skip to content

Commit

Permalink
Vision snippets. (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry authored Jan 10, 2017
1 parent 408fe05 commit cd64522
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion speech/recognize.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ function streamingMicRecognize () {
.on('data', (data) => process.stdout.write(data.results));

// Start recording and send the microphone input to the Speech API
record.start({ sampleRate: 16000 }).pipe(recognizeStream);
record.start({
sampleRate: 16000,
threshold: 0
}).pipe(recognizeStream);

console.log('Listening, press Ctrl+C to stop.');
}
Expand Down
2 changes: 1 addition & 1 deletion speech/system-test/quickstart.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const config = {
};

test.before(stubConsole);
test.after(restoreConsole);
test.after.always(restoreConsole);

test.cb(`should detect speech`, (t) => {
const expectedFileName = `./resources/audio.raw`;
Expand Down

0 comments on commit cd64522

Please sign in to comment.