SpeakerVoiceConfig
public struct SpeakerVoiceConfig : SendableConfigures a speaker with a unique name/identifier and a specific voice.
-
Creates a configuration for a speaker using a voice name.
Find the list of supported voices for:
Declaration
Swift
public init(speaker: String, voiceName: String)Parameters
speakerThe unique name/identifier of the speaker (e.g.,
"Alice").voiceNameThe name of the preset voice to assign to this speaker.