Answers for "how to set credentials for speechClient Java google api"

0

how to set credentials for speechClient Java google api

CredentialsProvider credentialsProvider = FixedCredentialsProvider.create(ServiceAccountCredentials.fromStream(new FileInputStream("path/to/service-account.json")));

SpeechSettings settings = SpeechSettings.newBuilder().setCredentialsProvider(credentialsProvider).build();
SpeechClient speechClient = SpeechClient.create(settings);
Posted by: Guest on May-05-2021

Code answers related to "how to set credentials for speechClient Java google api"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language