Skip to content

Commit

Permalink
transport: add camera_bitrate argument
Browse files Browse the repository at this point in the history
  • Loading branch information
aconchillo committed Apr 6, 2024
1 parent a362ca4 commit 5a015f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/dailyai/transports/abstract_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def __init__(self, **kwargs):
self._camera_enabled = kwargs.get("camera_enabled") or False
self._camera_width = kwargs.get("camera_width") or 1024
self._camera_height = kwargs.get("camera_height") or 768
self._camera_bitrate = kwargs.get("camera_bitrate") or 250000
self._speaker_enabled = kwargs.get("speaker_enabled") or False
self._speaker_sample_rate = kwargs.get("speaker_sample_rate") or 16000
self._fps = kwargs.get("fps") or 8
Expand Down
2 changes: 1 addition & 1 deletion src/dailyai/transports/daily_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def _prerun(self):
"maxQuality": "low",
"encodings": {
"low": {
"maxBitrate": 250000,
"maxBitrate": self._camera_bitrate,
"scaleResolutionDownBy": 1.333,
"maxFramerate": 30,
}
Expand Down

0 comments on commit 5a015f6

Please sign in to comment.