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 # ========================================================