(audio)
| 22 | return "None" |
| 23 | |
| 24 | def 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 |
| 38 | def ibm(audio): |
nothing calls this directly
no outgoing calls
no test coverage detected