Google Speech API credentials
问题 I am trying to do some test using the Google Speech API but from outside Google Cloud. In the older beta version I was able to specify a credentials file but now I am unable to find this option in the SpeechClient class. How can I go about specifying the authentication keys using the Google Speech API Java library? 回答1: Some of the classes from Frank's answer are now deprecated. This is an update to his answer. CredentialsProvider credentialsProvider = FixedCredentialsProvider.create