Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Allow starting the session audio recording after AgentSession.start(), e.g. once recording consent is given

Đang mở
#8,124 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

Start by reading AgentSession.start() and the session audio setup that wires RecorderIO when audio=True; the issue does not name source files or tests. Check how recording options are represented and whether the closed PR #6208 offers useful context. Done means recording can begin after the session starts, so audio before consent is excluded.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement
Feature Type

I cannot use LiveKit without it

Feature Description

Problem

The session audio recording can only start together with the session. record is fixed at AgentSession.start(), and with audio=True the session wires RecorderIO into the audio input and output and starts it right away. Every frame from the first second of the session is recorded.

Many voice agents have to ask for recording consent first, which means the start of the call must never be recorded. In Germany, § 201 StGB makes recording the non-public spoken word without consent a criminal offence, and the attempt is already punishable, so deleting the file afterwards does not help. Other places have similar all-party consent rules, for example several US states. Today the only options are to record the consent question too, or not to use the built-in recording at all.

PR #6208 proposed update_options(record=...) mid-session for exactly this case ("after recording consent is obtained"), but it was closed unmerged. It also could only turn audio off mid-session. Turning audio on afterwards did not start the recorder.

Environment

  • livekit-agents 1.8.8, Python
Workarounds / Alternatives

No response

Additional Context

No response

Ngôn ngữ chính
Python
Star
14.6k
Fork
3.9k
Merge trung bình
2 ngày 7 giờ
Pull request đã merge (30 ngày)
228

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của livekit/agents

Tất cả issue của livekit/agents

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.