fast-intern-10974
09/18/2025, 10:12 AMtranscription_node like this:
async def transcription_node(self, text_stream: AsyncIterable[str], model_settings: ModelSettings):
async for text in super().transcription_node(text_stream, model_settings):
if self.filter_ssml:
text = self.ssml_tag_pattern.sub("", text)
yield text
This works for messages sent using session.say(), but responses generated by the LLM are still not filtered.
Does anyone know a way to clean or remove the SSML tags from live transcription for LLM outputs as well?
Thanks a lot!proud-leather-89518
09/18/2025, 10:24 AMtts_node instead. And remember to set _`AgentSession(use_tts_aligned_transcript=False)`_fast-intern-10974
09/18/2025, 10:46 AM