Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timer to force end stream #108

Merged
merged 3 commits into from
May 26, 2023
Merged

Add timer to force end stream #108

merged 3 commits into from
May 26, 2023

Conversation

stintel
Copy link
Collaborator

@stintel stintel commented May 26, 2023

For #18.

stintel added 3 commits May 26, 2023 14:40
Add a timer that sends MSG_STOP N seconds after starting, where N is the
value of CONFIG_WILLOW_STREAM_TIMEOUT.

We don't need this for the following case, audio_rec_cfg_t.wakeup_time
already takes care of it:

I (00:16:15.053) WILLOW: AUDIO_REC_WAKEUP_START

I (00:16:25.053) WILLOW: AUDIO_REC_WAKEUP_END

Default to 5s which should be long enough for most commands. And max
timeout 30s which matches Whisper's default max without chunking.

Closes #18.
Can be enabled with CONFIG_WILLOW_DEBUG_TIMERS.
@kristiankielhofner kristiankielhofner merged commit e442443 into main May 26, 2023
@kristiankielhofner kristiankielhofner deleted the issue/18 branch May 26, 2023 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants