MultiplexedSpeechSynthesizer
open class MultiplexedSpeechSynthesizer : SpeechSynthesizing
extension MultiplexedSpeechSynthesizer: SpeechSynthesizingDelegate
SpeechSynthesizing
implementation, aggregating other implementations, to allow ‘fallback’ mechanism.
Can be initialized with array of synthesizers which will be called in order of appearance, until one of them is capable to vocalize current SpokenInstruction
-
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? { get set }
-
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 { get set }
-
Declaration
Swift
public var isSpeaking: Bool { get }
-
Declaration
Swift
public func prepareIncomingSpokenInstructions(_ instructions: [SpokenInstruction], locale: Locale? = nil)
-
Declaration
Swift
public func speak(_ instruction: SpokenInstruction, during legProgress: RouteLegProgress, locale: Locale? = nil)
-
Declaration
Swift
public func stopSpeaking()
-
Declaration
Swift
public func interruptSpeaking()
-
Declaration
Swift
public func speechSynthesizer(_ speechSynthesizer: SpeechSynthesizing, didSpeak instruction: SpokenInstruction, with error: SpeechError?)
-
Declaration
Swift
public func speechSynthesizer(_ speechSynthesizer: SpeechSynthesizing, encounteredError error: SpeechError)
-
Declaration
Swift
public func speechSynthesizer(_ speechSynthesizer: SpeechSynthesizing, didInterrupt interruptedInstruction: SpokenInstruction, with interruptingInstruction: SpokenInstruction)
-
Declaration
Swift
public func speechSynthesizer(_ speechSynthesizer: SpeechSynthesizing, willSpeak instruction: SpokenInstruction) -> SpokenInstruction?