Attempt to fix MacOs #13
This commit is contained in:
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user