old_contents: /*!
   * 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();
  });
new_contents: /*!
   * apiai
   * Copyright(c) 2015 http://api.ai/
   * MIT Licensed
   */
  
  var fs = require("fs");
  var apiai = require("../module/apiai");
  
  var app = apiai("ACCESS_TOKEN", "SUBSCRIPTION_KEY");
  
  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();
  });
  
subject: Update voice_request.js