-
-
Save hitherejoe/463c43c02332e38fa5d13728ddf5b09a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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