Skip to content

await SpeechRecognition.stop(); NOT WORKING !!!! #122

@scottywm

Description

@scottywm

When my code runs I first remove any listeners if there are any

            SpeechRecognition.removeAllListeners()

then I add

            SpeechRecognition.addListener("result", (data) => {
                if (data.matches && data.matches.length > 0) {
                    this.transcript = data.matches[0];
                }
            })

Then i start recording the user speak

            await SpeechRecognition.start({
                language: 'en-US',
                partialResults: false, // ✅ disable partial results
                popup: false,
            })

When my application tries to stop the litening by running the below code, the application gets stuck on this line and no code runs after it.

const result = await SpeechRecognition.stop()

There is definately a bug in your software because I have found one more which I also submitted to you. But you wont fix it lol.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions