File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
nemo/agents/voice_agent/pipecat/services/nemo Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 3434from pydantic import BaseModel
3535
3636from nemo .agents .voice_agent .pipecat .services .nemo .streaming_asr import NemoStreamingASRService
37- from nemo .agents .voice_agent .pipecat .services .nemo .streaming_diar import NeMoStreamingDiarService
3837
3938try :
4039 # disable nemo logging
@@ -267,7 +266,7 @@ async def set_model(self, model: str):
267266
268267 async def process_frame (self , frame : Frame , direction : FrameDirection ):
269268 """Process incoming frames and handle VAD events."""
270- if isinstance (frame , VADUserStoppedSpeakingFrame ) and isinstance (self ._model , NeMoStreamingDiarService ):
269+ if isinstance (frame , VADUserStoppedSpeakingFrame ) and isinstance (self ._model , NemoStreamingASRService ):
271270 # manualy reset the state of the model when end of utterance is detected by VAD
272271 logger .debug ("Resetting state of the model due to VADUserStoppedSpeakingFrame" )
273272 self ._model .reset_state ()
You can’t perform that action at this time.
0 commit comments