Skip to content

Commit

Permalink
transport: only use fps to set maxFramerate
Browse files Browse the repository at this point in the history
  • Loading branch information
aconchillo committed Apr 6, 2024
1 parent dd696be commit e50a650
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/dailyai/transports/abstract_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ def __init__(self, **kwargs):
self._camera_width = kwargs.get("camera_width") or 1024
self._camera_height = kwargs.get("camera_height") or 768
self._camera_max_bitrate = kwargs.get("camera_max_bitrate") or 250000
self._camera_max_framerate = kwargs.get("camera_max_framerate") or 30
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
self._fps = kwargs.get("fps") or 10

self._logger: logging.Logger = logging.getLogger("dailyai.transport")

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 @@ -224,7 +224,7 @@ def _prerun(self):
"low": {
"maxBitrate": self._camera_max_bitrate,
"scaleResolutionDownBy": 1.333,
"maxFramerate": self._camera_max_framerate,
"maxFramerate": self._fps,
}
},
}
Expand Down

0 comments on commit e50a650

Please sign in to comment.