Erik Hermansen
Erik Hermansen
Could you give more detail? I'm guessing you're talking about the "Basic Example" in the README? And you could describe what not working means, e.g. was there a compilation error...
Ah, cool. It's the same as the error in your other issue, I see. Checking [my own working code ](https://github.com/erikh2000/sl-web-speech/blob/main/src/speech/Recognizer.ts) to see if there's a difference. Hmm. Nope, you're doing...
Useful, but... again, I would use some basic JS troubleshooting to narrow it down to the line that is failing. In the shot below, you can see my debugger is...
I posted my thing above just after you added your "JERRY" notes. (Nice, thanks.) I can see that it's likely throwing inside of `new model.KaldiRecognizer();` but still I think my...
Okay, that narrows it a little. The exception is being through from inside of one of two constructor calls. (Either the one that passes grammar or the other.) You've got...
Keep in mind I'm just another user helping out. I don't need anything! :) My friendly suggestion, one dev to another, is to dig in with the browser debugger and...
> KaldiRecognizer() constructor says sampleRate Nice, you've narrowed it. You probably just need to make sure your calling code to `createRecognizer()` is passing a sampleRate value. Yes, I also use...
I'm using 44100 for the sample rate. In the example apps that are in the repo, I see 48000.
Jerry, I think my project is maybe factored out in a way that will be hard to follow. But here is the recognizer startup code: https://github.com/erikh2000/sl-web-speech/blob/main/src/speech/Recognizer.ts If you got one...
So it sounds like you've got things working *except* for specifying grammar. I've never used that feature before, though I've always wondered how well it works. For grammar, you have...