Skip to content

plasmoapp/vad-jni-rust

Repository files navigation

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();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published