nemo_voice_agent.pipecat.services.nemo.diar
nemo_voice_agent.pipecat.services.nemo.diar
Module Contents
Classes
API
Bases: BaseModel
Streaming diarization parameters for the NeMo diarization service.
Bases: STTService
Pipecat STT service wrapping NeMo’s streaming diarization model.
Background processor that handles diarization calls.
Handle diarization result from background processing.
Handle a transcription result.
Parameters:
The transcribed text
Whether this is a final transcription
The language of the transcription
Handler for background processing task.
Handler for processing diarization results.
Stop background processing tasks.
Only report initial metrics, no need to spam metrics every 80ms
Handle service cancellation.
Process audio data and generate transcription frames.
Parameters:
Raw audio bytes to transcribe
Reset the diarization service.
Process audio data and generate transcription frames.
Parameters:
Raw audio bytes to transcribe
Broadcast nothing: this service diarizes, it does not transcribe.
STTService would otherwise publish an STTMetadataFrame carrying a
time-to-final-transcript figure, which is meaningless here. It would also
be actively harmful: SpeechTimeoutUserTurnStopStrategy keeps the last
value it sees, and this service sits downstream of the real STT in the
pipeline, so its placeholder would override the STT’s measured latency
and skew end-of-turn timing.
Update the service’s recognition language.
Parameters:
New language for recognition
Update the service’s model.
Parameters:
New model name/path to use
Handle service start.
Handle service stop.