Comments (2)
The issue is most likely that some browser will not provide media at 16kHz (they ignore the samplerate parameter) and fallback to 48kHz. However you are telling vosk when creating the recognizer that audio will be streamed at 16kHz. You are thus sending 48kHz audio to a recognizer expecting 16kHz, which is why it does not work.
from vosk-browser.
We can’t change the sample rate of the recording device but, if I recall correctly, we can manually specify the sample rate for the audio context and the browser would automatically downsample (using the Web Audio API) the audio data. I verified that I was indeed getting 16kHz PCM audio data by inspecting the waveform of a sine wave at a fixed and known frequency.
UPDATE
The demo does indeed work with 16kHz. Nevermind.
from vosk-browser.
Related Issues (20)
- Result event not triggered on file upload HOT 4
- Build output location HOT 2
- Delays when transcribing streaming audio HOT 4
- information available in the User Agent string will be reduced
- can not build vosk-browser HOT 1
- View timing of words/phonemes? HOT 1
- Can't run HOT 14
- Can't build HOT 10
- Add SetMaxAlternatives
- Word confidence value is always 1...
- Two problems when using vosk-browser with non-streaming, separated static waveforms HOT 2
- Malayalam Model is not loading HOT 11
- Attempting to pass data to the KaldiRecognizer results in an odd internal error HOT 4
- react example process undefined HOT 2
- Is the demo working? HOT 1
- having problems running make (using wsl/ubuntu on windows)
- How to run vosk-browser instantly?
- Library Documentation and Numbers as non text HOT 4
- Get ready state of recognizer HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vosk-browser.