Używam Pythona z Google Cloud Speech API zrobiłem wszystkie kroki w "How to use google speech recognition api in python?" na ubuntu i na oknach, a także, gdy próbuję uruchomić prosty skrypt z tu - "https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/speech/api/speech_rest.py"Google cloud mowy api rzucając 403 podczas próby użycia go
dostanę następny błąd: <HttpError 403 when requesting https://speech.googleapis.com/$discovery/rest?version=v1beta1 returned "Google Cloud Speech API has not been used in project google.com:cloudsdktool before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/speech.googleapis.com/overview?project=google.com:cloudsdktool then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.">
co jest dziwne jest to, że nie mam projekt o nazwie "cloudsdktool"
biegnę "gcloud init" i połączyłem plik json, który otrzymałem, gdy utworzyłem klucz konta usługi z "gcloud auth a ctivate-service-konto --key-file = komenda jsonfile” Próbowałem w linux stworzenia google poświadczeń zmienna i nadal uzyskać ten sam masaż
pokrewne dyskusja https://github.com/GoogleCloudPlatform/google-cloud-ruby/issues/706. Wygląda na to, że potrzebujesz auth z plikiem json. –
Możliwy duplikat wykrycia tekstu interfejsu API Google Vision Python używa projektu: "google.com:cloudsdktool", a nie mojego własnego projektu] (http://stackoverflow.com/questions/38048320/google-vision-api-text-detection -python-example-uses-project-google-comclouds) –