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
@objc public var globalVoiceId: AWSPollyVoiceId = .unknown
-
regionType
specifies what AWS region to use for Polly.Declaration
Swift
@objc 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
@objc public var identityPoolId: String
-
Number of seconds a Polly request can wait before it is canceled and the default speech synthesizer speaks the instruction.
Declaration
Swift
@objc public var timeoutIntervalForRequest:TimeInterval = 5
-
Number of steps ahead of the current step to cache spoken instructions.
Declaration
Swift
@objc public var stepsAheadToCache: Int = 3
-
Declaration
Swift
public override func speak(_ instruction: SpokenInstruction)