@@ -55,7 +55,7 @@ public final class LiveSession: Sendable {
55
55
/// - Parameters:
56
56
/// - audio: Raw 16-bit PCM audio at 16Hz, used to update the model on the client's
57
57
/// conversation.
58
- public func sendAudioRealtime( audio: Data ) async {
58
+ public func sendAudioRealtime( _ audio: Data ) async {
59
59
// TODO: (b/443984790) address when we add RealtimeInputConfig support
60
60
let message = BidiGenerateContentRealtimeInput (
61
61
audio: InlineData ( data: audio, mimeType: " audio/pcm " )
@@ -68,7 +68,7 @@ public final class LiveSession: Sendable {
68
68
/// - Parameters:
69
69
/// - video: Encoded video data, used to update the model on the client's conversation.
70
70
/// - 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 {
72
72
let message = BidiGenerateContentRealtimeInput (
73
73
video: InlineData ( data: video, mimeType: " video/ \( format) " )
74
74
)
@@ -79,7 +79,7 @@ public final class LiveSession: Sendable {
79
79
///
80
80
/// - Parameters:
81
81
/// - 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 {
83
83
let message = BidiGenerateContentRealtimeInput ( text: text)
84
84
await service. send ( . realtimeInput( message) )
85
85
}
0 commit comments