Skip to content

Is there a way to limit the time the mic stays open? #142

Answered by KoljaB
luisffee asked this question in Q&A
Discussion options

You must be logged in to vote

If you call abort() the text() method will return an empty string ("").

But I'm not sure if stop() works 100% correctly here. The stop() method was intended to stop a recording which was started with the start() method before. So for manual recording. We use it here for recording that was started by VAD, using the text() method.

The abort() method was intended to quick end such a VAD initiated recording without causing a final transcription. So it's not really the right approach here, but tbh the stop method isn't either, because it will initiate the transcription but it leaves the text method in an undefined state. I need to think about that, maybe calling abort() after stop() method hel…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@luisffee
Comment options

@KoljaB
Comment options

Answer selected by luisffee
@homelab-00
Comment options

@luisffee
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants