List of usage examples for com.amazonaws.services.polly AmazonPollyAsyncClient asyncBuilder
public static AmazonPollyAsyncClientBuilder asyncBuilder()
From source file:com.waltercedric.tvprogram.plugins.reader.PollyTTSReader.java
License:Open Source License
public PollyTTSReader() { BasicAWSCredentials awsCreds = new BasicAWSCredentials(config.getIam_access(), config.getIam_secret()); polly = AmazonPollyAsyncClient.asyncBuilder().withCredentials(new AWSStaticCredentialsProvider(awsCreds)) .withRegion(config.getAws_region()).build(); myplayer = config.getPlayer();//from www. j a v a 2s . co m }