PollyVoiceController
public class PollyVoiceController: RouteVoiceController
PollyVoiceController extends the default RouteVoiceController by providing support for AWSPolly. RouteVoiceController will be used as a fallback during poor network conditions.
-
Forces Polly voice to always be of specified type. If not set, a localized voice will be used.
Declaration
Swift
public var globalVoiceId: AWSPollyVoiceId? -
regionTypespecifies what AWS region to use for Polly.Declaration
Swift
public var regionType: AWSRegionType = .USEast1 -
identityPoolIdis a required value for using AWS Polly voice instead of iOS’s built in AVSpeechSynthesizer. You can get a token here: http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-auth-aws-identity-for-ios.htmlDeclaration
Swift
public var identityPoolId: String
Install in Dash
PollyVoiceController Class Reference