Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. var speech = require('@google-cloud/speech')({
  2. projectId: 'xxxxxxxx',
  3. keyFilename: 'xxxxxxx'
  4. });
  5. speech.recognize(file, {
  6. encoding: 'FLAC',
  7. sampleRate: 44100
  8. }, function(err, transcript) {
  9. if(err) {
  10. throw err;
  11. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement