UNPKG
web-voice-detection
Version:
latest (1.0.6)
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
A WebAssembly-powered Voice Activity Detection library for the browser.
web-voice-detection
/
src
/
default-model-fetcher.ts
5 lines
(4 loc)
•
135 B
text/typescript
View Raw
1
2
3
4
5
export
const
defaultModelFetcher
=
async
(
path
:
string
) => {
const
model =
await
fetch
(path);
return
await
model.
arrayBuffer
(); };