capacitor-community / capacitor-community/speech-recognition

feat: onFinished event for the last result recognition

Open
#109 0 comments 3 reactions 0 assignees View on GitHub
needs: triage
Dominant language
Java
Stars
130
Forks
69
PR merge metrics
No merged PRs in 30d

Description

I don't see a way to detect the last recognition, once you start getting results there is no way to detect the last inference,

`SpeechRecognition.addListener('partialResults', async (data: any) => {
})`

I would like either an event for finished Results or the same partialResults event can emit a property when is the last results

I'm trying the tricky solution that is to set a timer, when you don't receive partial Results after some time, you know it has finished

Contributor guide

Open the contributing guide

Research direction

Start at the SpeechRecognition.addListener('partialResults') entry point described in the issue and inspect how recognition results are exposed. Define completion behavior for the final recognition and verify that the chosen event or result property reliably signals when recognition has finished.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.