From 83f64ecd3b49c2ba4e283fdce828cd5e9832d6e6 Mon Sep 17 00:00:00 2001 From: vipyne Date: Wed, 3 Sep 2025 12:10:29 -0500 Subject: [PATCH] example 07s: minor typo updates --- .../foundational/07s-interruptible-google-audio-in.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/foundational/07s-interruptible-google-audio-in.py b/examples/foundational/07s-interruptible-google-audio-in.py index cc317bc9b..d7aaf07bd 100644 --- a/examples/foundational/07s-interruptible-google-audio-in.py +++ b/examples/foundational/07s-interruptible-google-audio-in.py @@ -93,9 +93,8 @@ class UserAudioCollector(FrameProcessor): elif isinstance(frame, UserStoppedSpeakingFrame): self._user_speaking = False self._context.add_audio_frames_message(audio_frames=self._audio_frames) - await self._user_context_aggregator.push_frame( - self._user_context_aggregator.get_context_frame() - ) + await self._user_context_aggregator.push_frame(LLMRunFrame()) + elif isinstance(frame, InputAudioRawFrame): if self._user_speaking: self._audio_frames.append(frame) @@ -151,7 +150,7 @@ class TranscriptExtractor(FrameProcessor): await self.push_frame(frame, direction) -class TanscriptionContextFixup(FrameProcessor): +class TranscriptionContextFixup(FrameProcessor): def __init__(self, context): super().__init__() self._context = context @@ -245,7 +244,7 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments): context_aggregator = llm.create_context_aggregator(context) audio_collector = UserAudioCollector(context, context_aggregator.user()) pull_transcript_out_of_llm_output = TranscriptExtractor(context) - fixup_context_messages = TanscriptionContextFixup(context) + fixup_context_messages = TranscriptionContextFixup(context) pipeline = Pipeline( [