Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var speech = require('@google-cloud/speech')({
- projectId: 'xxxxxxxx',
- keyFilename: 'xxxxxxx'
- });
- speech.recognize(file, {
- encoding: 'FLAC',
- sampleRate: 44100
- }, function(err, transcript) {
- if(err) {
- throw err;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement