fixed forgotten renames
This commit is contained in:
@@ -106,7 +106,7 @@ class CartesiaTTSService(TTSService):
|
|||||||
logger.exception(f"{self} initialization error: {e}")
|
logger.exception(f"{self} initialization error: {e}")
|
||||||
self._websocket = None
|
self._websocket = None
|
||||||
|
|
||||||
async def disconnect(self):
|
async def _disconnect(self):
|
||||||
try:
|
try:
|
||||||
if self._context_appending_task:
|
if self._context_appending_task:
|
||||||
self._context_appending_task.cancel()
|
self._context_appending_task.cancel()
|
||||||
@@ -126,8 +126,8 @@ class CartesiaTTSService(TTSService):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.exception(f"{self} error closing websocket: {e}")
|
logger.exception(f"{self} error closing websocket: {e}")
|
||||||
|
|
||||||
async def handle_interruption(self, frame: StartInterruptionFrame, direction: FrameDirection):
|
async def _handle_interruption(self, frame: StartInterruptionFrame, direction: FrameDirection):
|
||||||
await super().handle_interruption(frame, direction)
|
await super()._handle_interruption(frame, direction)
|
||||||
self._context_id = None
|
self._context_id = None
|
||||||
self._context_id_start_timestamp = None
|
self._context_id_start_timestamp = None
|
||||||
self._timestamped_words_buffer = []
|
self._timestamped_words_buffer = []
|
||||||
|
|||||||
Reference in New Issue
Block a user