Merge dev with main #27
@@ -14,6 +14,8 @@ class AgentSettings(object):
|
|||||||
self.main_receiver_port = main_receiver_port
|
self.main_receiver_port = main_receiver_port
|
||||||
self.video_sender_port = video_sender_port
|
self.video_sender_port = video_sender_port
|
||||||
self.audio_sender_port = audio_sender_port
|
self.audio_sender_port = audio_sender_port
|
||||||
|
|
||||||
|
|
||||||
class VideoConfig(object):
|
class VideoConfig(object):
|
||||||
"""Video configuration constants."""
|
"""Video configuration constants."""
|
||||||
def __init__(
|
def __init__(
|
||||||
@@ -31,17 +33,23 @@ class VideoConfig(object):
|
|||||||
self.fps = fps
|
self.fps = fps
|
||||||
self.stream_name = stream_name
|
self.stream_name = stream_name
|
||||||
self.image_buffer = image_buffer
|
self.image_buffer = image_buffer
|
||||||
|
|
||||||
|
|
||||||
class AudioConfig(object):
|
class AudioConfig(object):
|
||||||
"""Audio configuration constants."""
|
"""Audio configuration constants."""
|
||||||
def __init__(self, sample_rate=16000, chunk_size=512, channels=1):
|
def __init__(self, sample_rate=16000, chunk_size=512, channels=1):
|
||||||
self.sample_rate = sample_rate
|
self.sample_rate = sample_rate
|
||||||
self.chunk_size = chunk_size
|
self.chunk_size = chunk_size
|
||||||
self.channels = channels
|
self.channels = channels
|
||||||
|
|
||||||
|
|
||||||
class MainConfig(object):
|
class MainConfig(object):
|
||||||
"""Main configuration"""
|
"""Main configuration"""
|
||||||
def __init__(self, poll_timeout_ms=100, max_handler_time_ms=50):
|
def __init__(self, poll_timeout_ms=100, max_handler_time_ms=50):
|
||||||
self.poll_timeout_ms = poll_timeout_ms
|
self.poll_timeout_ms = poll_timeout_ms
|
||||||
self.max_handler_time_ms = max_handler_time_ms
|
self.max_handler_time_ms = max_handler_time_ms
|
||||||
|
|
||||||
|
|
||||||
class Settings(object):
|
class Settings(object):
|
||||||
"""Global settings container."""
|
"""Global settings container."""
|
||||||
def __init__(self, agent_settings=None, video_config=None, audio_config=None, main_config=None):
|
def __init__(self, agent_settings=None, video_config=None, audio_config=None, main_config=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user