livekit-egress 를 통해서 room을 녹음 하고 있는데 화자 분리 가능해?
# ask-ai
t
livekit-egress 를 통해서 room을 녹음 하고 있는데 화자 분리 가능해?
t
Thanks for reaching out, 유용현. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks for reaching out! I wanted to let you know that LiveKit Egress doesn’t support speaker separation in Room Composite recordings since all participant audio is combined into a single audio stream. But don’t worry—you can still get speaker separation by trying one of these options: • Track Egress: This lets you record individual audio tracks by specifying the unique
track_id
for each participant’s audio. • Participant Egress: Here, you can record all tracks (audio and video) from a specific participant by using their
identity
. If you’d like, I’m happy to walk you through these methods or provide more details. Just let me know—I’m here to help! Sources: cmd/lk/egress.go | livekit-api/livekit/api/egress_service.py | Recording participants | LiveKit docs | examples/voice_agents/speaker_id_multi_speaker.py | RoomComposite Egress | LiveKit Docs
t
예시로 알려줘
t
아래는 Track Egress와 Participant Egress를 사용하는 예시입니다: 1. Track Egress (개별 오디오 트랙 녹음) 특정 참가자의 오디오 트랙을 녹음하고 싶으시다면 `track_id`를 사용하시면 됩니다.
Copy code
{
  "room_name": "my-room",
  "track_id": "TR_Audio_123xyz", // 실제 트랙 ID로 교체
  "file": {
    "filepath": "recordings/speaker1-audio.mp3",
    "file_type": "MP3",
    "s3": {
      "access_key": "your-access-key",
      "secret": "your-secret",
      "region": "us-west-2",
      "bucket": "my-recording-bucket"
    }
  }
}
이 JSON 파일을 준비하신 후, 아래 명령어를 실행해 주세요:
Copy code
lk egress start --type track request.json
2. Participant Egress (특정 참가자의 전체 트랙 녹음) 특정 참가자의 오디오와 비디오를 함께 녹음하고 싶으시다면 `identity`를 사용하시면 됩니다.
Copy code
{
  "room_name": "my-room",
  "identity": "Alice", // 참가자의 identity로 교체
  "file_outputs": [
    {
      "filepath": "recordings/alice-presentation.mp4",
      "s3": {
        "access_key": "your-access-key",
        "secret": "your-secret",
        "region": "us-west-2",
        "bucket": "my-recording-bucket"
      }
    }
  ]
}
이 방법을 통해 특정 참가자의 오디오를 분리해서 녹음하실 수 있습니다. 혹시 더 궁금한 점이 있으시면 언제든지 편하게 말씀해 주세요!