SpeechConfig
@available(watchOS, unavailable)
public struct SpeechConfig : SendableConfiguration for controlling the voice of the model during conversation.
-
Creates a new
SpeechConfigvalue.Declaration
Swift
public init(voiceName: String, languageCode: String? = nil)Parameters
voiceNameThe name of the prebuilt voice to be used for the model’s speech response.
languageCodeISO-639 language code to use when parsing text sent from the client, instead of audio. By default, the model will attempt to detect the input language automatically.