diff --git a/examples/foundational/13-whisper-transcription.py b/examples/foundational/13-whisper-transcription.py index accd88c5f..e285eed43 100644 --- a/examples/foundational/13-whisper-transcription.py +++ b/examples/foundational/13-whisper-transcription.py @@ -31,6 +31,9 @@ class TranscriptionLogger(FrameProcessor): if isinstance(frame, TranscriptionFrame): print(f"Transcription: {frame.text}") + # Push all frames through + await self.push_frame(frame, direction) + # We store functions so objects (e.g. SileroVADAnalyzer) don't get # instantiated. The function will be called when the desired transport gets diff --git a/examples/foundational/13a-whisper-local.py b/examples/foundational/13a-whisper-local.py index 34cce6796..28f3be5fa 100644 --- a/examples/foundational/13a-whisper-local.py +++ b/examples/foundational/13a-whisper-local.py @@ -32,6 +32,9 @@ class TranscriptionLogger(FrameProcessor): if isinstance(frame, TranscriptionFrame): print(f"Transcription: {frame.text}") + # Push all frames through + await self.push_frame(frame, direction) + async def main(): transport = LocalAudioTransport( diff --git a/examples/foundational/13b-deepgram-transcription.py b/examples/foundational/13b-deepgram-transcription.py index 91e271acb..3c59e3df0 100644 --- a/examples/foundational/13b-deepgram-transcription.py +++ b/examples/foundational/13b-deepgram-transcription.py @@ -31,6 +31,9 @@ class TranscriptionLogger(FrameProcessor): if isinstance(frame, TranscriptionFrame): print(f"Transcription: {frame.text}") + # Push all frames through + await self.push_frame(frame, direction) + # We store functions so objects (e.g. SileroVADAnalyzer) don't get # instantiated. The function will be called when the desired transport gets diff --git a/examples/foundational/13c-gladia-transcription.py b/examples/foundational/13c-gladia-transcription.py index 9b6dc9c8e..3ea34a255 100644 --- a/examples/foundational/13c-gladia-transcription.py +++ b/examples/foundational/13c-gladia-transcription.py @@ -31,6 +31,9 @@ class TranscriptionLogger(FrameProcessor): if isinstance(frame, TranscriptionFrame): print(f"Transcription: {frame.text}") + # Push all frames through + await self.push_frame(frame, direction) + # We store functions so objects (e.g. SileroVADAnalyzer) don't get # instantiated. The function will be called when the desired transport gets diff --git a/examples/foundational/13c-gladia-translation.py b/examples/foundational/13c-gladia-translation.py index 50ebe9870..362ff9414 100644 --- a/examples/foundational/13c-gladia-translation.py +++ b/examples/foundational/13c-gladia-translation.py @@ -40,6 +40,9 @@ class TranscriptionLogger(FrameProcessor): elif isinstance(frame, TranslationFrame): print(f"Translation ({frame.language}): {frame.text}") + # Push all frames through + await self.push_frame(frame, direction) + # We store functions so objects (e.g. SileroVADAnalyzer) don't get # instantiated. The function will be called when the desired transport gets diff --git a/examples/foundational/13d-assemblyai-transcription.py b/examples/foundational/13d-assemblyai-transcription.py index 4fb73efff..8aa660b52 100644 --- a/examples/foundational/13d-assemblyai-transcription.py +++ b/examples/foundational/13d-assemblyai-transcription.py @@ -31,6 +31,9 @@ class TranscriptionLogger(FrameProcessor): if isinstance(frame, TranscriptionFrame): print(f"Transcription: {frame.text}") + # Push all frames through + await self.push_frame(frame, direction) + # We store functions so objects (e.g. SileroVADAnalyzer) don't get # instantiated. The function will be called when the desired transport gets diff --git a/examples/foundational/13e-whisper-mlx.py b/examples/foundational/13e-whisper-mlx.py index 6756b9b9a..66284ae8a 100644 --- a/examples/foundational/13e-whisper-mlx.py +++ b/examples/foundational/13e-whisper-mlx.py @@ -52,6 +52,9 @@ class TranscriptionLogger(FrameProcessor): if isinstance(frame, TranscriptionFrame): self._last_transcription_time = time.time() + # Push all frames through + await self.push_frame(frame, direction) + # We store functions so objects (e.g. SileroVADAnalyzer) don't get # instantiated. The function will be called when the desired transport gets diff --git a/examples/foundational/13f-cartesia-transcription.py b/examples/foundational/13f-cartesia-transcription.py index 6b0e22408..913dce797 100644 --- a/examples/foundational/13f-cartesia-transcription.py +++ b/examples/foundational/13f-cartesia-transcription.py @@ -31,6 +31,9 @@ class TranscriptionLogger(FrameProcessor): if isinstance(frame, TranscriptionFrame): print(f"Transcription: {frame.text}") + # Push all frames through + await self.push_frame(frame, direction) + # We store functions so objects (e.g. SileroVADAnalyzer) don't get # instantiated. The function will be called when the desired transport gets diff --git a/examples/foundational/13g-sambanova-transcription.py b/examples/foundational/13g-sambanova-transcription.py index c7e29c788..ac9a416fa 100644 --- a/examples/foundational/13g-sambanova-transcription.py +++ b/examples/foundational/13g-sambanova-transcription.py @@ -53,6 +53,9 @@ class TranscriptionLogger(FrameProcessor): if isinstance(frame, TranscriptionFrame): self._last_transcription_time = time.time() + # Push all frames through + await self.push_frame(frame, direction) + # We store functions so objects (e.g. SileroVADAnalyzer) don't get # instantiated. The function will be called when the desired transport gets diff --git a/examples/foundational/13h-speechmatics-transcription.py b/examples/foundational/13h-speechmatics-transcription.py index 13c127e9c..8b2984a84 100644 --- a/examples/foundational/13h-speechmatics-transcription.py +++ b/examples/foundational/13h-speechmatics-transcription.py @@ -32,6 +32,9 @@ class TranscriptionLogger(FrameProcessor): if isinstance(frame, TranscriptionFrame): print(f"Transcription: {frame.text}") + # Push all frames through + await self.push_frame(frame, direction) + # We store functions so objects (e.g. SileroVADAnalyzer) don't get # instantiated. The function will be called when the desired transport gets diff --git a/examples/foundational/13i-soniox-transcription.py b/examples/foundational/13i-soniox-transcription.py index 2b0a4355c..3c2fa6d7c 100644 --- a/examples/foundational/13i-soniox-transcription.py +++ b/examples/foundational/13i-soniox-transcription.py @@ -32,6 +32,9 @@ class TranscriptionLogger(FrameProcessor): if isinstance(frame, TranscriptionFrame): print(f"Transcription: {frame.text}") + # Push all frames through + await self.push_frame(frame, direction) + transport_params = { "daily": lambda: DailyParams( diff --git a/examples/foundational/13j-azure-transcription.py b/examples/foundational/13j-azure-transcription.py index f6f9f6348..950d204ff 100644 --- a/examples/foundational/13j-azure-transcription.py +++ b/examples/foundational/13j-azure-transcription.py @@ -32,6 +32,9 @@ class TranscriptionLogger(FrameProcessor): if isinstance(frame, TranscriptionFrame): print(f"Transcription: {frame.text}") + # Push all frames through + await self.push_frame(frame, direction) + transport_params = { "daily": lambda: DailyParams(