Attempt to fix MacOs #13

This commit is contained in:
msqr1
2024-09-23 22:56:25 -07:00
parent c35cd06b14
commit 14c913d44c
10 changed files with 137 additions and 126 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -7,7 +7,7 @@
// All data is collected and transfered to the main thread so the AudioContext won't output anything. Set sinkId type to none to save power
let ctx = new AudioContext({sinkId: {type: "none"}})
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","English","vosk-model-small-en-us-0.15")
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, ctx.sampleRate)
// Listen for result and partial result

View File

@@ -19,7 +19,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","English","vosk-model-small-en-us-0.15")
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, ctx.sampleRate)
// Listen for result and partial result