title: How to use api.ai speech recognition in my service
body: <p>As I was learning how to use <a href="https://api.ai/" rel="nofollow noreferrer">api.ai</a>, I created a service that accepts text and replies with some text. But I observed that I can use my voice, and it will recognize what I say, see the microphone in the iamge:<a href="https://i.stack.imgur.com/uUUtJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uUUtJ.png" alt="enter image description here"></a>
  Now I want to use this feature in my service. I mean instead of taking text from the user, I want to take an audio file and <a href="https://api.ai/" rel="nofollow noreferrer">api.ai</a> recognizes speech in that file and sends response to the user accordingly.
  If anyone could help, I will be grateful.</p>