Skip to content

Commit 3006542

Browse files
authored
fix vad rnn state (#4437)
1 parent c02365f commit 3006542

File tree

1 file changed

+1
-1
lines changed
  • livekit-plugins/livekit-plugins-silero/livekit/plugins/silero

1 file changed

+1
-1
lines changed

livekit-plugins/livekit-plugins-silero/livekit/plugins/silero/onnx_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ def __call__(self, x: np.ndarray) -> float:
9393
"state": self._rnn_state,
9494
"sr": self._sample_rate_nd,
9595
}
96-
out, self._state = self._sess.run(None, ort_inputs)
96+
out, self._rnn_state = self._sess.run(None, ort_inputs)
9797
self._context = self._input_buffer[:, -self._context_size :] # type: ignore
9898
return out.item() # type: ignore

0 commit comments

Comments
 (0)