Update examples
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
recognizer.addEventListener("partialResult", ev => console.log("Partial result: ", ev.detail))
|
recognizer.addEventListener("partialResult", ev => console.log("Partial result: ", ev.detail))
|
||||||
|
|
||||||
// Fetch, decode, and recognize the .wav
|
// Fetch, decode, and recognize the .wav
|
||||||
let wav = await fetch("https://cdn.jsdelivr.net/gh/msqr1/Vosklet/examples/example.wav")
|
let wav = await fetch("https://cdn.jsdelivr.net/gh/msqr1/Vosklet/examples/1to10-en.wav")
|
||||||
let audioBuf = await ctx.decodeAudioData(await wav.arrayBuffer())
|
let audioBuf = await ctx.decodeAudioData(await wav.arrayBuffer())
|
||||||
recognizer.acceptWaveform(audioBuf.getChannelData(0))
|
recognizer.acceptWaveform(audioBuf.getChannelData(0))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Overview
|
# Overview
|
||||||
- A lightweight, up to date speech recognizer in the browser with total gzipped size of **under a megabyte** (725 KB)
|
- A lightweight, up to date speech recognizer in the browser with total gzipped size of **under a megabyte** (725 KB)
|
||||||
- Live Demo: https://msqr1-github-io.pages.dev/Vosklet
|
- Live Demo (ASR in 20 languages): https://msqr1-github-io.pages.dev/Vosklet
|
||||||
- Inspired by [vosk-browser](https://github.com/ccoreilly/vosk-browser)
|
- Inspired by [vosk-browser](https://github.com/ccoreilly/vosk-browser)
|
||||||
|
|
||||||
# Documentation
|
# Documentation
|
||||||
|
|||||||
Reference in New Issue
Block a user