write(_:toBufferCallback:toMarkerCallback:)
Generates audio buffers and associated metadata for storage or further speech synthesis processing.
Declaration
func write(_ utterance: AVSpeechUtterance, toBufferCallback bufferCallback: @escaping AVSpeechSynthesizer.BufferCallback, toMarkerCallback markerCallback: @escaping AVSpeechSynthesizer.MarkerCallback)Parameters
- utterance:
A utterance for a synthesizer to speak.
- bufferCallback:
A callback that the system invokes with the synthesized audio data.
- markerCallback:
A callback that the system invokes with marker information.