dialogflow / dialogflow-nodejs-client

Node.js SDK for Dialogflow
Apache License 2.0
658 stars 287 forks source link

API.AI speech recognition is going to be deprecated soon. #35

Closed Sultan91 closed 7 years ago

Sultan91 commented 7 years ago

Is this true screenshot001 when trying to run the fllowing sample a get an error. `var fs = require("fs");

// var apiai = require("../module/apiai"); var apiai = require("apiai");

var app = apiai("token", { language: 'eng' });

var request = app.voiceRequest();

request.on('response', function(response) { console.log(response); });

request.on('error', function(error) { console.log(error); });

fs.readFile("1.wav", function(error, buffer) { if (error) { console.log(error); } else { request.write(buffer); }

request.end();

});`

sstepashka commented 7 years ago

This is expected response. We doesn't support voice recognition anymore.

Our company's main focus is NLU (natural language understanding) and dialog management. We provide a platform for creating conversational interfaces (called agents) for apps, bots, and devices. These interfaces are designed to receive text as input information.

Depending on your app, bot, or device platform, speech recognition might be available natively. For example, if you are building an Action on Google, Google Home supports speech recognition natively.

For some other platforms, speech recognition can be integrated as an additional component.

API.AI doesn't provide speech recognition services. You can consider using Google Speech API or other 3rd party solution for speech recognition and use API.AI for building a conversational interface.