-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
timer: add timer to force end stream
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.
- Loading branch information
1 parent
8c8ad13
commit 7da6d73
Showing
5 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
esp_timer_handle_t hdl_sess_timer; | ||
xQueueHandle hdl_q_timer; | ||
|
||
esp_err_t init_session_timer(void); | ||
void init_timer(void); | ||
void reset_timer(bool pause); |