Wake word detection with Web Speech API
npm i use-ear
const { isListening, start, stop, transcript } = useEar({
wakeWords: ["hey", { word: "ヘイ", language: "ja-JP" }],
onWakeWord: (word, transcript) => console.log(word, transcript),
stopWords: ["stop"],
});