title: Google Cloud Speech with Javascript
body: <p>In documentation and tutorial for REST API (Google Sppech API for Node: <a href="https://cloud.google.com/nodejs/apis" rel="noreferrer">https://cloud.google.com/nodejs/apis</a>), so my question is how to use the Cloud Speech API in JavaScript. Someone used on any page with javascript?</p>
  
  <hr>
  
  <p><strong>2020-04-24 EDIT</strong>: The accepted answer is using <code>webkitSpeechRecognition</code> which is not available on mobile: <a href="https://stackoverflow.com/a/61039699/775359">https://stackoverflow.com/a/61039699/775359</a></p>
  
  <p>Google documentation and examples: <a href="https://cloud.google.com/speech-to-text/docs/samples" rel="noreferrer">https://cloud.google.com/speech-to-text/docs/samples</a></p>
  
  <p>Node.js code: <a href="https://github.com/googleapis/nodejs-speech/blob/master/samples/MicrophoneStream.js" rel="noreferrer">https://github.com/googleapis/nodejs-speech/blob/master/samples/MicrophoneStream.js</a></p>
  
  <p><strong>REQUIREMENT:</strong> it has to run in Safari on iOS.</p>