Contents

audioFileSettings

A dictionary that contains audio file settings.

Declaration

var audioFileSettings: [String : Any] { get }

Discussion

If you want to generate speech and save it as an audio file to share or play later, use this dictionary to create an AVAudioFile instance and pass it as the settings parameter.

You can determine the AVAudioCommonFormat and interleaved properties of a voice from this dictionary. The format of this dictionary matches the data that AVSpeechSynthesizer.BufferCallback provides for the same voice.

See Also

Inspecting voices