Skip to content

Can I automatically deactivate voice transcription if the user is silent for more than N seconds? #85

@ByMedion

Description

@ByMedion

Hello!
I want to make Wit deactivate if the user is silent for more than N seconds after the last spoken phrase.

However, I cannot rely on the mic level due to possible background noise. So I made a timer that resets every time (if it's still active) when the OnPartialTranscription or OnFullTranscription event is called. When the timer expires, it deactivates the service.

But this solution is also not suitable due to the fact that sometimes there are network/server delays and the response comes too late, when the timer has already expired and Wit is deactivated even before the user stops talking.

Can you advise how I can achieve my goal?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions