Speech Recognition failed
-
Hello guys, I have a code where every 5 seconds the skript check if there is any keyword. But I get the error: Speech Recognition failed. I don‘t know why? My Code:
s = ui.Switch() s.frame = (970,1,600,40) def s_action(sender): global timestamp recorder = sound.Recorder('speech.m4a') recorder.record() if s.value == True: while True: if s.value == False: break elif clock2.uhrgedruckt == True: clock2.uhrgedruckt = False print('ok') elif timestamp - time.time() <= -5: recorder.stop() result = speech.recognize('speech.m4a', 'de_DE') if result[0][0] == 'Hallo': print('Du hast hallo gesagt') timestamp = time.time() recorder.record() else: print('Fehler') timestamp = time.time() recorder.record() else: pass s.action = s_action
-
@cvp but I don‘t want a real app for the app store, only for my home screen
-
@Python567 😢real app = Mac, App Store or not
-
Maybe he means a Homescreen Symbol.
@Python567, see here, if yes:shortcuts
But you need to install Pythonista for each User.
-
last edited by
-
Ok, than I do it with shortcuts
-
@cvp can I install the pythonista modules with pip?
-
@Python567 if modules are yours, then no.
if modules are standard ones, they are already included in Pythonista.
Thus, which modules?
-
@cvp sorry, I mean: Can I install pythonista modules with pip on my pc? For example: ui, scene, etc.?
-
@Python567 no. What do you want to do with Pythonista on your pc?
-
@cvp I want to run my skript on my pc. what do you mean before?
-
@Python567 You can't run Pythonista on a PC, even not on a Mac, except the last M1.
-
@cvp ok, what do you mean with M1?
-
@Python567 see here
-
@cvp ok, so for start the skript from my pc, I have to code it from my pc
-
@cvp the problem why I ask, is that I don't know how to create the clock with tkinker
-
@Python567 sorry, I can't help, never seen tkinker
-
last edited by
-
@cvp
uuups, sorry. I was too busy today 😇
-
This post is deleted!last edited by
-
This post is deleted!last edited by