Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Last active February 10, 2019 20:49
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 hitherejoe/463c43c02332e38fa5d13728ddf5b09a to your computer and use it in GitHub Desktop.
Save hitherejoe/463c43c02332e38fa5d13728ddf5b09a to your computer and use it in GitHub Desktop.
client = CloudSpeechClient()
self.usingMicrophone = True
while self.usingMicrophone:
text = client.recognize(language_code='en-US')
if (text is not None and text != ""):
self.detect_intent_texts(sess, text, 'en-US')
if text is None:
self.usingMicrophone = False
continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment