MCPcopy Index your code
hub / github.com/ecthros/uncaptcha2 / wit

Function wit

queryAPI.py:11–22  ·  view source on GitHub ↗
(audio)

Source from the content-addressed store, hash-verified

9
10#Query Wit
11def wit(audio):
12 # recognize speech using Wit.ai
13 WIT_AI_KEY = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx" # Wit.ai keys are 32-character uppercase alphanumeric strings
14 try:
15 #print("Wit.ai: ")
16 return r.recognize_wit(audio, key=WIT_AI_KEY)
17 except sr.UnknownValueError:
18 print("Wit.ai could not understand audio")
19 return "None"
20 except sr.RequestError as e:
21 print("Could not request results from Wit.ai service; {0}".format(e))
22 return "None"
23
24def bing(audio):
25 BING_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected