Update examples and docs

This commit is contained in:
msqr1
2024-09-04 23:23:14 -07:00
parent 6a2726ee25
commit 44ffe3b7a7
5 changed files with 7 additions and 8 deletions

View File

@@ -7,7 +7,7 @@
// Make sure sample rate matches that in the training data
let ctx = new AudioContext({sampleRate : 16000})
let module = await loadVosklet()
let model = await module.createModel("https://ccoreilly.github.io/vosk-browser/models/vosk-model-small-en-us-0.15.tar.gz","model","ID")
let model = await module.createModel("https://ccoreilly.github.io/vosk-browser/models/vosk-model-small-en-us-0.15.tar.gz","English","vosk-model-small-en-us-0.15")
let recognizer = await module.createRecognizer(model, 16000)
// Listen for result and partial result

View File

@@ -20,7 +20,7 @@
// Load Vosklet module, model and recognizer
let module = await loadVosklet()
let model = await module.createModel("https://ccoreilly.github.io/vosk-browser/models/vosk-model-small-en-us-0.15.tar.gz","model","ID")
let model = await module.createModel("https://ccoreilly.github.io/vosk-browser/models/vosk-model-small-en-us-0.15.tar.gz","English","vosk-model-small-en-us-0.15")
let recognizer = await module.createRecognizer(model, 16000)
// Listen for result and partial result