Created
January 31, 2020 11:03
-
-
Save riverfor/f2d52c4b7eb25b8f5dff9d27ec2c28df 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
# -*- coding: utf-8 -*- | |
import androidhelper | |
import time | |
import qpy | |
droid = androidhelper.Android() | |
while True: | |
say = droid.recognizeSpeech(None, None, "test") | |
with open(qpy.tmp+"/hello.txt","a") as obj: | |
if say.result: | |
obj.write(say.result) | |
if say.result == "stop": | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment