Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 842 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 842 Bytes

vad-jni-rust

Simple JNI wrapper for the webrtc-vad using jni-rs.

Adding dependency to the project

version

repositories {
    maven("https://repo.plasmoverse.com/releases")
}

dependencies {
    implementation("com.plasmoverse:vad-jni-rust:$version")
}

Usage

// Creates a new VAD instance
Vad vad = Vad.create(48_000, VadMode.QUALITY);

// Checks if provided frame is voice
boolean isVoiceSegment = vad.isVoiceSegment(frame);

// Closes the VAD, releasing allocated resources
vad.close();