title: Send twilio speech result to working function
body: <p>Hello I have the following working function. I am having trouble using the  or  functions properly. Here is the working porting of the code. 
  I have tried: </p>
  
  <pre><code>  let twiml = new Twilio.twiml.VoiceResponse();
    twiml.say({ voice: 'man', language: 'en-gb' }, 'Hello I.T.');
  </code></pre>
  
  <p>CODE:</p>
  
  <pre><code>const got = require('got');
  exports.handler = function(context, event, callback) {
  </code></pre>
  
  <p>I want to record the first 15 seconds of the call and replace "test" with event.SpeechResult.toString()  </p>
  
  <pre><code>  const requestBody = {
      text: "test"
    };
    got.post('https://hooks.slack.com/services/T08Q2345/B7D6H7U6A/THAVF2343234oSj5x', {
      headers: {
        'Content-Type': 'application/json'
      },
      body: JSON.stringify(requestBody)
    })
    .then(response =&gt; {
      let twiml = new Twilio.twiml.MessagingResponse();
      callback(null, twiml);
    })
    .catch(err =&gt; {
      callback(err);
    });
  };
  </code></pre>