Skip to content

onEnd with interim results: how to determine if p5-speech stopped listening, in case there is no speech input? #25

@piaoyapia

Description

@piaoyapia

Hey everyone,

I used p5.SpeechRec with "interim Results". The onEnd-function only seems to work, when the user is giving speech input. It does however not fire, if no speech is provided in the interim time span.

[context: I want to bind an event on when p5.js-speech is not listening anymore - sadly I cannot just check if the microphone is off, as I'm simulaniously use the p5.sound-lib in order to animate other things.]

Did I miss something or is there a workaround in order to check if there is "no speech" in the interim time span? Thank you in advance.

P.S.: first time opening an issue on github - I hope I'm not reporting anything stupid here. Sorry in advance.

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