SystemSpeechSynthesizer
open class SystemSpeechSynthesizer : NSObject, SpeechSynthesizing
extension SystemSpeechSynthesizer: AVSpeechSynthesizerDelegate
SpeechSynthesizing
implementation, using AVSpeechSynthesizer
.
-
Declaration
Swift
public weak var delegate: SpeechSynthesizingDelegate?
-
Declaration
Swift
public var muted: Bool { get set }
-
Declaration
Swift
public var volume: Float { get set }
-
Declaration
Swift
public var locale: Locale?
-
Controls if this speech synthesizer is allowed to manage the shared
AVAudioSession
. Set this field tofalse
if you want to manage the session yourself, for example if your app has background music. Default value istrue
.Declaration
Swift
public var managesAudioSession: Bool
-
Declaration
Swift
public var isSpeaking: Bool { get }
-
Declaration
Swift
open func prepareIncomingSpokenInstructions(_ instructions: [SpokenInstruction], locale: Locale?)
-
Declaration
Swift
open func speak(_ instruction: SpokenInstruction, during legProgress: RouteLegProgress, locale: Locale? = nil)
-
Declaration
Swift
open func stopSpeaking()
-
Declaration
Swift
open func interruptSpeaking()