inworld: removed unreferenced is_first_chunk variable

This commit is contained in:
padillamt
2025-07-21 15:30:48 -07:00
parent 076a675a75
commit 1915407ff7

View File

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