title: Google Speech-to-Text: Invalid recognition 'config': bad sample rate hertz
body: <p>I am trying to convert speech to text using the REST full service. I am using .wav file (PCM 16 bit Mono 16000 HZ)</p>
  
  <p>URL: <a href="https://speech.googleapis.com/v1p1beta1/speech:recognize" rel="nofollow noreferrer">https://speech.googleapis.com/v1p1beta1/speech:recognize</a></p>
  
  <p>JSON request:</p>
  
  <pre class="lang-js prettyprint-override"><code>{
      "config": {
          "enableAutomaticPunctuation": "true",
          "encoding": "LINEAR16",
          "languageCode": "en-US",
          "model": "default"
      },
      "audio": {
          "content": "QzpcU3BlZWNoVG9UZXh0XGVuZ2xpc2hcUENNXEVORy1DUk0tRE9XTlRJTUUud2F2"
      }
  }
  </code></pre>
  
  <p>Error:</p>
  
  <pre class="lang-js prettyprint-override"><code>"error": {
      "code": 400,
      "message": "Invalid recognition 'config': bad sample rate hertz.",
      "status": "INVALID_ARGUMENT"
  }
  </code></pre>
  
  <p>Could you please help to resolve this error?</p>