I have been working on google speech recognition API v2 using node js npm google-speech-api https://www.npmjs.com/package/google-speech-api it is working, but i need to get the "interim results".
How can i get the interim results of the audio being processing. I have searched online but not able to find helpful information and make it work.
Below is the code i am working on currently:
var speech = require('google-speech-api');
var fs = require('fs');
var opts = {
file: 'amy_16.wav',
key: 'xxxx',
};
speech(opts, function (err, results) {
console.log(JSON.stringify(results));
// [{result: [{alternative: [{transcript: '...'}]}]}]
});