from __future__ import annotations

from webrtc.tracks import AudioBus, AvatarAudioTrack

__all__ = ["AvatarAudioTrack", "build_audio_track"]


def build_audio_track(audio_bus: AudioBus, sample_rate: int = 48000, frame_ms: int = 20) -> AvatarAudioTrack:
    return AvatarAudioTrack(audio_bus=audio_bus, sample_rate=sample_rate, frame_ms=frame_ms)
