Skip to content

Commit 7d6b4de

Browse files
committed
Remove config suffix from speech param
1 parent 85f4c77 commit 7d6b4de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

FirebaseAI/Sources/Types/Public/Live/LiveGenerationConfig.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public struct LiveGenerationConfig: Sendable {
101101
/// > Warning: Specifying response modalities is a **Public Preview** feature, which means
102102
/// > that it is not subject to any SLA or deprecation policy and could change in
103103
/// > backwards-incompatible ways.
104-
/// - speechConfig: Controls the voice of the model, when streaming `audio` via
104+
/// - speech: Controls the voice of the model, when streaming `audio` via
105105
/// ``ResponseModality``.
106106
/// - inputAudioTranscription: Configures (and enables) input transcriptions when streaming to
107107
/// the model.
@@ -122,7 +122,7 @@ public struct LiveGenerationConfig: Sendable {
122122
candidateCount: Int? = nil, maxOutputTokens: Int? = nil,
123123
presencePenalty: Float? = nil, frequencyPenalty: Float? = nil,
124124
responseModalities: [ResponseModality]? = nil,
125-
speechConfig: SpeechConfig? = nil,
125+
speech: SpeechConfig? = nil,
126126
inputAudioTranscription: AudioTranscriptionConfig? = nil,
127127
outputAudioTranscription: AudioTranscriptionConfig? = nil) {
128128
self.init(
@@ -135,7 +135,7 @@ public struct LiveGenerationConfig: Sendable {
135135
presencePenalty: presencePenalty,
136136
frequencyPenalty: frequencyPenalty,
137137
responseModalities: responseModalities,
138-
speechConfig: speechConfig?.speechConfig
138+
speechConfig: speech?.speechConfig
139139
),
140140
inputAudioTranscription: inputAudioTranscription?.audioTranscriptionConfig,
141141
outputAudioTranscription: outputAudioTranscription?.audioTranscriptionConfig

0 commit comments

Comments
 (0)