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

Function bing

queryAPI.py:24–35  ·  view source on GitHub ↗
(audio)

Source from the content-addressed store, hash-verified

22 return "None"
23
24def bing(audio):
25 BING_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
26 # recognize speech using Microsoft Bing Voice Recognition
27 try:
28 #print("Microsoft Bing Voice Recognition: ")
29 return r.recognize_bing(audio, key=BING_KEY)
30 except sr.UnknownValueError:
31 print("Microsoft Bing Voice Recognition could not understand audio")
32 return "None"
33 except sr.RequestError as e:
34 print("Could not request results from Microsoft Bing Voice Recognition service; {0}".format(e))
35 return "None"
36
37# Query IBM
38def ibm(audio):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected