title: Api speech v2 google result empty
body: <blockquote>
    <p>I use google api speech. But my function always return two results: {"result": []} and "". I am looking for a solution, but I can not find.
    My audio file is there  <a href="http://custa.web44.net/10002_en.flac" rel="nofollow">http://custa.web44.net/10002_en.flac</a></p>
  </blockquote>
  
  <pre><code> FileStream fileStream = System.IO.File.OpenRead(Server.MapPath("/10002_en.flac"));
                  MemoryStream memoryStream = new MemoryStream();
                  memoryStream.SetLength(fileStream.Length);
                  fileStream.Read(memoryStream.GetBuffer(), 0, (int)fileStream.Length);
                  byte[] BA_AudioFile = memoryStream.GetBuffer();
                  HttpWebRequest _HWR_SpeechToText = null;
                  _HWR_SpeechToText = (HttpWebRequest)HttpWebRequest.Create("https://www.google.com/speech-api/v2/recognize?output=json&amp;lang=en-us&amp;key=my-key");
                  _HWR_SpeechToText.Credentials = CredentialCache.DefaultCredentials;
                  _HWR_SpeechToText.Method = "POST";
                  _HWR_SpeechToText.ContentType = "audio/x-flac; rate=44100";
                  _HWR_SpeechToText.ContentLength = BA_AudioFile.Length;
                  Stream stream = _HWR_SpeechToText.GetRequestStream();
                  stream.Write(BA_AudioFile, 0, BA_AudioFile.Length);
                  stream.Close();
                  HttpWebResponse HWR_Response = (HttpWebResponse)_HWR_SpeechToText.GetResponse();
  
                  StreamReader SR_Response = new StreamReader(HWR_Response.GetResponseStream());
                  string responseFromServer = (SR_Response.ReadToEnd());
  
                  String[] jsons = responseFromServer.Split('\n');
  </code></pre>