My livekit transcripts are saved using: transcript...
# ask-ai
a
My livekit transcripts are saved using: transcript = session.history.to_dict( _exclude_timestamp_=False, _exclude_function_call_=False) I'm seeing some conversations are saved with text like "My name is (censored)" - where in the pipeline this PII redaction happens and how to control it?
t
Thanks for reaching out, Dima. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
When it comes to PII redaction in LiveKit, it usually happens on the server side during things like egress operations and API request handling to keep sensitive info safe. This process is handled programmatically and isn’t something you can adjust directly. Could you let me know if you’re hoping to customize how redaction works, or if you’re trying to meet compliance for a particular use case (like HIPAA or financial data)? I’m here to help figure this out with you! Sources: utils/redact.go | pkg/service/roomservice.go
a
I need to disable it to have a reliable direct trace of every conversation
t
Just to let you know, PII redaction in LiveKit happens at the server level and isn’t something users can tweak directly. This setup helps keep sensitive info safe during things like egress and API requests. Because it’s built in for security and compliance, there isn’t an option to turn off the redaction. If you’re looking to get a direct trace of conversations without any redaction, you might need to create a custom solution outside of LiveKit’s usual processing. I’m happy to help if you want some ideas on other ways to approach this or if you have any more questions!
a
on a self-hosted livekit setup is this possible to control?
t
Hey there! In a self-hosted LiveKit setup, you can tweak some server-side settings, but there isn’t a documented way to completely turn off PII redaction. Could you let me know if you’re thinking about specific types of PII, like transcript content, room metadata, or participant identity? That way, I can better understand and see if there are any options or workarounds that might help. Sources: LiveKit Security Policy | CHANGELOG.md | Audio RED (REDundant Encoding) | LiveKit Docs | CHANGELOG.md
a
transcript content
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!