This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mic; | |
var SpeechToTextV1 = require('watson-developer-cloud/speech-to-text/v1'); | |
var fs = require('fs'); | |
var watson = require('watson-developer-cloud'); | |
var cp = require('child_process'); | |
mic = cp.spawn('arecord', ['--device=plughw:1,0', '--format=S16_LE', '--rate=44100', '--channels=1']); | |
mic.stderr.pipe(process.stderr); | |
stt(); | |
function stt() { |