Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speech recognition concatenates multiple results and gives wrong output #3890

Open
7 tasks done
noook opened this issue Mar 26, 2024 · 0 comments · May be fixed by #3891
Open
7 tasks done

Speech recognition concatenates multiple results and gives wrong output #3890

noook opened this issue Mar 26, 2024 · 0 comments · May be fixed by #3891

Comments

@noook
Copy link

noook commented Mar 26, 2024

Describe the bug

When using useSpeechRecognition() with interimResults: true, the output is malformed and joins multiple times the same sentence.

The issue only happens on mobile, because the APIs don't seem to be the same. Open the link to reproduction on mobile.

More info here: https://stackoverflow.com/questions/50953900/speech-to-text-web-api-returns-different-result-on-desktop-vs-mobile

Reproduction

https://stackblitz.com/edit/vitejs-vite-ywbonf?file=src%2FApp.vue

System Info

System:
    OS: macOS 14.0
    CPU: (10) arm64 Apple M1 Pro
    Memory: 100.30 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
    npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm
    pnpm: 8.15.3 - ~/work/vueuse/node_modules/.bin/pnpm
    bun: 1.0.6 - ~/.bun/bin/bun
  Browsers:
    Chrome: 123.0.6312.59
    Safari: 17.0
  npmPackages:
    @vueuse/core: file:../../packages/core/dist => 10.8.0 
    @vueuse/metadata: file:../../packages/metadata/dist => 10.8.0 
    @vueuse/shared: file:../../packages/shared/dist => 10.8.0 
    vue: ^3.4.19 => 3.4.20

Used Package Manager

npm

Validations

@noook noook linked a pull request Mar 26, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant