nemo_voice_agent.pipecat.services.nemo.streaming_diar
nemo_voice_agent.pipecat.services.nemo.streaming_diar
Module Contents
Classes
API
Dataclass
Diarization configuration parameters for inference.
chunk_left_context
chunk_len
chunk_right_context
device
fifo_len
log
max_num_speakers
model_path
spkcache_len
spkcache_refresh_rate
buffer_size_in_secs
chunk_size
device
diarizer
feature_bufferer
max_num_speakers
streaming_state
total_preds
Initialize the streaming state for the diarization model.
Parameters:
batch_size
The batch size to use.
Returns: StreamingSortformerState
The initialized streaming state.
Execute a single streaming step for diarization.
Parameters:
processed_signal
The processed audio signal.
processed_signal_length
The length of the processed signal.
streaming_state
The current streaming state.
total_preds
The total predictions so far.
left_offset
The left offset for the current chunk.
right_offset
The right offset for the current chunk.
Returns: Tuple[StreamingSortformerState, Tensor]
Tuple[SortformerStreamingState, Tensor]: The updated streaming state and predictions.