From 1915407ff7ab215abe14180dbf856d8e1190d1e9 Mon Sep 17 00:00:00 2001 From: padillamt Date: Mon, 21 Jul 2025 15:30:48 -0700 Subject: [PATCH] inworld: removed unreferenced is_first_chunk variable --- src/pipecat/services/inworld/tts.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/pipecat/services/inworld/tts.py b/src/pipecat/services/inworld/tts.py index 6e1552744..af90ad116 100644 --- a/src/pipecat/services/inworld/tts.py +++ b/src/pipecat/services/inworld/tts.py @@ -297,10 +297,6 @@ class InworldHttpTTSService(TTSService): # This allows downstream processors to prepare for incoming audio yield TTSStartedFrame() - # Flag to track if we're processing the first audio chunk - # Used for WAV header handling and debugging - is_first_chunk = True - # ================================================================================ # STEP 3: MAKE HTTP STREAMING REQUEST # ================================================================================ @@ -395,10 +391,6 @@ class InworldHttpTTSService(TTSService): # Remove the 44-byte WAV header to get pure audio data audio_data = audio_chunk[44:] - # Track that we've seen our first chunk (for debugging) - if is_first_chunk: - is_first_chunk = False - # ======================================================== # STEP 11: YIELD AUDIO FRAME TO PIPELINE # ========================================================