476 B
476 B
- ⚠️
TTSService.add_word_timestamps()no longer supports the"Reset"and"TTSStoppedFrame"sentinel strings. If you have a custom TTS service that calledawait self.add_word_timestamps([("Reset", 0)])orawait self.add_word_timestamps([("TTSStoppedFrame", 0), ("Reset", 0)], ctx_id), replace them withawait self.append_to_audio_context(ctx_id, TTSStoppedFrame(context_id=ctx_id))and let_handle_audio_contextmanage the word-timestamp reset automatically.