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.
Methods
Section titled “Methods”push()
Section titled “push()”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()
Section titled “set_voiceprint()”set_voiceprint(embedding: Any) -> NoneApplied at the next silence, from a fresh state; None goes back to the closest voice.
set_strength()
Section titled “set_strength()”set_strength(s: float) -> NoneHow much of Focus goes out, 0 to 1, the rest being the raw mic: 0.8 is 80 % Focus.
set_enabled()
Section titled “set_enabled()”set_enabled(on: bool) -> NoneOff: the raw mic, at the same delay, with a short fade.
Attributes
Section titled “Attributes”| Attribute | Type | Description |
|---|---|---|
speaking |
bool |
Cue hears speech now. |
rate |
int |
The stream’s rate, in and out, in Hz. |