title: Dialogflow V2 | DetectIntent
body: <p>I am trying to use dialogflow API v2 to provide audio (base64string) directly to dialogflow instead of text.</p>
  
  <p>URL : <a href="https://dialogflow.googleapis.com/v2/projects/my_project_id/agent/sessions/12345:detectIntent" rel="nofollow noreferrer">https://dialogflow.googleapis.com/v2/projects/my_project_id/agent/sessions/12345:detectIntent</a></p>
  
  <p>The Authentication Bearer content-type have been set correctly in the header.</p>
  
  <p>Request :</p>
  
  <pre><code>{  
     "queryInput":{  
        "audioConfig":{
          "audioEncoding": "AUDIO_ENCODING_LINEAR_16",
          "sampleRateHertz": 16000,
          "languageCode":"en"
  
        }
     },
     "inputAudio":"SUQzBAAAAAAAI1RTU0UAAAA..."
  }
  </code></pre>
  
  <p>I am getting success in response, however the response is incomplete.</p>
  
  <pre><code>{
      "queryResult": {
          "languageCode": "en"
      }
  }
  </code></pre>
  
  <p>Additionally, the message does not show in Dialogflow history. Can anyone facing the same issue or having any idea/suggestion how to tackle this please help?</p>
  
  <p>Ref : <a href="https://cloud.google.com/dialogflow-enterprise/docs/reference/rest/v2/projects.agent.sessions/detectIntent#request-body" rel="nofollow noreferrer">https://cloud.google.com/dialogflow-enterprise/docs/reference/rest/v2/projects.agent.sessions/detectIntent#request-body</a></p>
  
  <p>Note: When using Text input instead of Audio, this works perfectly.</p>