Skip to content

Commit 866b32e

Browse files
committed
Allow params to be unnamed in realtime apis
1 parent e3fb8e8 commit 866b32e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public final class LiveSession: Sendable {
5555
/// - Parameters:
5656
/// - audio: Raw 16-bit PCM audio at 16Hz, used to update the model on the client's
5757
/// conversation.
58-
public func sendAudioRealtime(audio: Data) async {
58+
public func sendAudioRealtime(_ audio: Data) async {
5959
// TODO: (b/443984790) address when we add RealtimeInputConfig support
6060
let message = BidiGenerateContentRealtimeInput(
6161
audio: InlineData(data: audio, mimeType: "audio/pcm")
@@ -68,7 +68,7 @@ public final class LiveSession: Sendable {
6868
/// - Parameters:
6969
/// - video: Encoded video data, used to update the model on the client's conversation.
7070
/// - format: The format that the video was encoded in (eg; `mp4`, `webm`, `wmv`, etc.,).
71-
public func sendVideoRealtime(video: Data, format: String) async {
71+
public func sendVideoRealtime(_ video: Data, format: String) async {
7272
let message = BidiGenerateContentRealtimeInput(
7373
video: InlineData(data: video, mimeType: "video/\(format)")
7474
)
@@ -79,7 +79,7 @@ public final class LiveSession: Sendable {
7979
///
8080
/// - Parameters:
8181
/// - text: Text content to append to the current client's conversation.
82-
public func sendTextRealtime(text: String) async {
82+
public func sendTextRealtime(_ text: String) async {
8383
let message = BidiGenerateContentRealtimeInput(text: text)
8484
await service.send(.realtimeInput(message))
8585
}

0 commit comments

Comments
 (0)