We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Voice activity detection
npm install @wfloat/wfloat-web
Serve your recording at /recording.wav.
import { loadVoiceActivityDetection } from '@wfloat/wfloat-web';
const model = await loadVoiceActivityDetection('snakers4/silero-vad');
const audio = await fetch('/recording.wav').then(response => response.blob());
const result = await model.detect(audio).result();
console.log(result.segments);
await model.unload();
npm install @wfloat/react-native-wfloat
cd ios && pod install
Rebuild the app after installation. Native setup.
Replace the URI with a local recording accessible to your app.
import { loadVoiceActivityDetection } from '@wfloat/react-native-wfloat';
const model = await loadVoiceActivityDetection('snakers4/silero-vad');
const audio = { uri: 'file:///path/to/recording.wav' };
const result = await model.detect(audio).result();
console.log(result.segments);
await model.unload();
pip install wfloat
Use a PCM WAV recording.
from wfloat import load_voice_activity_detection
with load_voice_activity_detection("snakers4/silero-vad") as model:
result = model.detect("recording.wav")
for segment in result.segments:
print(segment.start_ms, segment.end_ms)