/*!
 * apiai
 * Copyright(c) 2015 http://api.ai/
 * MIT Licensed
 */

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

var app = apiai("3485a96fb27744db83e78b8c4bc9e7b7", "cb9693af-85ce-4fbf-844a-5563722fc27f");

var request = app.voiceRequest();

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

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

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

    request.end();
});
@@ -149,80 +149,40 @@
 ai(%22
-3485a96fb27744db83e78b8c4bc9e7b7%22, %22cb9693af-85ce-4fbf-844a-5563722fc27f
+ACCESS_TOKEN%22, %22SUBSCRIPTION_KEY
 %22);%0A
@@ -529,12 +529,13 @@
 t.end();%0A%7D);
+%0A

Update voice_request.js