examples: update google examples

This commit is contained in:
Aleix Conchillo Flaqué
2025-02-25 22:28:02 -08:00
parent bb89a036e5
commit f83c89c202
2 changed files with 4 additions and 9 deletions

View File

@@ -389,7 +389,7 @@ class AudioAccumulator(FrameProcessor):
)
self._user_speaking = False
context = GoogleLLMContext()
context.add_audio_frames_message(text="Audio follows", audio_frames=self._audio_frames)
context.add_audio_frames_message(audio_frames=self._audio_frames)
await self.push_frame(OpenAILLMContextFrame(context=context))
elif isinstance(frame, InputAudioRawFrame):
# Append the audio frame to our buffer. Treat the buffer as a ring buffer, dropping the oldest