From 7d0f96a7db61f72467bf845f423aac1348c6d7c2 Mon Sep 17 00:00:00 2001 From: msqr1 Date: Sun, 2 Jun 2024 19:10:05 -0700 Subject: [PATCH] Update examples --- README.md | 4 ++-- examples/fromMic.html | 2 +- examples/fromWav.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 507048a..613d506 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ - Has shorter from-scratch build time - Has more Vosk functions exposed -# Basic usage (microphone recognition) +# Basic usage (microphone recognition in English) - Result are logged to the console. - Copied from *examples/fromMic.html* ```html @@ -42,7 +42,7 @@ // Load Vosklet module, model and recognizer let module = await loadVosklet() - let model = await module.createModel("https://raw.githubusercontent.com/ccoreilly/vosk-browser/master/examples/react/public/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","model","ID") let recognizer = await module.createRecognizer(model, 16000) // Listen for result and partial result diff --git a/examples/fromMic.html b/examples/fromMic.html index 2feaa11..7585fdc 100644 --- a/examples/fromMic.html +++ b/examples/fromMic.html @@ -20,7 +20,7 @@ // Load Vosklet module, model and recognizer let module = await loadVosklet() - let model = await module.createModel("https://raw.githubusercontent.com/ccoreilly/vosk-browser/master/examples/react/public/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","model","ID") let recognizer = await module.createRecognizer(model, 16000) // Listen for result and partial result diff --git a/examples/fromWav.html b/examples/fromWav.html index cfe2699..59d8c7c 100644 --- a/examples/fromWav.html +++ b/examples/fromWav.html @@ -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://raw.githubusercontent.com/ccoreilly/vosk-browser/master/examples/react/public/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","model","ID") let recognizer = await module.createRecognizer(model, 16000) // Listen for result and partial result