from livekit import api
async def entrypoint(ctx: JobContext):
# Add the following code to the top, before calling ctx.connect()
# Set up recording
req = api.RoomCompositeEgressRequest(
room_name=ctx.room.name,
audio_only=True,
file_outputs=[api.EncodedFileOutput(
file_type=api.EncodedFileType.OGG,
filepath="livekit/my-room-test.ogg",
s3=api.S3Upload(
bucket="<S3 bucket name>",
region="<S3 region>",
access_key="<S3 access key>",
secret="<S3 secret key>",
),
)],
)
lkapi = api.LiveKitAPI()
res = await lkapi.egress.start_room_composite_egress(req)
await lkapi.aclose()
# .. The rest of your entrypoint code follows ...
can i execute this recording after the sip participant picked up the call.