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?
-
regionType
specifies what AWS region to use for Polly.Declaration
Swift
public var regionType: AWSRegionType = .USEast1
-
identityPoolId
is 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