Closed jayeshp19 closed 1 week ago
Latest commit: 3963a265edf8f117568b6ba539a066891500fb12
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
this gets emitted when the next non-silence is detected?
@davidzhao Basically the PipelineVADMetrics emits events every second with the VAD event type INFERENCE_DONE.
I've added a condition to reset the idle time whenever the VAD event type is START_OF_SPEECH or END_OF_SPEECH.
Is the intent of this metric to know when was the last user speech?
nit: use time.perf_counter instead of time.time()
@theomonnom Yes, that's correct! the metric is meant to track the time since the last user speech.
Nice lgtm!
example
PTAL @davidzhao @theomonnom