Skip to content

Commit

Permalink
fix: streaming mic sample
Browse files Browse the repository at this point in the history
  • Loading branch information
telpirion authored May 27, 2020
1 parent 2cfc3fb commit a89f6ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions media-translation/translate_from_mic.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ function main(encoding, sampleRateHertz, sourceLanguage, targetLanguage) {
audioContent: chunk.toString('base64'),
};
stream.write(request);
})
.on('error', console.log)
.pipe(stream);
});

console.log('Listening, press Ctrl+C to stop.');
}
Expand Down

0 comments on commit a89f6ac

Please sign in to comment.