Example usage for com.amazonaws.services.polly AmazonPollyAsyncClient asyncBuilder

List of usage examples for com.amazonaws.services.polly AmazonPollyAsyncClient asyncBuilder

Introduction

In this page you can find the example usage for com.amazonaws.services.polly AmazonPollyAsyncClient asyncBuilder.

Prototype

public static AmazonPollyAsyncClientBuilder asyncBuilder() 

Source Link

Usage

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
}