I'm happy to help you combine webhooks with the Egress API or S3 API to retrieve audio or transcription data smoothly. Here are some key approaches that might work well for you:
•
Webhooks with Egress: You can set up webhooks in your Egress API requests to get notifications when egress events happen, like when a recording starts or ends. The webhook payload will include useful info such as the egress status and where the output file is located (like an S3 URL).
•
Real-Time Audio Streaming: If you need live transcription, using TrackEgress with a WebSocket URL allows you to stream raw audio (PCM format) in real time directly to your transcription service.
•
Export to S3: Another option is to use RoomCompositeEgress or TrackEgress to export audio files straight to S3-compatible storage. Once the egress finishes, the webhook will notify you with the file's S3 URL, which you can then use to start your transcription workflows.
For real-time transcription, I’d recommend WebSocket streaming. And if you prefer post-call transcription, exporting audio to S3 and processing it after the webhook notification works great. Please feel free to reach out if you’d like me to walk you through the implementation details for any of these methods—I’m here to help!
Sources:
examples/webhooks-http/README.md |
Track egress | LiveKit docs |
README.md |
Egress API | LiveKit docs |
Webhooks | LiveKit docs