Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rtc.AudioResampler #264

Merged
merged 7 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions livekit-rtc/livekit/rtc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
)
from .video_source import VideoSource
from .video_stream import VideoFrameEvent, VideoStream
from .audio_resampler import AudioResampler, AudioResamplerQuality

__all__ = [
"ConnectionQuality",
Expand Down Expand Up @@ -127,5 +128,7 @@
"VideoStream",
"ChatManager",
"ChatMessage",
"AudioResampler",
"AudioResamplerQuality",
"__version__",
]
8 changes: 4 additions & 4 deletions livekit-rtc/livekit/rtc/_ffi_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ class FfiClient:
_instance: Optional["FfiClient"] = None

@classproperty
def instance(self):
if self._instance is None:
self._instance = FfiClient()
return self._instance
def instance(cls) -> "FfiClient":
if cls._instance is None:
cls._instance = FfiClient()
return cls._instance

def __init__(self) -> None:
self._lock = threading.RLock()
Expand Down
80 changes: 51 additions & 29 deletions livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py

Large diffs are not rendered by default.

252 changes: 252 additions & 0 deletions livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading