Skip to content

Instantly share code, notes, and snippets.

@savelee
Created April 8, 2020 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save savelee/7d78feb8f956cb981dfd034ab7acc151 to your computer and use it in GitHub Desktop.
Save savelee/7d78feb8f956cb981dfd034ab7acc151 to your computer and use it in GitHub Desktop.
Speech to Text - Streaming
// 1)
speechClient = new speech.SpeechClient();
// 2)
request = {
config: {
sampleRateHertz: sampleRateHertz,
encoding: encoding,
languageCode: languageCode
},
interimResults: interimResults
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment