Merge pull request #1296 from pipecat-ai/aleix/google-always-send-text-with-audio

GoogleLLMService: always send text with audio
This commit is contained in:
Aleix Conchillo Flaqué
2025-02-26 07:47:56 -08:00
committed by GitHub
5 changed files with 15 additions and 17 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