Skip to content

Commit cc510d3

Browse files
committed
remove log statements
1 parent 3d91a42 commit cc510d3

File tree

3 files changed

+2
-30
lines changed

3 files changed

+2
-30
lines changed

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/AudioHelper.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ internal class AudioHelper {
127127
}
128128
try {
129129
val bytesRead = audioRecord.read(buffer, 0, buffer.size)
130-
println(bytesRead)
131130
if (bytesRead > 0) {
132131
emit(buffer.copyOf(bytesRead))
133132
}

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/BidiGenerateContentClientMessage.kt

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ internal class BidiGenerateContentClientMessage(
2626
val model: String,
2727
val generationConfig: LiveGenerationConfig.Internal?,
2828
val tools: List<Tool.Internal>?,
29-
val systemInstruction: Content.Internal?,
29+
val systemInstruction: Content.Internal?
3030
) {
3131

3232
@Serializable
@@ -36,35 +36,10 @@ internal class BidiGenerateContentClientMessage(
3636
val model: String,
3737
val generationConfig: LiveGenerationConfig.Internal?,
3838
val tools: List<Tool.Internal>?,
39-
val systemInstruction: Content.Internal?,
39+
val systemInstruction: Content.Internal?
4040
)
4141

4242
}
43-
@Serializable
44-
internal enum class StartSensitivity {
45-
START_SENSITIVITY_UNSPECIFIED,
46-
START_SENSITIVITY_HIGH,
47-
START_SENSITIVITY_LOW
48-
}
49-
50-
@Serializable
51-
internal enum class EndSensitivity {
52-
END_SENSITIVITY_UNSPECIFIED,
53-
END_SENSITIVITY_HIGH,
54-
END_SENSITIVITY_LOW
55-
}
56-
57-
@Serializable
58-
internal data class AutomaticActivityDetection(
59-
val prefixPaddingMs: Int,
60-
val silenceDurationMs: Int,
61-
val startOfSpeechSensitivity: StartSensitivity,
62-
)
63-
64-
@Serializable
65-
internal data class RealtimeInputConfig(
66-
val automaticActivityDetection: AutomaticActivityDetection
67-
)
6843
fun toInternal() =
6944
Internal(Internal.BidiGenerateContentSetup(model, generationConfig, tools, systemInstruction))
7045
}

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/LiveSession.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ internal constructor(
148148
receivedAudio.copyInto(audioBuffer, offset)
149149
offset += receivedAudio.size
150150
if (offset >= MIN_BUFFER_SIZE) {
151-
Log.w(TAG, "Sending ${audioBuffer.size} to server")
152151
sendMediaStream(listOf(MediaData(audioBuffer, "audio/pcm")))
153152
audioBuffer.fill(0)
154153
offset = 0
@@ -267,7 +266,6 @@ internal constructor(
267266
val message = receiveChannel.receive()
268267
val receivedBytes = (message as Frame.Binary).readBytes()
269268
val receivedJson = receivedBytes.toString(Charsets.UTF_8)
270-
Log.w(TAG, receivedJson)
271269
if (receivedJson.contains("interrupted")) {
272270
emit(LiveContentResponse(null, LiveContentResponse.Status.INTERRUPTED, null))
273271
continue

0 commit comments

Comments
 (0)