This message was deleted.
# ask-ai
s
This message was deleted.
g
It seems likely that your issue is related to the timing of when the egress recording starts. To ensure that the recording begins only when the phone participant joins and the agent starts speaking, you should rely on the
track_subscribed
event to trigger the start of the recording. This event indicates that the participant's audio track has been successfully subscribed to, which typically means the call has been picked up. Based on LiveKit documentation, you can use the
track_subscribed
event to start the recording. Ensure that your logic within the
on_track_subscribed
function is correctly set up to start the recording only when the audio track is subscribed. This should prevent the recording from starting during the ringing phase. If you need more detailed guidance on implementing this, please let me know. Sources: - LiveKit documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.