I am using below Node.js script snippet,
'use strict';
var google_speech = require('google-speech');
google_speech.ASR({
debug: true,
lang: 'en_US',
developer_key: '<Google API Key>',
file: '<voice file name with path>',
}, function(err, httpResponse, xml){
if(err){
console.log(err);
}else{
console.log(httpResponse.statusCode, xml)
}
}
);
The output I am getting from some audio files but not for all. Even for example one flac
file is giving output but another flac
file doesn't.
Is there any specific type of files are required for this API to give output. If yes, then let me know the specific type/format of the file.