Package Exports
- @hughqing/vad-web
- @hughqing/vad-web/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hughqing/vad-web) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Voice Activity Detector for the Browser
Prompt your user for microphone permissions and run callbacks on segments of audio with user speech in a few lines of code.
Quick start:
<script src="https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ricky0123/vad-web@0.0.7/dist/bundle.min.js"></script>
<script>
async function main() {
const myvad = await vad.MicVAD.new({
onSpeechEnd: (audio) => {
// do something with `audio` (Float32Array of audio samples at sample rate 16000)...
}
})
myvad.start()
}
main()
</script>
See the project home for more details.