Skip to content

alkove.Live

class Live(
models: Models,
rate: int,
*,
gate: bool = False,
normalize: bool = False,
strength: float = 1.0,
voiceprint: Any = None,
speech: Optional[SpeechParams] = None,
sleep: bool = True,
)

The chain on a live stream at any rate, as the web SDK runs it in real time: frames in, the processed samples that are ready out, at the same rate.

push(pcm: Any) -> Tuple[np.ndarray, List[dict]]

Samples in (float32, or int16), the ones ready out, and the events (speech, idle, diag), in seconds from the stream’s start.

set_voiceprint(embedding: Any) -> None

Applied at the next silence, from a fresh state; None goes back to the closest voice.

set_strength(s: float) -> None

How much of Focus goes out, 0 to 1, the rest being the raw mic: 0.8 is 80 % Focus.

set_enabled(on: bool) -> None

Off: the raw mic, at the same delay, with a short fade.

Attribute Type Description
speaking bool Cue hears speech now.
rate int The stream’s rate, in and out, in Hz.