You can plug in this speech to text example into any webpage. You just need have a html element that the transcribed speech is written into (textarea with id="message" in this example) and a button that activates and de-activates the microphone and the javascript functions in this snippet. The token counter is just for demo purposes, but the API call returns not only the transcription, but also the remaining budget for the user.
tokens remaining