MCPcopy Create free account
hub / github.com/KoljaB/RealtimeVoiceChat / __init__

Method __init__

code/upsample_overlap.py:16–24  ·  view source on GitHub ↗

Initializes the UpsampleOverlap processor. Sets up the internal state required for tracking previous audio chunks and their resampled versions to handle overlaps during processing.

(self)

Source from the content-addressed store, hash-verified

14 the overlap correctly across calls.
15 """
16 def __init__(self):
17 """
18 Initializes the UpsampleOverlap processor.
19
20 Sets up the internal state required for tracking previous audio chunks
21 and their resampled versions to handle overlaps during processing.
22 """
23 self.previous_chunk: Optional[np.ndarray] = None
24 self.resampled_previous_chunk: Optional[np.ndarray] = None
25
26 def get_base64_chunk(self, chunk: bytes) -> str:
27 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected