User guide for use in React projects
-
Install
@ricky0123/vad-react
: -
Follow the bundling instructions for
@ricky0123/vad-web
. To recap, you need to serve the worklet and onnx files that come distributed with@ricky0123/vad-web
and the wasm files fromonnxruntime-web
, which will both be pulled in as dependencies. -
Use the
useMicVAD
hook to start the voice activity detector:See the docs for useMicVAD for details.