Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #credentials #speechClient #Java #google #api
ADD COMMENT
Topic
Name
9+9 =