title: Google cloud -speech api return null result
body: <p>I work with Google cloud speech API. When I run my script there is a call to the API and a response. The operation info returns data, but the result is empty.</p>
  
  <p>Here is my code (where file url, file name, key url, project name and bucket name I deleted the real data):</p>
  
  <pre><code>function __construct(){
  
  
          $file_url='file path.mp3';
          $filename='file name.mp3';
  
          /** Create google client **/
          $client = new Google_Client();
          $key='path to google key';
          putenv($key);
          $client-&gt;useApplicationDefaultCredentials();
  
  
          /** Create storage **/
          $str_config = array(
                              'projectId' =&gt; 'project id'
                              );
          $storage = new StorageClient($str_config);
  
          $bucket_name='bucket name';
          $bucket=$storage-&gt;bucket($bucket_name);
          $object = $bucket-&gt;object($filename);
  
  
          /** Create Speech **/
          $config = array(
                  'projectId' =&gt; 'project id',
                  'languageCode' =&gt; 'en-US'
          );
  
          $options = array(
                  "encoding"=&gt;'LINEAR16',
                  "languageCode"=&gt;"en-US",
                  'sampleRateHertz' =&gt; 16000
          )
          ;
          $speech = new Google\Cloud\Speech\SpeechClient($config);
          $operation = $speech-&gt;beginRecognizeOperation(
                  $object,
                  $options
                  );
  
  
          $backoff = new ExponentialBackoff(100);
          $backoff-&gt;execute(function () use ($operation) {
              print('Waiting for operation to complete' . PHP_EOL);
              $operation-&gt;reload();
              if (!$operation-&gt;isComplete()) {
                  throw new Exception('Job has not yet completed', 500);
              }
          });
  
              if ($operation-&gt;isComplete()) {
                  if (empty($results = $operation-&gt;results())) {
                      $results = $operation-&gt;info();
  
                  }
                  var_dump($results, $operatimon-&gt;results());
              }
  
  
  }
  </code></pre>
  
  <p>The result i get call: </p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [name] =&gt; some name
              [metadata] =&gt; Array
                  (
  
  
  
  
                      [@type]=&gt; type.googleapis.com/google.cloud.speech.v1.LongRunningRecognizeMetadata
                      [progressPercent] =&gt; 100
                      [startTime] =&gt; 2017-07-16T19:15:58.768490Z
                      [lastUpdateTime] =&gt; 2017-07-16T19:15:59.999625Z
                  )
  
              [done] =&gt; 1
              [response] =&gt; Array
                  (
                      [@type]=&gt; type.googleapis.com/google.cloud.speech.v1.LongRunningRecognizeResponse
                      [totalBilledTime] =&gt; 15s
                  )
  
          )
  
      [1] =&gt; Array
          (
          )
  
  )
  </code></pre>
  
  <p>I tried several file type whit several encodings, can't find the right combination. Or maybe there is another problem. Pleas Help.</p>