module: ensure that google-api-python-client is set up correctly.'使用recognize_google_cloud时,尽管我已经安装了它,并且在运行时看到'google-api-python-client当使用默认的googlespeech使用的代码如下:
r = sr.Rec
我使用recognize_google_cloud函数来使用Google Cloud Speech- to -Text API。下面是我的代码: import speech_recognition as sr;
with open('key.json', 'r') as f:'fr-FR', preferred_phrases=['pi