inworld: removed unreferenced is_first_chunk variable
This commit is contained in:
@@ -297,10 +297,6 @@ class InworldHttpTTSService(TTSService):
|
|||||||
# This allows downstream processors to prepare for incoming audio
|
# This allows downstream processors to prepare for incoming audio
|
||||||
yield TTSStartedFrame()
|
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
|
# STEP 3: MAKE HTTP STREAMING REQUEST
|
||||||
# ================================================================================
|
# ================================================================================
|
||||||
@@ -395,10 +391,6 @@ class InworldHttpTTSService(TTSService):
|
|||||||
# Remove the 44-byte WAV header to get pure audio data
|
# Remove the 44-byte WAV header to get pure audio data
|
||||||
audio_data = audio_chunk[44:]
|
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
|
# STEP 11: YIELD AUDIO FRAME TO PIPELINE
|
||||||
# ========================================================
|
# ========================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user