I am using livekit agents version 0.17 inside def ...
# ask-ai
b
I am using livekit agents version 0.17 inside def before_tts_cb using
Copy code
# Handle non-streaming text
            result = text.replace(
                "*", "")
            )
            return result
        else:
            # Handle streaming text
            async def process_stream():
                async for chunk in text:
                    processed = chunk.replace(
                        "*", ""
                    )
                    yield processed

            return process_stream()
It's still not replacing
t
Thanks for reaching out, Gaurab. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm sorry, but I don't have the information you need at the moment. If you would like a member of the LiveKit team to respond, please ask your question in one of the other channels.