Module providing loadSpeakerTracker and computeVoiceprint for speaker diarization using Sherpaw.
// Source: https://github.com/moeru-ai/airi | License: MIT | Copyright 2024-PRESENT Neko Ayaka
// Provided via justclaw.it.com; keep this notice with the code.
import type { SpeakerTracker, SpeakerVoiceprint } from '@sherpaw/speaker-diarization'
import { speakerModel } from '@proj-airi/stage-shared/speaker-model'
import { fetchSherpawModelPack } from '../providers/providers/sherpaw/model-assets'
export { speakerModel } from '@proj-airi/stage-shared/speaker-model'
/**
* Creates a speaker tracker Worker with the pinned CAM++ pack. The caller owns the returned tracker and must dispose it.
*
* The Sherpaw client and its Worker load on first use, so hosts without speaker tracking do not load the runtime.
* The tracker copies the pack into its Worker, so the renderer does not keep the 28
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key