Module livekit.plugins.ai_coustics.auth
Classes
class AiCousticsApi (*, license_key: str)-
Expand source code
class AiCousticsApi(AuthBase): """Use your own ai-coustics credentials directly, bypassing LiveKit Cloud.""" provider = "aiCousticsApi" def __init__(self, *, license_key: str): self.license_key = license_key def _to_auth_mode(self, credentials): from ._ffi import AuthMode return AuthMode.AI_COUSTICS_API(license_key=self.license_key)Use your own ai-coustics credentials directly, bypassing LiveKit Cloud.
Ancestors
- AuthBase
- abc.ABC
Class variables
var provider : str
class Auth-
Expand source code
class Auth: """Namespace of auth provider factories.""" @staticmethod def livekit_cloud() -> LiveKitCloud: """Use LiveKit Cloud for ai-coustics authentication and billing (default).""" return LiveKitCloud() @staticmethod def ai_coustics_api(*, license_key: str) -> AiCousticsApi: """Use your own ai-coustics credentials directly, bypassing LiveKit Cloud.""" return AiCousticsApi(license_key=license_key)Namespace of auth provider factories.
Static methods
def ai_coustics_api(*, license_key: str) ‑> AiCousticsApi-
Expand source code
@staticmethod def ai_coustics_api(*, license_key: str) -> AiCousticsApi: """Use your own ai-coustics credentials directly, bypassing LiveKit Cloud.""" return AiCousticsApi(license_key=license_key)Use your own ai-coustics credentials directly, bypassing LiveKit Cloud.
def livekit_cloud() ‑> LiveKitCloud-
Expand source code
@staticmethod def livekit_cloud() -> LiveKitCloud: """Use LiveKit Cloud for ai-coustics authentication and billing (default).""" return LiveKitCloud()Use LiveKit Cloud for ai-coustics authentication and billing (default).
class AuthBase-
Expand source code
class AuthBase(ABC): """Base for ai-coustics authentication providers.""" provider: str @abstractmethod def _to_auth_mode(self, credentials): ...Base for ai-coustics authentication providers.
Ancestors
- abc.ABC
Subclasses
Class variables
var provider : str
class LiveKitCloud-
Expand source code
class LiveKitCloud(AuthBase): """Use LiveKit Cloud for ai-coustics authentication and billing (default).""" provider = "livekitCloud" def _to_auth_mode(self, credentials): from ._ffi import AuthMode if credentials is None: return None return AuthMode.LIVE_KIT_CLOUD(url=credentials.url, token=credentials.token)Use LiveKit Cloud for ai-coustics authentication and billing (default).
Ancestors
- AuthBase
- abc.ABC
Class variables
var provider : str