Skip to content

Unisound Voiceprint Recognition (VPR) Library

unisound

Classes

UnisoundVPR

UnisoundVPR(*, appkey: str, secret: str, group_id: str | None = None, base_url: str = 'https://ai-vpr.hivoice.cn', proxy: str | URL | None = None, timeout: float = 10.0, http_client: AsyncClient | None = None, default_headers: dict[str, str] | None = None, default_params: dict[str, Any] | None = None)

Bases: RESTfulMixin, VPR

Source code in audex/lib/vpr/unisound/__init__.py
def __init__(
    self,
    *,
    appkey: str,
    secret: str,
    group_id: str | None = None,
    base_url: str = "https://ai-vpr.hivoice.cn",
    proxy: str | URL | None = None,
    timeout: float = 10.0,
    http_client: AsyncClient | None = None,
    default_headers: dict[str, str] | None = None,
    default_params: dict[str, t.Any] | None = None,
):
    self.appkey = appkey
    self.secret = secret
    self.group_id = group_id
    super().__init__(
        base_url=base_url,
        proxy=proxy,
        timeout=timeout,
        http_client=http_client,
        default_headers=default_headers,
        default_params=default_params,
    )

options: show_root_heading: true show_source: true heading_level: 2 members_order: source show_signature_annotations: true separate_signature: true