Skip to content

Instantly share code, notes, and snippets.

@riverfor
Created January 31, 2020 11:03
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 riverfor/f2d52c4b7eb25b8f5dff9d27ec2c28df to your computer and use it in GitHub Desktop.
Save riverfor/f2d52c4b7eb25b8f5dff9d27ec2c28df to your computer and use it in GitHub Desktop.
# -*- 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